Re: [PATCH] x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32

2019-02-19 Thread chenzefeng (A)
Hi, I am sorry this email was sent by accident. Please ignore this email. Best Regards -邮件原件- 发件人: chenzefeng (A) 发送时间: 2019年2月19日 14:38 收件人: 'Petr Mladek' ; chengjian (D) 抄送: 'sta...@vger.kernel.org' ; Jiri Kosina ; hjl.to...@gmail.com; jpoim...@redhat.com;

Re:[PATCH] x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32

2019-02-18 Thread chenzefeng (A)
On Mon 2019-02-18 17:22, Petr wrote: > On Mon 2019-02-18 13:29:11, chengjian (D) wrote: > > Hi,Jiri > > > > > > This patch should be merged into 4.4 stable, > > > > which still use klp_write_module_reloc. > > > > > > https://elixir.bootlin.com/linux/v4.4.174/source/arch/x86/kernel/livep > > atch.c

答复: [PATCH] x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32

2019-02-15 Thread chenzefeng (A)
HI, Jiri Kosina, On Fri, 15 Feb 2019, Jiri Kosina wrote: >On Fri, 15 Feb 2019, chenzefeng (A) wrote: >> On x86-64, for 32-bit PC-relacive branches, we can generate PLT32 >> relocation, instead of PC32 relocation. and R_X86_64_PLT32 can be >> treated the same as R_X86_64_PC

[PATCH] x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32

2019-02-14 Thread chenzefeng (A)
On x86-64, for 32-bit PC-relacive branches, we can generate PLT32 relocation, instead of PC32 relocation. and R_X86_64_PLT32 can be treated the same as R_X86_64_PC32 since linux kernel doesn't use PLT. In linux 4.4 commit b21ebf2fb4cd ("x86: Treat R_X86_64_PLT32 as R_X86_64_PC32") been fixed fo