The patch titled Subject: powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix has been added to the -mm mm-nonmm-unstable branch. Its filename is powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix Date: Mon Oct 17 02:33:53 PM PDT 2022 fix gpr32_set_common() Reported-by: kernel test robot <lkp@xxxxxxxxx> Cc: Christophe Leroy <christophe.leroy@xxxxxxxxxx> Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> Cc: Sergey Shtylyov <s.shtylyov@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/powerpc/kernel/ptrace/ptrace-view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/arch/powerpc/kernel/ptrace/ptrace-view.c~powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix +++ a/arch/powerpc/kernel/ptrace/ptrace-view.c @@ -706,8 +706,9 @@ int gpr32_set_common(struct task_struct ubuf = u; pos *= sizeof(reg); count *= sizeof(reg); - return user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, - (PT_TRAP + 1) * sizeof(reg), -1); + user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, + (PT_TRAP + 1) * sizeof(reg), -1); + return 0; Efault: user_read_access_end(); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-hugetlb-convert-free_huge_page-to-folios-fix.patch powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix.patch