NetBSD Problem Report #54547

From www@netbsd.org  Fri Sep 13 16:09:11 2019
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 A40EB7A186
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 Sep 2019 16:09:11 +0000 (UTC)
Message-Id: <20190913160910.C5AF77A1E3@mollari.NetBSD.org>
Date: Fri, 13 Sep 2019 16:09:10 +0000 (UTC)
From: colin.i.king@gmail.com
Reply-To: colin.i.king@gmail.com
To: gnats-bugs@NetBSD.org
Subject: running stress-ng --dev 1 will cause the kernel to panic and reboot
X-Send-Pr-Version: www-1.0

>Number:         54547
>Category:       kern
>Synopsis:       running stress-ng --dev 1 will cause the kernel to panic and reboot
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 13 16:10:00 +0000 2019
>Last-Modified:  Mon Oct 28 19:15:01 +0000 2019
>Originator:     Colin Ian King
>Release:        NetBSD 8.0
>Organization:
Ubuntu
>Environment:
NetBSD localhost 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The stress-ng dev stressor will cause NetBSD to reboot when running it as a normal unprivileged user.


>How-To-Repeat:
git clone git://github.com/ColinIanKing/stress-ng
cd stress-ng
gmake clean; gmake
./stress-ng --dev 1

..and it reboots.
>Fix:
No idea

>Audit-Trail:
From: Thomas Klausner <tk@giga.or.at>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/54547: running stress-ng --dev 1 will cause the kernel to
 panic and reboot
Date: Wed, 18 Sep 2019 20:15:16 +0200

 On Fri, Sep 13, 2019 at 04:10:00PM +0000, colin.i.king@gmail.com wrote:
 > ./stress-ng --dev 1

 What does the code do in this stress test case?
  Thomas

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54547 CVS commit: [netbsd-8] src/sys/dev
Date: Mon, 28 Oct 2019 19:12:18 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Oct 28 19:12:18 UTC 2019

 Modified Files:
 	src/sys/dev [netbsd-8]: audio.c

 Log Message:
 Apply patch, requested by nat in ticket #1419:

 PR kern/54547:
 do not allow mmap() of audio devices that have not been opened for r/w.


 To generate a diff of this commit:
 cvs rdiff -u -r1.357.2.13 -r1.357.2.14 src/sys/dev/audio.c

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