Re: [PATCH] riscv: Support RANDOMIZE_KSTACK_OFFSET

2023-11-08 Thread Palmer Dabbelt
On Wed, 08 Nov 2023 15:52:34 PST (-0800), keesc...@chromium.org wrote: On Wed, Nov 01, 2023 at 02:44:23PM +0800, Song Shuai wrote: Inspired from arm64's implement -- commit 70918779aec9 ("arm64: entry: Enable random_kstack_offset support") Add support of kernel stack offset randomization while

Re: [PATCH] Fixed typo (args -> argc) in plugin description

2023-11-08 Thread Kees Cook
On Mon, 30 Oct 2023 12:45:08 +0300, Konstantin Runov wrote: > Clearly, argc should be used > > Applied to for-next/hardening, thanks! [1/1] Fixed typo (args -> argc) in plugin description https://git.kernel.org/kees/c/b98cf399839e Take care, -- Kees Cook

Re: [PATCH] riscv: Support RANDOMIZE_KSTACK_OFFSET

2023-11-08 Thread Kees Cook
On Wed, Nov 01, 2023 at 02:44:23PM +0800, Song Shuai wrote: > Inspired from arm64's implement -- commit 70918779aec9 > ("arm64: entry: Enable random_kstack_offset support") > > Add support of kernel stack offset randomization while handling syscall, > the offset is defaultly limited by KSTACK_OFFS

Re: [PATCH v1 1/1] pstore/ram: Fix crash when setting number of cpus to an odd number

2023-11-08 Thread Kees Cook
On Fri, 24 Feb 2023 10:36:32 +0800, Weichen Chen wrote: > When the number of cpu cores is adjusted to 7 or other odd numbers, > the zone size will become an odd number. > The address of the zone will become: > addr of zone0 = BASE > addr of zone1 = BASE + zone_size > addr of zone2 = BAS

Re: [PATCH] gcc-plugins: randstruct: Only warn about true flexible arrays

2023-11-08 Thread Kees Cook
On Sat, 04 Nov 2023 13:43:37 -0700, Kees Cook wrote: > The randstruct GCC plugin tried to discover "fake" flexible arrays > to issue warnings about them in randomized structs. In the future > LSM overhead reduction series, it would be legal to have a randomized > struct with a 1-element array, and

Re: [alobakin:pfcp 11/19] include/linux/bitmap.h:642:17: warning: array subscript [1, 1024] is outside array bounds of 'long unsigned int[1]'

2023-11-08 Thread Alexander Lobakin
From: Yury Norov Date: Tue, 7 Nov 2023 11:24:49 -0800 > On Tue, Nov 07, 2023 at 07:52:19PM +0100, Alexander Lobakin wrote: >> From: Yury Norov >> Date: Tue, 7 Nov 2023 10:32:06 -0800 >> >>> On Tue, Nov 07, 2023 at 06:24:04PM +0100, Alexander Lobakin wrote: From: Alexander Lobakin Date

Re: [alobakin:pfcp 11/19] include/linux/bitmap.h:642:17: warning: array subscript [1, 1024] is outside array bounds of 'long unsigned int[1]'

2023-11-08 Thread Alexander Potapenko
On Tue, Nov 7, 2023 at 8:24 PM Yury Norov wrote: > > On Tue, Nov 07, 2023 at 07:52:19PM +0100, Alexander Lobakin wrote: > > From: Yury Norov > > Date: Tue, 7 Nov 2023 10:32:06 -0800 > > > > > On Tue, Nov 07, 2023 at 06:24:04PM +0100, Alexander Lobakin wrote: > > >> From: Alexander Lobakin > > >>