NetBSD Problem Report #52628
From www@NetBSD.org Thu Oct 19 09:16:09 2017
Return-Path: <www@NetBSD.org>
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 9D3E87A177
for <gnats-bugs@gnats.NetBSD.org>; Thu, 19 Oct 2017 09:16:09 +0000 (UTC)
Message-Id: <20171019091608.D07C37A295@mollari.NetBSD.org>
Date: Thu, 19 Oct 2017 09:16:08 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: tracing 32-bit application on 64-bit kernel panic
X-Send-Pr-Version: www-1.0
>Number: 52628
>Category: kern
>Synopsis: tracing 32-bit application on 64-bit kernel panic
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kamil
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 19 09:20:00 +0000 2017
>Closed-Date: Tue Jun 04 22:59:30 +0000 2019
>Last-Modified: Tue Jun 04 22:59:30 +0000 2019
>Originator: Kamil Rytarowski
>Release: NetBSD 8.99.2 amd64
>Organization:
TNF
>Environment:
NetBSD compaq 8.99.2 NetBSD 8.99.2 (GENERIC) #1: Wed Sep 6 23:28:12 CEST 2017 root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
c
>Description:
# crash -M ./netbsd.4.core -N /netbsd.gdb
Crash version 8.99.2, image version 8.99.2.
System panicked: kernel diagnostic assertion "(p->p_flag & PK_32) == 0" failed: file "/usr/src/sys/arch/amd64/amd64/machdep.c", line 1906
Backtrace from time of crash is available.
crash> bt
_KERNEL_OPT_NVGA_RASTERCONSOLE() at 0
?() at ffffe40049a33360
vpanic() at vpanic+0x149
ch_voltag_convert_in() at ch_voltag_convert_in
cpu_mcontext_validate() at cpu_mcontext_validate+0x10e
process_write_regs() at process_write_regs+0x13
process_doregs() at process_doregs+0xb9
do_ptrace() at do_ptrace+0x8a7
sys_ptrace() at sys_ptrace+0x28
syscall() at syscall+0x1d8
--- syscall (number 26) ---
77327463c917:
>How-To-Repeat:
gcc test.c -m32 -o test
gdb ./test
>Fix:
Not investigated but this shall be fixed for NetBSD-8.
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/52628: tracing 32-bit application on 64-bit kernel panic
Date: Thu, 19 Oct 2017 11:27:07 +0200
On Thu, Oct 19, 2017 at 09:20:00AM +0000, n54@gmx.com wrote:
> >How-To-Repeat:
> gcc test.c -m32 -o test
> gdb ./test
I can not quite reproduce it:
[/tmp] martin@seven-days-to-the-wolves > file test
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /usr/libexec/ld.elf_so, for NetBSD 8.99.4, not stripped
[/tmp] martin@seven-days-to-the-wolves > uname -a
NetBSD seven-days-to-the-wolves.aprisoft.de 8.99.4 NetBSD 8.99.4 (GENERIC) #160: Wed Oct 11 12:35:27 CEST 2017 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
[/tmp] martin@seven-days-to-the-wolves > gdb ./test
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./test...(no debugging symbols found)...done.
(gdb) run
Starting program: /tmp/test
Couldn't write registers: Invalid argument.
(gdb)
Martin
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/52628: tracing 32-bit application on 64-bit kernel panic
Date: Thu, 19 Oct 2017 11:41:24 +0200
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ahqIctKie8XTfTB3i1aFjoFwSU5cgrHgT
Content-Type: multipart/mixed; boundary="JnVxpSNHQlPlgXno66tuW8pURRd4U81gr";
protected-headers="v1"
From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Message-ID: <dfc92cfa-d7e5-4068-12e5-3c15c9bc53fc@gmx.com>
Subject: Re: kern/52628: tracing 32-bit application on 64-bit kernel panic
References: <pr-kern-52628@gnats.netbsd.org>
<20171019091608.D07C37A295@mollari.NetBSD.org>
<20171019093001.BF8F77A295@mollari.NetBSD.org>
In-Reply-To: <20171019093001.BF8F77A295@mollari.NetBSD.org>
--JnVxpSNHQlPlgXno66tuW8pURRd4U81gr
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
On 19.10.2017 11:30, Martin Husemann wrote:
> The following reply was made to PR kern/52628; it has been noted by GNA=
TS.
>=20
> From: Martin Husemann <martin@duskware.de>
> To: gnats-bugs@NetBSD.org
> Cc:=20
> Subject: Re: kern/52628: tracing 32-bit application on 64-bit kernel pa=
nic
> Date: Thu, 19 Oct 2017 11:27:07 +0200
>=20
> On Thu, Oct 19, 2017 at 09:20:00AM +0000, n54@gmx.com wrote:
> > >How-To-Repeat:
> > gcc test.c -m32 -o test
> > gdb ./test
> =20
> I can not quite reproduce it:
> =20
> [/tmp] martin@seven-days-to-the-wolves > file test
> test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynami=
cally linked, interpreter /usr/libexec/ld.elf_so, for NetBSD 8.99.4, not =
stripped
> [/tmp] martin@seven-days-to-the-wolves > uname -a
> NetBSD seven-days-to-the-wolves.aprisoft.de 8.99.4 NetBSD 8.99.4 (GENE=
RIC) #160: Wed Oct 11 12:35:27 CEST 2017 martin@seven-days-to-the-wolves=
=2Eaprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
> [/tmp] martin@seven-days-to-the-wolves > gdb ./test
> GNU gdb (GDB) 7.12
> Copyright (C) 2016 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gp=
l.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copy=
ing"
> and "show warranty" for details.
> This GDB was configured as "x86_64--netbsd".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from ./test...(no debugging symbols found)...done.
> (gdb) run
> Starting program: /tmp/test=20
> Couldn't write registers: Invalid argument.
> (gdb)=20
> =20
> Martin
> =20
>=20
I observed this already in the past.. I was trying to panic the kernel
with ATF ptrace(2) tests from i386 on amd64 without success.
I will investigate it later.
--JnVxpSNHQlPlgXno66tuW8pURRd4U81gr--
--ahqIctKie8XTfTB3i1aFjoFwSU5cgrHgT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQJABAEBCAAqFiEELaxVpweEzw+lMDwuS7MI6bAudmwFAlnoc00MHG41NEBnbXgu
Y29tAAoJEEuzCOmwLnZscQUP/RYxXtVL35fhY1jdl6qKJLwKlo2IWRnMYzipLJ9c
bRC6ArAwd+Baa/3rzkY6vItrSeEPMD1Wp7vyhWxyQ+jFI8+ynzwOykb/YiNmGas5
ov0i00Y8Xan8R6rfQ1CPLIN5Gb5xvFo97It5LfS6POWjzAaZeWGY4WvozOhVD6ci
jUw7PeDPmpcrOBnPPO+VGIwEqTQ9zXqW8mvK8S4jC3mZG73RgH1nL1ho7JD46a90
7YYK3sxDkg4FPJba8tQTakoGTxJCiaNoZZnZf56e4W4g3P3GE+y3KjgbkS6BmSQP
6CAYCIKmz6JJhpLSNyQbI564tz2F2qqnlSB4SkWGk8PKgkskXL3ckNdK2tWc9Bg7
ZlAF48Cp0VcnQv4iJD8Lqvdmp2dEyf+RWd59KBoBfs1K8vZYoVFoXVhZfHRTQxYA
oIpeOZPTzylTaTXOF1ce9KQ2aD5dF9rjzlUA4++BI6zgDsLH6oGOabonqqCeBGAH
OhQc4MLCGGlog+m5MDRHJ+N69C++TlGRPqYX6vsX/kEHcT4h5DahVTy1OLcMUX1E
pKj5eLaFVvc7HOx0OoW93AJoegAXKNfv2QhBwr4vaeTzse/0uepJeWwUHC1Mjlnb
oCjK6609pykbR9kGvzwigHhuc1Sr3lM9VrSISVdgec2F2wYuf8cB6IVdTD+YDusI
i5NG
=2ePz
-----END PGP SIGNATURE-----
--ahqIctKie8XTfTB3i1aFjoFwSU5cgrHgT--
Responsible-Changed-From-To: kern-bug-people->kamil
Responsible-Changed-By: kamil@NetBSD.org
Responsible-Changed-When: Mon, 06 Nov 2017 05:30:32 +0100
Responsible-Changed-Why:
Take.
State-Changed-From-To: open->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Wed, 05 Jun 2019 00:59:30 +0200
State-Changed-Why:
No longer reproducible as of NetBSD 8.99.42.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.