NetBSD Problem Report #55417
From jruohone@gmail.com Thu Jun 25 14:03:27 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 9F8511A9217
for <gnats-bugs@gnats.NetBSD.org>; Thu, 25 Jun 2020 14:03:27 +0000 (UTC)
Message-Id: <20200625140320.DA26F1AEC8B@kafka.localdomain>
Date: Thu, 25 Jun 2020 17:03:20 +0300 (EEST)
From: jruohonen@iki.fi
Sender: j ruohonen <jruohone@gmail.com>
Reply-To: jruohonen@iki
To: gnats-bugs@NetBSD.org
Subject: Creating many, many tap(4)'s panics the system
X-Send-Pr-Version: 3.95
>Number: 55417
>Category: kern
>Synopsis: Creating many, many tap(4)'s panics the system
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 25 14:05:00 +0000 2020
>Last-Modified: Thu Jun 25 18:35:01 +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 system panics either upon the creation or the deletion of a large number
of tap(4) devices.
>How-To-Repeat:
Create a huge number (i.e., thousands) of tap(4)'s sequentially, and then
destroy these sequentially. A hand-copied trace:
[...]
Stopped in pid 9053.9053 (ifconfig) at netbsd:config_devalloc+0x112: cmpq
$0,0(%rcx,%r15,8)
config_devalloc() at netbsd:config_devalloc+0x112
config_attach_pseudo at netbsd:config_attach_pseudo+0x16
tap_clone_creator() at netbsd:tap_clone_creator+0x46
tap_clone_create() at netbsd_tap_clone_create+0x12
doifioctl() at netbsd:doifioctl+0xe6e
[...]
>Fix:
N/A
>Audit-Trail:
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55417 CVS commit: src
Date: Thu, 25 Jun 2020 14:24:46 +0000
Module Name: src
Committed By: jruoho
Date: Thu Jun 25 14:24:46 UTC 2020
Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/sbin/ifconfig: Makefile
Added Files:
src/tests/sbin/ifconfig: t_tap.sh
Log Message:
Add test cases for PR kern/53546 and PR kern/55417. Both are skipped as
both reproduce panics.
To generate a diff of this commit:
cvs rdiff -u -r1.848 -r1.849 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/ifconfig/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/sbin/ifconfig/t_tap.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55417 CVS commit: src
Date: Thu, 25 Jun 2020 18:30:42 +0000
Module Name: src
Committed By: jruoho
Date: Thu Jun 25 18:30:42 UTC 2020
Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/sbin/ifconfig: Makefile t_tap.sh
Added Files:
src/tests/sbin/ifconfig: t_bridge.sh
Log Message:
Test creating thousands of bridge(4)'s. Unlike with tap(4) (PR kern/55417),
this test succeeeds. It is even possible to have the ultimate ifconfig(8)
output with more than 65,000 devices.
To generate a diff of this commit:
cvs rdiff -u -r1.853 -r1.854 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.4 -r1.5 src/tests/sbin/ifconfig/Makefile \
src/tests/sbin/ifconfig/t_tap.sh
cvs rdiff -u -r0 -r1.1 src/tests/sbin/ifconfig/t_bridge.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(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.