mirror of
https://github.com/dynup/kpatch
synced 2025-04-18 13:05:21 +00:00
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:
parent
86e21e9b9e
commit
8f237b1e7d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user