git: kernel - Fix page fault in the jail unmount check
Aaron LI
aly at crater.dragonflybsd.org
Sun Nov 1 04:00:30 PST 2026
commit 6248a150a706d1088447e1326b7d5b11b4a3a508
Author: David Bidner <david at crap.solutions>
Date: Sun Sep 27 19:51:41 2026 +0200
kernel - Fix page fault in the jail unmount check
sys_unmount() printed the "does not belong to this jail" message using
uap->path, a user-space pointer. With SMAP enabled, kprintf() -> strlen()
faults on it.
Use nd.nl_path, the kernel copy that nlookup_init() already made.
Panic reproduce steps, assuming a jail is prepared at `/jail`:
```
jail# umount /dev
```
Reported-by: tuxillo
Bug: https://bugs.dragonflybsd.org/issues/3386
Summary of changes:
sys/kern/vfs_syscalls.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6248a150a706d1088447e1326b7d5b11b4a3a508
--
DragonFly BSD source repository
More information about the Commits
mailing list