[Bug 265439] copyin() repeatedly traps on some illegal user addresses on RISC-V
Date: Mon, 25 Jul 2022 23:27:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265439 Jessica Clarke <jrtc27@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |jrtc27@freebsd.org Assignee|riscv@FreeBSD.org |markj@FreeBSD.org --- Comment #1 from Jessica Clarke <jrtc27@freebsd.org> --- This is a regression in 31218f3209ac ("riscv: Add support for enabling SV48 mode"), right? We do check VIRT_IS_VALID in page_fault_handler and will SIGSEGV the process or panic the kernel depending on which mode faulted, and copyin etc will check the address is for userspace before using it, but they check VM_MAX(_)USER_ADDRESS which is now the SV48 version even when SV39 is in use. -- You are receiving this mail because: You are the assignee for the bug.