Date: Fri, 11 Jun 2021 03:46:01 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 256544] jail crashes on config parsing Message-ID: <bug-256544-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256544 Bug ID: 256544 Summary: jail crashes on config parsing Product: Base System Version: Unspecified Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: cryptogranny@gmail.com With the following config the jail binary crashes. Please, note $vnet in the last config line. It's not defined and it's the reason. # for real network vnet; mount.devfs; path =3D "/censored/$name"; mount.devfs; exec.start =3D "/bin/sh /etc/rc"; exec.stop =3D "/bin/sh /etc/rc.shutdown"; # for tcpdump devfs_ruleset =3D 5; allow.raw_sockets =3D true; persist =3D true; allow.set_hostname =3D true ; allow.chflags =3D true ; allow.sysvipc =3D true ; allow.mount =3D true ; allow.mount.devfs =3D true; allow.mount.fdescfs =3D true ; allow.mount.nullfs =3D true ; allow.mount.procfs =3D true ; allow.sysvipc =3D true; #allow.mount.linprocfs =3D true ; #allow.mount.linsysfs =3D true ; allow.mount.tmpfs =3D true ; allow.socket_af =3D true ; allow.raw_sockets =3D true ; 1194 { exec.poststop =3D "$vnet ${jid} del"; } (gdb) run -c 1194 Starting program: /usr/sbin/jail -c 1194 Program received signal SIGSEGV, Segmentation fault. load_config () at /usr/src/usr.sbin/jail/config.c:229 229 in /usr/src/usr.sbin/jail/config.c # uname -a FreeBSD bewitched 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC amd64 --=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-256544-227>