Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-08-21 Thread Will Deacon
On Tue, Jul 14, 2020 at 08:48:11AM +, 彭浩(Richard) wrote: > On Thu, Jul 09, 2020 at 07:18:01AM +,Peng Hao(Richard) wrote: > > On Thu, 9 Jul 2020 at 09:50, Peng Hao(Richard) > > wrote: > > >> >Apparently, you are hitting a R_AARCH64_JUMP26 or R_AARCH64_CALL26 > > >> >relocation that operate

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-14 Thread Richard
On Thu, Jul 09, 2020 at 07:18:01AM +,Peng Hao(Richard) wrote: > On Thu, 9 Jul 2020 at 09:50, Peng Hao(Richard) wrote: > >> >Apparently, you are hitting a R_AARCH64_JUMP26 or R_AARCH64_CALL26 > >> >relocation that operates on a b or bl instruction that is more than > >> >128 megabytes away from

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-10 Thread Richard
On Thu, Jul 09, 2020 at 07:18:01AM +, Peng Hao(Richard) wrote: >> On Thu, 9 Jul 2020 at 09:50, Peng Hao (Richard) >> wrote: >> >> >Apparently, you are hitting a R_AARCH64_JUMP26 or R_AARCH64_CALL26 >> >> >relocation that operates on a b or bl instruction that is more than >> >> >128 megabytes

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-09 Thread Will Deacon
On Thu, Jul 09, 2020 at 07:18:01AM +, 彭浩(Richard) wrote: > On Thu, 9 Jul 2020 at 09:50, 彭浩(Richard) wrote: > >> >Apparently, you are hitting a R_AARCH64_JUMP26 or R_AARCH64_CALL26 > >> >relocation that operates on a b or bl instruction that is more than > >> >128 megabytes away from its target

Re:[PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-09 Thread Richard
On Thu, 9 Jul 2020 at 09:50, 彭浩(Richard) wrote: >> >Apparently, you are hitting a R_AARCH64_JUMP26 or R_AARCH64_CALL26 >> >relocation that operates on a b or bl instruction that is more than >> >128 megabytes away from its target. >> > >> My understanding is that a module that calls functions that

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-08 Thread Ard Biesheuvel
On Thu, 9 Jul 2020 at 09:50, 彭浩(Richard) wrote: > > On Wed, 8 Jul 2020 at 13:03, 彭浩(Richard) wrote: > >> > >> > >> On Tue, Jul 07, 2020 at 07:46:08AM -0400, Peng Hao wrote: > >> >> If plt_max_entries is 0, a warning is triggered. > >> >> WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plt

Re:[PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-08 Thread Richard
On Wed, 8 Jul 2020 at 13:03, 彭浩(Richard) wrote: >> >> >> On Tue, Jul 07, 2020 at 07:46:08AM -0400, Peng Hao wrote: >> >> If plt_max_entries is 0, a warning is triggered. >> >> WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plts.c:97 >> >> module_emit_plt_entry+0xa4/0x150 >> > >> > Which

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-08 Thread Ard Biesheuvel
On Wed, 8 Jul 2020 at 13:03, 彭浩(Richard) wrote: > > > On Tue, Jul 07, 2020 at 07:46:08AM -0400, Peng Hao wrote: > >> If plt_max_entries is 0, a warning is triggered. > >> WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plts.c:97 > >> module_emit_plt_entry+0xa4/0x150 > > > > Which kernel a

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-08 Thread Richard
On Tue, Jul 07, 2020 at 07:46:08AM -0400, Peng Hao wrote: >> If plt_max_entries is 0, a warning is triggered. >> WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plts.c:97 >> module_emit_plt_entry+0xa4/0x150 > > Which kernel are you seeing this with? There is a PLT-related change in > for-

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-08 Thread Ard Biesheuvel
On Wed, 8 Jul 2020 at 11:25, Will Deacon wrote: > > [+Ard] > > On Tue, Jul 07, 2020 at 07:46:08AM -0400, Peng Hao wrote: > > If plt_max_entries is 0, a warning is triggered. > > WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plts.c:97 > > module_emit_plt_entry+0xa4/0x150 > > Which kernel

Re: [PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-08 Thread Will Deacon
[+Ard] On Tue, Jul 07, 2020 at 07:46:08AM -0400, Peng Hao wrote: > If plt_max_entries is 0, a warning is triggered. > WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plts.c:97 > module_emit_plt_entry+0xa4/0x150 Which kernel are you seeing this with? There is a PLT-related change in for-n

[PATCH] arm64/module-plts: Consider the special case where plt_max_entries is 0

2020-07-07 Thread Peng Hao
If plt_max_entries is 0, a warning is triggered. WARNING: CPU: 200 PID: 3000 at arch/arm64/kernel/module-plts.c:97 module_emit_plt_entry+0xa4/0x150 Signed-off-by: Peng Hao --- arch/arm64/kernel/module-plts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel