Re: [PATCH v2] hwmon: (ibmpowernv) refactor deprecated strncpy

2023-09-19 Thread Michael Ellerman
nv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Tested-by: Michael Ellerman Acked-by: Michael Ellerman (powerpc) cheers

Re: [PATCH] scsi: ibmvscsi: replace deprecated strncpy with strscpy

2023-12-01 Thread Michael Ellerman
nk: https://manpages.debian.org/testing/linux-manual-4.8/strscpy.9.en.html > [2] > Link: https://github.com/KSPP/linux/issues/90 > Cc: linux-hardening@vger.kernel.org > Signed-off-by: Justin Stitt > --- > Note: build-tested only. I gave it a quick boot, no issues. Tested-by: Michael Ellerman (powerpc) cheers

Re: [PATCH 60/82] powerpc: Refactor intentional wrap-around test

2024-02-11 Thread Michael Ellerman
ing the wrap-around sanitizers in the future. > > Link: https://git.kernel.org/linus/68df3755e383e6fecf2354a67b08f92f18536594 > [1] > Link: https://github.com/KSPP/linux/issues/26 [2] > Link: https://github.com/KSPP/linux/issues/27 [3] > Link: https://github.com/KSPP/linux/issues/344 [4] >

Re: [PATCH] powerpc/pseries: Whitelist dtl slub object for copying to userspace

2024-06-18 Thread Michael Ellerman
Kees Cook writes: > On Fri, Jun 14, 2024 at 11:08:44PM +0530, Anjali K wrote: >> Reading the dispatch trace log from /sys/kernel/debug/powerpc/dtl/cpu-* >> results in a BUG() when the config CONFIG_HARDENED_USERCOPY is enabled as >> shown below. >> >> kernel BUG at mm/usercopy.c:102! >> O

Re: [PATCH] powerpc/pseries: Whitelist dtl slub object for copying to userspace

2024-06-21 Thread Michael Ellerman
Anjali K writes: > Hi Michael > > On 18/06/24 12:41, Michael Ellerman wrote: >> I guess there isn't a kmem_cache_create_user_readonly() ? > Thank you for your review.     > > My understanding of the question is whether

Re: [PATCH] powerpc/pseries: Whitelist dtl slub object for copying to userspace

2024-06-24 Thread Michael Ellerman
On Fri, 14 Jun 2024 23:08:44 +0530, Anjali K wrote: > Reading the dispatch trace log from /sys/kernel/debug/powerpc/dtl/cpu-* > results in a BUG() when the config CONFIG_HARDENED_USERCOPY is enabled as > shown below. > > kernel BUG at mm/usercopy.c:102! > Oops: Exception in kernel mode, si

Re: [PATCH] powerpc: Add __must_check to set_memory_...()

2024-11-06 Thread Michael Ellerman
Christophe Leroy writes: > Hi Michael, > > Le 07/09/2024 à 17:40, Christophe Leroy a écrit : >> After the following powerpc commits, all calls to set_memory_...() >> functions check returned value. >> - Commit 8f17bd2f4196 ("powerpc: Handle error in mark_rodata_ro() and >> mark_initmem_nx()") >> -

Re: [PATCH][next] powerpc/ps3: replace open-coded sysfs_emit function

2024-11-17 Thread Michael Ellerman
On Sat, 19 Oct 2024 15:13:49 +1300, Paulo Miguel Almeida wrote: > sysfs_emit() helper function should be used when formatting the value > to be returned to user space. > > This patch replaces open-coded sysfs_emit() in sysfs .show() callbacks > > Applied to powerpc/next. [1/1] powerpc/ps3: rep

Re: [PATCH] powerpc: Add __must_check to set_memory_...()

2024-11-17 Thread Michael Ellerman
On Sat, 07 Sep 2024 17:40:41 +0200, Christophe Leroy wrote: > After the following powerpc commits, all calls to set_memory_...() > functions check returned value. > - Commit 8f17bd2f4196 ("powerpc: Handle error in mark_rodata_ro() and > mark_initmem_nx()") > - Commit f7f18e30b468 ("powerpc/kprobes: