From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 30 21:00:19 2006 Return-Path: X-Original-To: freebsd-bugs@FreeBSD.org Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CD0916A462; Sun, 30 Apr 2006 21:00:19 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAFDB43D5C; Sun, 30 Apr 2006 21:00:11 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id BEF151A4DA9; Sun, 30 Apr 2006 14:00:11 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 23A2E515BB; Sun, 30 Apr 2006 17:00:11 -0400 (EDT) Date: Sun, 30 Apr 2006 17:00:11 -0400 From: Kris Kennaway To: Peter B Message-ID: <20060430210010.GA20532@xor.obsecurity.org> References: <20060429220136.T60015@mp2.macomnet.net> <200604301327.k3UDRcYt003294@brother.ludd.ltu.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <200604301327.k3UDRcYt003294@brother.ludd.ltu.se> User-Agent: Mutt/1.4.2.1i Cc: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/96438: Executeing a linux binary within jail causes reboot. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 21:00:19 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 shy.macomnet.ru 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Jan 29 > >11:21:40 MSK 2006 maxim@shy.macomnet.ru:/usr/obj/usr/src/sys/GENERIC= i386 > >shy# jail / test 127.0.0.1 /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? >=20 > I'll have to make a setup for that. Might take some days due other tasks. >=20 > 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. Kris --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEVSVaWry0BWjoQKURAqZRAJ9UXVOkkn0n9FNK9/6TyUzKo3lifACfW/t1 MpikXJyKIK/lKPutLgm1cTo= =n0hu -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--