NetBSD Problem Report #55481

From jruohone@gmail.com  Sat Jul 11 09:27:18 2020
Return-Path: <jruohone@gmail.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 CF4731A921A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 11 Jul 2020 09:27:18 +0000 (UTC)
Message-Id: <20200711092709.A721F1AECEE@kafka.localdomain>
Date: Sat, 11 Jul 2020 12:27:07 +0300 (EEST)
From: jruohonen@iki.fi
Sender: j ruohonen <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@NetBSD.org
Subject: opensnoop may panic the system
X-Send-Pr-Version: 3.95

>Number:         55481
>Category:       kern
>Synopsis:       opensnoop may panic the system
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 11 09:30:00 +0000 2020
>Last-Modified:  Sat Jul 11 09:40:01 +0000 2020
>Originator:     Jukka Ruohonen
>Release:        -
>Organization:
-
>Environment:
-
>Description:
In some circumstances, and at least under Qemu, /usr/sbin/opensnoop may
panic the system:
https://releng.netbsd.org/b5reports/i386/2020/2020.07.10.07.48.28/test.log
>How-To-Repeat:
The relevant trace is:

usr.sbin/opensnoop/t_opensnoop (699/882): 1 test cases
    basic: [ 63727.3406881] panic: kernel diagnostic assertion "(x86_read_flags() & PSL_I) == 0" failed: file "/tmp/bracket/build/2020.07.10.07.48.28-i386/src/external/cddl/osnet/dev/dtrace/i386/dtrace_subr.c", line 428 interrupts enabled
[ 63727.3406881] cpu0: Begin traceback...
[ 63727.3406881] vpanic(c9681270,ca1df83c,ca1df850,c9727b28,c9681270,c96807f3,c9681250,c9681144,1ac,6) at netbsd:vpanic+0x139
[ 63727.3602172] kern_assert(c9681270,c96807f3,c9681250,c9681144,1ac,6,ca1df924,c01219e0,ca1df930,6) at netbsd:kern_assert+0x23
[ 63727.3602172] dtrace_trap(ca1df930,6,c04842c4,c146c680,0,ca1df878,ffff0000,c1bb6f2c,dead,0) at dtrace:dtrace_trap+0xc6
[ 63727.3602172] trap() at netbsd:trap+0xe7
[ 63727.3602172] --- trap (number 6) ---
[ 63727.3602172] dtrace_copystr(b9b2720c,c4f37228,100,c94512c0,1,ca1dfc58,c27030e0,4,c1ae0000,c1bb1000) at dtrace:dtrace_copystr+0xd
[ 63727.3602172] dtrace_dif_emulate(c27030c0,ca1dfc58,c27030e0,0,c2669b00,f8ef,0,bdfd9b2f,0,0) at dtrace:dtrace_dif_emulate+0x38a8
[ 63727.3802621] dtrace_probe(cf,3,0,0,b9b2720c,601,3,3,0,0) at dtrace:dtrace_probe+0x518
[ 63727.3802621] systrace_probe(cf,5,c1458424,ca1dff68,ca1dff60,0,c29c7c00,ca1dffa8,ca1dff9c,c048a2cd) at dtrace_syscall:systrace_probe+0x79
[ 63727.3802621] trace_exit(5,c1458424,ca1dff68,ca1dff60,0,5,0,ca1dff68,3,0) at netbsd:trace_exit+0x4f
[ 63727.4001694] syscall() at netbsd:syscall+0xad
[ 63727.4001694] --- syscall (number 5) ---
[ 63727.4001694] b9b7a3a7:
[ 63727.4001694] cpu0: End traceback...
[ 63727.4001694] dumping to dev 168,1 offset 1030
[ 63727.4001694] dump 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 succeeded
>Fix:
N/A

>Audit-Trail:
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55481 CVS commit: src/tests/usr.sbin/opensnoop
Date: Sat, 11 Jul 2020 09:35:22 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Sat Jul 11 09:35:22 UTC 2020

 Modified Files:
 	src/tests/usr.sbin/opensnoop: t_opensnoop.sh

 Log Message:
 Skip this test as it may cause a panic. Point to PR kern/55481.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/tests/usr.sbin/opensnoop/t_opensnoop.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(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.