Date: Sun, 04 Jan 2015 05:43:03 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 196474] jls causes kernel panic Message-ID: <bug-196474-8-rocH5SHXDU@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-196474-8@https.bugs.freebsd.org/bugzilla/> References: <bug-196474-8@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=196474 Mateusz Guzik <mjg@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamie@FreeBSD.org --- Comment #7 from Mateusz Guzik <mjg@FreeBSD.org> --- The following does the trick for me. Adding the author to cc:. diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index f8ae0e6..9ca0616 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -2028,13 +2028,13 @@ kern_jail_get(struct thread *td, struct uio *optuio, int flags) goto done_deref; #ifdef INET error = vfs_setopt_part(opts, "ip4.addr", pr->pr_ip4, - pr->pr_ip4s * sizeof(*pr->pr_ip4)); + pr->pr_ip4s == -1 ? 0 : pr->pr_ip4s * sizeof(*pr->pr_ip4)); if (error != 0 && error != ENOENT) goto done_deref; #endif #ifdef INET6 error = vfs_setopt_part(opts, "ip6.addr", pr->pr_ip6, - pr->pr_ip6s * sizeof(*pr->pr_ip6)); + pr->pr_ip6s == -1 ? 0 : pr->pr_ip6s * sizeof(*pr->pr_ip6)); if (error != 0 && error != ENOENT) goto done_deref; #endif With this the outpus is: JID IP Address Hostname Path 1 - / -- 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-196474-8-rocH5SHXDU>