NetBSD Problem Report #55037
From paul@whooppee.com Sun Mar 1 16:35:53 2020
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 58C331A9217
for <gnats-bugs@gnats.NetBSD.org>; Sun, 1 Mar 2020 16:35:53 +0000 (UTC)
Message-Id: <20200301163522.09AE530F2C3@speedy.whooppee.com>
Date: Sun, 1 Mar 2020 08:35:22 -0800 (PST)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: built-in compat_netbsd32 doesn't handle a.out image from NetBSD-0.9
X-Send-Pr-Version: 3.95
>Number: 55037
>Category: kern
>Synopsis: built-in compat_netbsd32 doesn't handle a.out image from NetBSD-0.9
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pgoyette
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 01 16:40:00 +0000 2020
>Closed-Date: Sun Mar 08 11:47:08 +0000 2020
>Last-Modified: Sun Mar 08 11:47:08 +0000 2020
>Originator: Paul Goyette
>Release: NetBSD 9.99.46
>Organization:
+--------------------+--------------------------+-----------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org |
+--------------------+--------------------------+-----------------------+
>Environment:
System: NetBSD speedy.whooppee.com 9.99.46 NetBSD 9.99.46 (SPEEDY 2020-02-07 16:26:35 UTC) #1: Fri Feb 7 19:37:58 UTC 2020 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
Existing built-in compat_netbsd32 code doesn't handle a.out
images.
Built-in compat_netbsd32 module is built _without_ having
EXEC_AOUT defined, so the a.out execsw doesn't get defined,
and check_exec() doesn't find a match. It therefore returns
ENOEXEC
>How-To-Repeat:
Build a stock GENERIC kernel and try to run a static image
from NetBSD-i386 version 0.9
>Fix:
>Release-Note:
>Audit-Trail:
From: "Paul Goyette" <pgoyette@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55037 CVS commit: src/sys/conf
Date: Wed, 4 Mar 2020 02:20:57 +0000
Module Name: src
Committed By: pgoyette
Date: Wed Mar 4 02:20:57 UTC 2020
Modified Files:
src/sys/conf: files
Log Message:
mips64 has compat_netbsd32 but cannot have exec_aout; all other users
of compat_netbsd32 need exec_aout
Addresses PR kern/55037.
XXX pullup-9
To generate a diff of this commit:
cvs rdiff -u -r1.1256 -r1.1257 src/sys/conf/files
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: kern-bug-people->pgoyette
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Wed, 04 Mar 2020 02:29:25 +0000
Responsible-Changed-Why:
It's mine
State-Changed-From-To: open->pending-pullups
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Wed, 04 Mar 2020 02:29:25 +0000
State-Changed-Why:
Fix committed to head. Pullups requested #9-757 and #8-1514
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55037 CVS commit: [netbsd-8] src/sys/conf
Date: Sun, 8 Mar 2020 09:42:29 +0000
Module Name: src
Committed By: martin
Date: Sun Mar 8 09:42:29 UTC 2020
Modified Files:
src/sys/conf [netbsd-8]: files
Log Message:
Pull up following revision(s) (requested by pgoyette in ticket #1514):
sys/conf/files: revision 1.1257
sys/conf/files: revision 1.1258
mips64 has compat_netbsd32 but cannot have exec_aout; all other users
of compat_netbsd32 need exec_aout
Addresses PR kern/55037.
XXX pullup-9
Fix comment - thanks Ryo Shimizu
To generate a diff of this commit:
cvs rdiff -u -r1.1173.2.8 -r1.1173.2.9 src/sys/conf/files
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55037 CVS commit: [netbsd-9] src/sys/conf
Date: Sun, 8 Mar 2020 10:18:04 +0000
Module Name: src
Committed By: martin
Date: Sun Mar 8 10:18:04 UTC 2020
Modified Files:
src/sys/conf [netbsd-9]: files
Log Message:
Pull up following revision(s) (requested by pgoyette in ticket #757):
sys/conf/files: revision 1.1257
sys/conf/files: revision 1.1258
sys/conf/files: revision 1.1259
mips64 has compat_netbsd32 but cannot have exec_aout; all other users
of compat_netbsd32 need exec_aout
Addresses PR kern/55037.
XXX pullup-9
Fix comment - thanks Ryo Shimizu
Also exclude EXEC_AOUT stuff for aarch64
XXX Pullup-9 and -8
To generate a diff of this commit:
cvs rdiff -u -r1.1237.2.4 -r1.1237.2.5 src/sys/conf/files
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Sun, 08 Mar 2020 11:47:08 +0000
State-Changed-Why:
Pullups were applied
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.