Re: BUG: KASAN: vmalloc-out-of-bounds in copy_to_kernel_nofault+0xd8/0x1c8 (v6.13-rc6, PowerMac G4)

2025-02-02 Thread Christophe Leroy
Le 01/02/2025 à 16:54, Erhard Furtner a écrit : On Sat, 1 Feb 2025 16:14:04 +0100 Christophe Leroy wrote: Thanks for the report. That's something different. Previous report was: BUG: KASAN: vmalloc-out-of-bounds in copy_to_kernel_nofault+0xd8/0x1c8 This is what my patch fixes. New repor

Re: BUG: KASAN: vmalloc-out-of-bounds in copy_to_kernel_nofault+0xd8/0x1c8 (v6.13-rc6, PowerMac G4)

2025-02-02 Thread Erhard Furtner
On Sun, 2 Feb 2025 09:44:20 +0100 Christophe Leroy wrote: > This time the problem is a mixture of commit 465cabc97b42 > ("powerpc/code-patching: introduce patch_instructions()") and commit > c28c15b6d28a ("powerpc/code-patching: Use temporary mm for Radix MMU") > which is revealed by commit e4

Re: [PATCH] powerpc/powermac: fix a loop in core99_usb_enable

2025-02-02 Thread Christophe Leroy
Le 02/02/2025 à 13:46, Denis Kirjanov a écrit : Looks like we have a typo in the do-while loop while checking the loop condition. Fix it with the boolean OR Are you sure it is a typo, not a feature ? At the moment the generated code is: 6f4: 7f 89 48 38 and r9,r28,r9

Re: [PATCH v2 4/5] powerpc: kvm: drop 32-bit book3s

2025-02-02 Thread J . Neuschäfer
On Sat, Dec 21, 2024 at 08:13:12PM -0600, A. Wilcox wrote: > On Dec 21, 2024, at 3:42 PM, Arnd Bergmann wrote: > > > > From: Arnd Bergmann > > > > Support for KVM on 32-bit Book III-s implementations was added in 2010 > > and supports PowerMac, CHRP, and embedded platforms using the Freescale G4

Re: [PATCH v2 2/5] riscv: kvm: drop 32-bit host support

2025-02-02 Thread Samuel Holland
Hi Arnd, On 2024-12-21 3:42 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > KVM support on RISC-V includes both 32-bit and 64-bit host mode, but in > practice, all RISC-V SoCs that may use this are 64-bit: > > As of linux-6.13, there is no mainline Linux support for any specific > 32-bit SoC

[PATCH v4 0/7] ptrace: introduce PTRACE_SET_SYSCALL_INFO API

2025-02-02 Thread Dmitry V. Levin
PTRACE_SET_SYSCALL_INFO is a generic ptrace API that complements PTRACE_GET_SYSCALL_INFO by letting the ptracer modify details of system calls the tracee is blocked in. This API allows ptracers to obtain and modify system call details in a straightforward and architecture-agnostic way. Current im

[PATCH v4 4/7] syscall.h: introduce syscall_set_nr()

2025-02-02 Thread Dmitry V. Levin
Similar to syscall_set_arguments() that complements syscall_get_arguments(), introduce syscall_set_nr() that complements syscall_get_nr(). syscall_set_nr() is going to be needed along with syscall_set_arguments() on all HAVE_ARCH_TRACEHOOK architectures to implement PTRACE_SET_SYSCALL_INFO API. S

[PATCH v4 3/7] syscall.h: add syscall_set_arguments()

2025-02-02 Thread Dmitry V. Levin
This function is going to be needed on all HAVE_ARCH_TRACEHOOK architectures to implement PTRACE_SET_SYSCALL_INFO API. This partially reverts commit 7962c2eddbfe ("arch: remove unused function syscall_set_arguments()") by reusing some of old syscall_set_arguments() implementations. Signed-off-by:

[PATCH v2 0/2] Remove cxl and cxlflash drivers

2025-02-02 Thread Andrew Donnellan
This series removes the cxl and cxlflash drivers for IBM CAPI devices. CAPI devices have been out of production for some time, and we're not aware of any remaining users who are likely to want a modern kernel. There's almost certainly some remaining driver bugs and we don't have much hardware avai

[PATCH] powerpc/powermac: replace KERN_INFO calls with pr_info

2025-02-02 Thread Denis Kirjanov
pr_info makes code cleaner and simplifies syntax Signed-off-by: Denis Kirjanov --- arch/powerpc/platforms/powermac/feature.c | 8 arch/powerpc/platforms/powermac/low_i2c.c | 12 ++-- arch/powerpc/platforms/powermac/pci.c | 12 ++-- arch/powerpc/platforms/powermac/pi

[PATCH] powerpc/powermac: fix a loop in core99_usb_enable

2025-02-02 Thread Denis Kirjanov
Looks like we have a typo in the do-while loop while checking the loop condition. Fix it with the boolean OR Signed-off-by: Denis Kirjanov --- arch/powerpc/platforms/powermac/feature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powermac/feature.c