NetBSD Problem Report #55451

From jruohone@gmail.com  Fri Jul  3 06:50:45 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 C45F01A9217
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  3 Jul 2020 06:50:44 +0000 (UTC)
Message-Id: <20200703065039.F3B991AECC8@kafka.localdomain>
Date: Fri,  3 Jul 2020 09:50:39 +0300 (EEST)
From: jruohonen@iki.fi
Sender: j ruohonen <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@NetBSD.org
Subject: Many unique panics from /usr/tests/sbin/sysctl/t_random_garbage
X-Send-Pr-Version: 3.95

>Number:         55451
>Category:       kern
>Synopsis:       Many unique panics from /usr/tests/sbin/sysctl/t_random_garbage
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 03 06:55:00 +0000 2020
>Last-Modified:  Fri Jul 03 08:05:02 +0000 2020
>Originator:     jruohonen@iki.fi
>Release:        NetBSD 9.99.68
>Organization:
>Environment:
System: NetBSD kafka 9.99.68 NetBSD 9.99.68 (CUSTOM) #0: Tue Jun 23 11:22:56 EEST 2020 jruoho@kafka:/tmp/obj/sys/arch/amd64/compile/CUSTOM amd64
Architecture: x86_64
Machine: amd64
>Description:
The test in /usr/tests/sbin/sysctl/t_random_garbage causes numerous unique
panics due to lack of input validation in the kernel. Also automated Qemu
runs are affected:
http://releng.netbsd.org/b5reports/i386/2020/2020.07.02.10.36.58/test.log
>How-To-Repeat:
cd /usr/tests/sbin/sysctl
atf-run | atf-report
>Fix:
N/A

>Audit-Trail:
From: Jukka Ruohonen <jruohonen@iki.fi>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55451: Many unique panics from
 /usr/tests/sbin/sysctl/t_random_garbage
Date: Fri, 3 Jul 2020 09:59:24 +0300

 On Fri, Jul 03, 2020 at 06:55:00AM +0000, jruohonen@iki.fi wrote:
 > >Synopsis:       Many unique panics from
 > > /usr/tests/sbin/sysctl/t_random_garbage

 Ditto for /usr/tests/sbin/ifconfig/t_random_garbage.

From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55451 CVS commit: src/tests/sbin
Date: Fri, 3 Jul 2020 07:03:14 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Fri Jul  3 07:03:14 UTC 2020

 Modified Files:
 	src/tests/sbin/ifconfig: t_random_garbage.sh
 	src/tests/sbin/sysctl: t_random_garbage.sh

 Log Message:
 Skip these also for Qemu runs as they cause panics. Point to PR kern/55451.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/ifconfig/t_random_garbage.sh
 cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/sysctl/t_random_garbage.sh

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

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/55451 CVS commit: src/tests/sbin
Date: Fri, 3 Jul 2020 09:52:39 +0200

 On Fri, Jul 03, 2020 at 07:05:02AM +0000, Jukka Ruohonen wrote:
 >  Skip these also for Qemu runs as they cause panics. Point to PR kern/55451.

 This is a very bad idea - if they cause panics and the panics are *not* 
 obviously fallout from a QEMU bug, the test should always be skipped.

 Martin

From: Jukka Ruohonen <jruohonen@iki.fi>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, jruohonen@iki.fi
Subject: Re: PR/55451 CVS commit: src/tests/sbin
Date: Fri, 3 Jul 2020 11:00:58 +0300

 On Fri, Jul 03, 2020 at 07:55:02AM +0000, Martin Husemann wrote:
 >  This is a very bad idea - if they cause panics and the panics are *not* 
 >  obviously fallout from a QEMU bug, the test should always be skipped.

 Indeed this is what is now done. Given that I do not have Anita configured
 at the moment locally, I enabled the tests for Qemu runs a few days ago in
 order to see whether the automated runs reproduce the panics (as they do).

 - Jukka

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/55451 CVS commit: src/tests/sbin
Date: Fri, 3 Jul 2020 10:03:21 +0200

 On Fri, Jul 03, 2020 at 11:00:58AM +0300, Jukka Ruohonen wrote:
 > On Fri, Jul 03, 2020 at 07:55:02AM +0000, Martin Husemann wrote:
 > >  This is a very bad idea - if they cause panics and the panics are *not* 
 > >  obviously fallout from a QEMU bug, the test should always be skipped.
 > 
 > Indeed this is what is now done. Given that I do not have Anita configured
 > at the moment locally, I enabled the tests for Qemu runs a few days ago in
 > order to see whether the automated runs reproduce the panics (as they do).

 Ah ok, misunderstood the commit message.

 Martin

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.