kern/96438: Executeing a linux binary within jail causes reboot.

Kris Kennaway kris at
Sun Apr 30 21:00:19 UTC 2006

On Sun, Apr 30, 2006 at 03:27:38PM +0200, Peter B wrote:
> >> >Description:
> >> Launching a linux binary like tcsh as the initial command from
> >> jail(8) seem to cause system reboot. Second occurence is that in
> >> some circumstances _within_ jail(8) executeing linux binary cause
> >> the system to reboot in the same way. Because the machine in
> >> question is a remote. I have not watched console while this
> >> happends.
> >
> >Can't reproduce on my 6.0-STABLE box and todat HEAD:
> >
> >shy# uname -a
> >FreeBSD 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Jan 29
> >11:21:40 MSK 2006     maxim at  i386
> >shy# jail / test /compat/linux/bin/bash
> >bash-2.05b# uname -a
> >Linux test 2.4.2 FreeBSD 6.0-STABLE #0: Sun Jan 29 11:21:40 MSK 2006
> >i586 i586 i386 GNU/Linux
> >bash-2.05b# exit
> >
> >Could you verify that with the latest RELENG_6?
> I'll have to make a setup for that. Might take some days due other tasks.
> It might be that I setup the jail tree to not use compat. But rather have
> a complete linux system tree at jail root. Ie linux files in /bin/ not
> /compat/linux/bin/

It shouldn't matter as long as they are really linux binaries
(i.e. brandelf(1) is correct).  If they are linux binaries branded as
FreeBSD then running them will easily reboot your machine (since one
of the common linux syscalls has the same syscall number as reboot(2)
on FreeBSD.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-bugs mailing list