Skip to content

Commit

Permalink
kmod/core: make dynrelas section writable
Browse files Browse the repository at this point in the history
On RHEL 7, the core module's write to dynrela->src causes a panic
because the dynrela section is read-only.
  • Loading branch information
jpoimboe committed Jun 15, 2014
1 parent 844af68 commit bba8d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpatch-build/create-diff-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf,
sec->sh.sh_type = SHT_PROGBITS;
sec->sh.sh_entsize = sizeof(*dynrelas);
sec->sh.sh_addralign = 8;
sec->sh.sh_flags = SHF_ALLOC;
sec->sh.sh_flags = SHF_ALLOC | SHF_WRITE;

/* create .rela.kpatch.dynrelas*/

Expand Down

0 comments on commit bba8d1c

Please sign in to comment.