]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: x86: fix relocation computation with kASLR
authorZhou Chengming <zhouchengming1@huawei.com>
Fri, 6 Nov 2015 06:25:00 +0000 (14:25 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 Nov 2015 16:36:04 +0000 (17:36 +0100)
commitad49ed87edf25bae4e3f9eddc829503c4d4d7e56
tree1793ed3dbe6268a7e153afb60812e1d85b84c18f
parent0f23e5e407510bbce8ab9e04e9a1d91fa82af8d4
livepatch: x86: fix relocation computation with kASLR

With kASLR enabled, old_addr provided by patch module is being shifted
accrodingly so that the symbol lookups work. To have module relocations
handled properly as well, the same transformation needs to be perfomed
on relocation address information.

[jkosina@suse.cz: extended / reworded changelog a bit]
Reported-by: Cyril B. <cbay@alwaysdata.com>
Signed-off-by: Zhou Chengming <zhouchengming1@huawei.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/core.c