Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2017 14:33:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-jail@FreeBSD.org
Subject:   [Bug 213896] when starting vimage jails the kernel crashes
Message-ID:  <bug-213896-9824-LHwx0zLoC9@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213896-9824@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213896-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=3D213896

Heinz N. Gies <heinz@project-fifo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |heinz@project-fifo.net

--- Comment #6 from Heinz N. Gies <heinz@project-fifo.net> ---
I'm having the same problem and can reliably reproduce it.

I noticed it when testing vmadm (https://github.com/project-fifo/r-vmadm) a=
nd
starting and stopping a jail a few times.

The basic steps for start are:

  rctl -a jail:d0f4fea3-e368-4346-b44c-50cfbcffa287:memoryuse:deny=3D1024M
jail:d0f4fea3-e368-4346-b44c-50cfbcffa287:memorylocked:deny=3D1024M
jail:d0f4fea3-e368-4346-b44c-50cfbcffa287:shmsize:deny=3D1024M
jail:d0f4fea3-e368-4346-b44c-50cfbcffa287:pcpu:deny=3D100
jail:d0f4fea3-e368-4346-b44c-50cfbcffa287:maxproc:deny=3D2000

  mount -t devfs devfs
/zroot/jails/d0f4fea3-e368-4346-b44c-50cfbcffa287/root/dev

  mount -t devfs devfs
/zroot/jails/d0f4fea3-e368-4346-b44c-50cfbcffa287/root/jail/dev

  jail -i -c persist name=3Dd0f4fea3-e368-4346-b44c-50cfbcffa287
path=3D/zroot/jails/d0f4fea3-e368-4346-b44c-50cfbcffa287/root
host.hostuuid=3Dd0f4fea3-e368-4346-b44c-50cfbcffa287 host.hostname=3Dtest
devfs_ruleset=3D4 securelevel=3D2 sysvmsg=3Dnew sysvsem=3Dnew sysvshm=3Dnew
allow.raw_sockets children.max=3D1 vnet=3Dnew vnet.interface=3Depair0b
exec.start=3D"/sbin/ifconfig epair0b name net0p; /sbin/ifconfig net0p.5 cre=
ate
vlan 5 vlandev net0p; /sbin/ifconfig net0p.5 name net0; /sbin/ifconfig net0
inet 192.168.1.234 255.255.255.0; /sbin/route add default -gateway 192.168.=
1.1;
/sbin/ifconfig lo0 127.0.0.1 up; jail -c persist
name=3Dd0f4fea3-e368-4346-b44c-50cfbcffa287 host.hostname=3Dtest path=3D/ja=
il
ip4=3Dinherit devfs_ruleset=3D4 securelevel=3D2 sysvmsg=3Dnew sysvsem=3Dnew=
 sysvshm=3Dnew
allow.raw_sockets exec.start=3D'sh /etc/rc'"

ifconfig epair0a name j1:net0



and destroying the jail the same way in reverse (stop, unmount, remove rctl
entries dstrouy j1:net0)


kernel is FreeBSD fifo-bsd 11.0-RELEASE-p1 with=20


which is the standard kenrel config plus

  nooptions       SCTP   # Stream Control Transmission Protocol
  options         VIMAGE # VNET/Vimage support
  options         RACCT  # Resource containers
  options         RCTL   # same as above


I've uploaded the kernel dump here
https://www.dropbox.com/s/73mb8e64cb7zwbe/crash.tar.xz?dl=3D0 (it's too big=
 to
attach)

--=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-213896-9824-LHwx0zLoC9>