NetBSD Problem Report #59215

From root@whooppee.com  Wed Mar 26 10:43:53 2025
Return-Path: <root@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E6CA51A9239
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 26 Mar 2025 10:43:52 +0000 (UTC)
Message-Id: <20250326104320.5D8FD49A963@speedy.whooppee.com>
Date: Wed, 26 Mar 2025 03:43:20 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: npf crash at startup
X-Send-Pr-Version: 3.95

>Number:         59215
>Category:       kern
>Synopsis:       npf crash at startup
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 26 10:45:00 +0000 2025
>Originator:     Paul Goyette
>Release:        NetBSD 10.99.12
>Organization:
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | paul@whooppee.com    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | pgoyette@netbsd.org  |
| & Network Engineer  |                          | pgoyette99@gmail.com |
+---------------------+--------------------------+----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 10.99.12 NetBSD 10.99.12 (GENERIC) #0: Wed Mar 19 03:32:11 UTC 2025 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Something recently changed timing during system startup and as a
result I am getting crashes from npfctl.

I tried to start debugging but the printf's just hid the issue.

No crash dump available due to kern/59153

Here's a snippet of discussion on IRC:
>  18:37 < PaulG> ok, i got partial dmesg - looks pretty garbled in places,
> but mostly matches what i was able to manually transcribe.
>  18:37 < PaulG> [  25.226764file
> "/build/netbsd-local/src_ro/sys/miscfs/specfs/pec_vnops.c", line 1767
> cancel dev=0xc600 failed with 6
>  [...]
>  18:40 < Riastradh> #define ENXIO           6               /* Device not
> configured */
>  18:40 -!- PaulG [~pgoyette@c-76-103-137-75.hsd1.ca.comcast.net] has quit
> [Quit: ]
>  18:40 < Riastradh> major 0xc6 is /dev/npf
>  18:44 < Riastradh> When PaulG comes back -- I bet npf.kmod got unloaded
> before all open file descriptors /dev/npf were closed.
>  18:46 < Riastradh> I think npf_fini has to do
> vdevgone(cdevsw_lookup_major(&npf_cdevsw), 0, 0, VCHR), and npf_dev_open
> should reject minor(dev) != 0.

For now I have just disabled npf.

>How-To-Repeat:

>Fix:


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.