From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 30 18:27:53 2011 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8D5C106567A; Sun, 30 Jan 2011 18:27:53 +0000 (UTC) (envelope-from arundel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C045C8FC12; Sun, 30 Jan 2011 18:27:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0UIRrrL089933; Sun, 30 Jan 2011 18:27:53 GMT (envelope-from arundel@freefall.freebsd.org) Received: (from arundel@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0UIRrnk089915; Sun, 30 Jan 2011 18:27:53 GMT (envelope-from arundel) Date: Sun, 30 Jan 2011 18:27:53 GMT Message-Id: <201101301827.p0UIRrnk089915@freefall.freebsd.org> To: oleg.ginzburg@nevosoft.ru, arundel@FreeBSD.org, freebsd-emulation@FreeBSD.org From: arundel@FreeBSD.org Cc: 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:27:54 -0000 Old Synopsis: [linux] [panic] kernel crash by linux.ko module with nooptions COMPAT_FREEBSD32 New Synopsis: [linux] kernel crash by linux.ko module with nooptions COMPAT_FREEBSD32 State-Changed-From-To: open->analyzed State-Changed-By: arundel State-Changed-When: Sun Jan 30 18:13:13 UTC 2011 State-Changed-Why: We have two possibilities in order to fix this issue: 1) Add something like the following somewhere in sys/amd/linux32: #ifndef COMPAT_FREEBSD32 #error "linux emulation requires COMPAT_FREEBSD32 \ option for non 32 bit architectures" #endif 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/linux32 code that depends on sys/amd64/ia32 code. 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 loading the linux kernel module thus fails. http://www.freebsd.org/cgi/query-pr.cgi?pr=145024