[PATCH 4.4 13/20] [PATCH] x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32

2019-02-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- Signed-off-by: chenzefeng 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

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

2019-02-19 Thread chenzefeng (A)
; vojt...@suse.com; t...@linutronix.de; mi...@redhat.com; h...@zytor.com; gre...@linuxfoundation.org; x...@kernel.org; live-patch...@vger.kernel.org; linux-kernel@vger.kernel.org; Xiexiuqi 主题: Re:[PATCH] x86: livepatch: Treat R_X86_64_PLT32 as R_X86_64_PC32 On Mon 2019-02-18 17:22, Petr wrote

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 > >

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

2019-02-18 Thread gre...@linuxfoundation.org
On Fri, Feb 15, 2019 at 02:01:31AM +, 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_PC32 since linux kernel doesn't use PLT. > > In linux 4.4 commit

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

2019-02-18 Thread Petr Mladek
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/livepatch.c > > > ZeFeng may have sent a stable(4.4-y) patch to

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

2019-02-17 Thread chengjian (D)
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/livepatch.c ZeFeng may have sent a stable(4.4-y) patch to the wrong mail-list(mainline). Thanks. On 2019/2/15 15:28, Jiri Kosina

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

2019-02-15 Thread Petr Mladek
On Fri 2019-02-15 08:17:36, chenzefeng (A) wrote: > 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

答复: [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_PC32 since linux kernel

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

2019-02-14 Thread Jiri Kosina
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_PC32 since linux kernel doesn't use PLT. > > In linux 4.4 commit b21ebf2fb4cd ("x86:

[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