From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 30 18:42:06 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 330BD106566B; Sun, 30 Jan 2011 18:42:06 +0000 (UTC) (envelope-from dchagin@dchagin.static.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id D3B7A8FC0A; Sun, 30 Jan 2011 18:42:05 +0000 (UTC) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id A0FAFCC73D; Sun, 30 Jan 2011 21:42:02 +0300 (MSK) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from [10.208.17.3] (HELO dchagin.static.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 296876078; Sun, 30 Jan 2011 21:42:02 +0300 Received: from dchagin.static.corbina.ru (localhost [127.0.0.1]) by dchagin.static.corbina.ru (8.14.4/8.14.4) with ESMTP id p0UIg2ch011097; Sun, 30 Jan 2011 21:42:02 +0300 (MSK) (envelope-from dchagin@dchagin.static.corbina.ru) Received: (from dchagin@localhost) by dchagin.static.corbina.ru (8.14.4/8.14.4/Submit) id p0UIfvW4011096; Sun, 30 Jan 2011 21:41:57 +0300 (MSK) (envelope-from dchagin) Date: Sun, 30 Jan 2011 21:41:57 +0300 From: Chagin Dmitry To: arundel@freebsd.org Message-ID: <20110130184157.GA11074@dchagin.static.corbina.ru> References: <201101301827.p0UIRrnk089915@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <201101301827.p0UIRrnk089915@freefall.freebsd.org> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: oleg.ginzburg@nevosoft.ru, freebsd-emulation@freebsd.org Subject: Re: kern/145024: [linux] kernel crash by linux.ko module with nooptions COMPAT_FREEBSD32 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2011 18:42:06 -0000 --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 30, 2011 at 06:27:53PM +0000, arundel@freebsd.org wrote: > Old Synopsis: [linux] [panic] kernel crash by linux.ko module with noopti= ons COMPAT_FREEBSD32 > New Synopsis: [linux] kernel crash by linux.ko module with nooptions COMP= AT_FREEBSD32 >=20 > State-Changed-From-To: open->analyzed > State-Changed-By: arundel > State-Changed-When: Sun Jan 30 18:13:13 UTC 2011 > State-Changed-Why:=20 > We have two possibilities in order to fix this issue: >=20 > 1) Add something like the following somewhere in sys/amd/linux32: >=20 > #ifndef COMPAT_FREEBSD32 > #error "linux emulation requires COMPAT_FREEBSD32 \ > option for non 32 bit architectures" > #endif >=20 > 2) Find a way to avoid the freebsd32_exec_copyin_args() call in > linux32_machdep.c. I believe this is the only place in the sys/amd/lin= ux32 > code that depends on sys/amd64/ia32 code. >=20 > NB: I've removed the panic tag from this PR. I was able to reproduce the = issue, > however a panic didn't occur. The problem is that > freebsd32_exec_copyin_args() wasn't compiled into the kernel and load= ing the > linux kernel module thus fails. >=20 hi, close report, see r205014. --=20 Have fun! chd --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAk1FsPQACgkQ0t2Tb3OO/O3S5wCgjfnOt1luo7vrgpXM7xCn9KRa Xf0AnA7KpgvItRgjh4om43dq2pUrOg1S =4qjC -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--