NetBSD Problem Report #55586

From martin@aprisoft.de  Wed Aug 19 09:59:02 2020
Return-Path: <martin@aprisoft.de>
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 8F8A61A9217
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 Aug 2020 09:59:02 +0000 (UTC)
Message-Id: <20200819095853.6F98B5CC7A5@emmas.aprisoft.de>
Date: Wed, 19 Aug 2020 11:58:53 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: all NPF tests fail with LOCKDEBUG
X-Send-Pr-Version: 3.95

>Number:         55586
>Category:       kern
>Synopsis:       all NPF tests fail with LOCKDEBUG
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 19 10:00:00 +0000 2020
>Closed-Date:    Sat Nov 14 17:43:12 +0000 2020
>Last-Modified:  Sat Nov 14 17:43:12 +0000 2020
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.71
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD h-pulse.aprisoft.de 9.99.71 NetBSD 9.99.71 (GENERIC64) #153: Tue Aug 18 19:44:24 CEST 2020 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/GENERIC64 evbarm
Architecture: aarch64
Machine: evbarm
>Description:

For unrelated debugging purpuses I build a full release with
-V RUMP_LOCKDEBUG=yes and did a full ATF test run.

All NPF tests fail like this:

tp-start: 1597830568.231174, t_npf, 7
tc-start: 1597830568.231236, npf_bpf
tc-so:Executing command [ npfctl debug -c /usr/tests/net/npf/npftest.conf -o ./npf.plist ]
tc-so:Executing command [ npftest -c npf.plist -T bpf ]
tc-se:Fail: program did not exit cleanly
tc-se:stdout:
tc-se:[   1.0000000] pool redzone disabled for 'kmem-04096'
tc-se:[   1.0000000] entropy: no seed from bootloader
tc-se:[   1.0000000] entropy: ready
tc-se:[   1.0200050] pool redzone disabled for 'buf64k'
tc-se:[   1.0200050] mutex error: _mutex_init,141: already initialized
tc-se:
tc-se:[   1.0200050] lock address : 0x0000fb08f5ef6828 type     :     sleep/adaptive
tc-se:[   1.0200050] initialized  : 0x0000fb08f5ed3244
tc-se:[   1.0200050] shared holds :                  0 exclusive:                  0
tc-se:[   1.0200050] shares wanted:                  0 exclusive:                  0
tc-se:[   1.0200050] relevant cpu :                  0 last held:                  0
tc-se:[   1.0200050] relevant lwp : 0x0000fb08f535b200 last held: 000000000000000000
tc-se:[   1.0200050] last locked  : 000000000000000000 unlocked*: 000000000000000000
tc-se:
tc-se:[   1.0200050] panic: LOCKDEBUG: mutex error: _mutex_init,141: already initialized
tc-se:[   1.0200050] rump kernel halting...
tc-se:halted
tc-se:
tc-se:stderr:
tc-se:
tc-end: 1597830569.69009, npf_bpf, failed, atf-check failed; see the output of the test for details

>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55586 CVS commit: src
Date: Thu, 27 Aug 2020 18:50:25 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Thu Aug 27 18:50:25 UTC 2020

 Modified Files:
 	src/sys/net/npf: npf.c npf_impl.h npf_portmap.c
 	src/usr.sbin/npf/npftest/libnpftest: npf_test_subr.c

 Log Message:
 npf: Make sure to initialize portmap_lock only once.

 PR kern/55586


 To generate a diff of this commit:
 cvs rdiff -u -r1.43 -r1.44 src/sys/net/npf/npf.c
 cvs rdiff -u -r1.81 -r1.82 src/sys/net/npf/npf_impl.h
 cvs rdiff -u -r1.5 -r1.6 src/sys/net/npf/npf_portmap.c
 cvs rdiff -u -r1.18 -r1.19 \
     src/usr.sbin/npf/npftest/libnpftest/npf_test_subr.c

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

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Sat, 14 Nov 2020 17:43:12 +0000
State-Changed-Why:
Taylor fixed it


>Unformatted:

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.