Re: [PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-12-13 Thread Greg KH
On Fri, Dec 13, 2024 at 11:44:22AM +0800, haixiao.yan...@eng.windriver.com wrote: > From: Nathan Lynch > > [ Upstream commit 0974d03eb479384466d828d65637814bee6b26d7 ] > Now deleted, please see: https://lore.kernel.org/r/2024121322-conjuror-gap-b542@gregkh for what you all need to do,

Re: [PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-12-13 Thread Greg KH
On Fri, Dec 13, 2024 at 11:44:22AM +0800, haixiao.yan...@eng.windriver.com wrote: > From: Nathan Lynch > > [ Upstream commit 0974d03eb479384466d828d65637814bee6b26d7 ] > > Smatch warns: > > arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential > spectre issue 'args.args' [r] (loc

[PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-12-12 Thread haixiao . yan . cn
From: Nathan Lynch [ Upstream commit 0974d03eb479384466d828d65637814bee6b26d7 ] Smatch warns: arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential spectre issue 'args.args' [r] (local cap) The 'nargs' and 'nret' locals come directly from a user-supplied buffer and are used as in

Re: [PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-07-06 Thread Michael Ellerman
On Thu, 30 May 2024 19:44:12 -0500, Nathan Lynch wrote: > Smatch warns: > > arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential > spectre issue 'args.args' [r] (local cap) > > The 'nargs' and 'nret' locals come directly from a user-supplied > buffer and are used as indexes into a

Re: [PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-05-31 Thread Breno Leitao
On Fri, May 31, 2024 at 11:45:48AM -0500, Nathan Lynch wrote: > Breno Leitao writes: > > > On Thu, May 30, 2024 at 07:44:12PM -0500, Nathan Lynch via B4 Relay wrote: > >> From: Nathan Lynch > >> + nargs = array_index_nospec(nargs, ARRAY_SIZE(args.args)); > >> + nret = array_index_nospec(nret,

Re: [PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-05-31 Thread Nathan Lynch
Breno Leitao writes: > On Thu, May 30, 2024 at 07:44:12PM -0500, Nathan Lynch via B4 Relay wrote: >> From: Nathan Lynch >> >> Smatch warns: >> >> arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential >> spectre issue 'args.args' [r] (local cap) >> >> The 'nargs' and 'nret' local

Re: [PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-05-31 Thread Breno Leitao
On Thu, May 30, 2024 at 07:44:12PM -0500, Nathan Lynch via B4 Relay wrote: > From: Nathan Lynch > > Smatch warns: > > arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential > spectre issue 'args.args' [r] (local cap) > > The 'nargs' and 'nret' locals come directly from a user-suppl

[PATCH] powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

2024-05-30 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Smatch warns: arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential spectre issue 'args.args' [r] (local cap) The 'nargs' and 'nret' locals come directly from a user-supplied buffer and are used as indexes into a small stack-based array and as inputs to copy_to_