kpatch-build: make patches for debug kernels too

GCC with KASAN instrumentation creates section ".rodata" with some static strings (i.e. some of them go to ".rodata.str1.1" for release build).
This change makes possible to build patch and check if it fixes issue found with KASAN, such as CVE-2016-9555.
This commit is contained in:
Igor Redko 2016-12-19 14:26:35 +03:00
parent 86e21e9b9e
commit 8f237b1e7d

View File

@ -1095,6 +1095,7 @@ void kpatch_include_standard_elements(struct kpatch_elf *kelf)
if (!strcmp(sec->name, ".shstrtab") ||
!strcmp(sec->name, ".strtab") ||
!strcmp(sec->name, ".symtab") ||
!strcmp(sec->name, ".rodata") ||
!strncmp(sec->name, ".rodata.str1.", 13)) {
sec->include = 1;
if (sec->secsym)