Date: Mon, 28 Nov 2016 13:24:47 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 214881] jail with path=/ and sysctl.disablefullpath=1 leads to NULL dereference Message-ID: <bug-214881-9824-9GCNCSIY5H@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-214881-9824@https.bugs.freebsd.org/bugzilla/> References: <bug-214881-9824@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=3D214881 Konstantin Belousov <kib@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamie@FreeBSD.org, | |kib@FreeBSD.org --- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> --- (In reply to aler from comment #0) I suspect that this is just a thinko, the case path =3D=3D NULL is handled = later.=20 OTOH, it is not clear to me that path =3D=3D NULL should result in the '0' = addend to len in the check. If you do consider the right action to be cleanup, then the failing len che= ck already provides an example what to do. Anyway, I am attaching patch with simple additional check for path =3D=3D NULL. --=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-214881-9824-9GCNCSIY5H>