Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2022 23:27:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        riscv@FreeBSD.org
Subject:   [Bug 265439] copyin() repeatedly traps on some illegal user addresses on RISC-V
Message-ID:  <bug-265439-40250-VFdHzo0teK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-265439-40250@https.bugs.freebsd.org/bugzilla/>
References:  <bug-265439-40250@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265439

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 SIG=
SEGV
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 us=
e.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265439-40250-VFdHzo0teK>