[PATCH] powerpc:entry_32: correct the path and function name in the comment

2020-08-07 Thread chenzefeng
Update the comment for file's directory and function name changed. Fixes: facd04a904ff ("powerpc: convert to copy_thread_tls") Fixes: 14cf11af6cf6 ("powerpc: Merge enough to start building in arch/powerpc.") Signed-off-by: chenzefeng --- arch/powerpc/kernel/entry_32.S | 4

[PATCH] arm:unwind: fix incorrect backtrace with unwind_table

2019-09-17 Thread chenzefeng
list, after insmod success, the "Addr1" would be vfreed. Unfortunately, later insmod module B, the system alloc the "Addr1" for it's text section, and add it to the unwind_table list, too. And we dumpstack in module B, we may get a incorrect backtrace. Signed-off-by: chenzefeng

[PATCH] ia64:unwind: fix double free for mod->arch.init_unw_table

2019-08-06 Thread chenzefeng
the mod->arch.init_unw_table, which cause double free. Here, set mod->arch.init_unw_table = NULL after remove the unwind table to avoid double free. Signed-off-by: chenzefeng --- arch/ia64/kernel/module.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/ia64/

[PATCH] arm:unwind: fix backtrace error with unwind_table

2019-08-06 Thread chenzefeng
cause one address can found more than two unwind table in the unwind_tables' list, therefore may get to errror unwind table to backtrace, and get an error backtrace. Signed-off-by: chenzefeng --- arch/arm/kernel/module.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-)

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; sjenn...@redhat.com

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

2019-02-18 Thread chenzefeng (A)
essage as follow: relocation failed for symbol at This issue only effacted the kernel version from 4.0 to 4.6, becauce the function klp_write_module_reloc is introduced by: commit b700e7f03df5 ("livepatch: kernel: add support for live patching") and deleted by: commit 425595a7fc20 ("livepatc

答复: [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)
been fixed for the module loading, but not fixed for livepatch relocation, which will fail to load livepatch with the error message as follow: relocation failed for symbol at Signed-off-by: chenzefeng --- arch/x86/kernel/livepatch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/