NetBSD Problem Report #60491

From www@netbsd.org  Thu Jul 23 20:56:59 2026
Return-Path: <www@netbsd.org>
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 "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8801F1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 23 Jul 2026 20:56:59 +0000 (UTC)
Message-Id: <20260723205658.48EC51A923C@mollari.NetBSD.org>
Date: Thu, 23 Jul 2026 20:56:58 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: arp creates state for invalid messages
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60491
>Category:       kern
>Synopsis:       arp creates state for invalid messages
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 23 21:00:00 +0000 2026
>Closed-Date:    
>Last-Modified:  Fri Nov 20 12:05:01 +0000 2026
>Originator:     Taylor R Campbell
>Release:        
>Organization:
The NetBSD Addressolution, Invalid
>Environment:
>Description:

	The arp input path doesn't validate the op until after it has
	allocated memory and stored state for the message, causing the
	kernel to waste memory and report invalid arp entries to the
	system.

	Forwarded to us by Chris Jarrett-Davies <chrisjd@openai.com>.

>How-To-Repeat:

	send arp packets with bogus op fields

>Fix:

	validate earlier on in arpintr or ip_arpinput

>Release-Note:

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60491 CVS commit: src/sys/netinet
Date: Thu, 23 Jul 2026 21:49:19 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Thu Jul 23 21:49:19 UTC 2026

 Modified Files:
 	src/sys/netinet: if_arp.c

 Log Message:
 arp: Validate op on input, before creating any state.

 PR kern/60491: arp creates state for invalid messages


 To generate a diff of this commit:
 cvs rdiff -u -r1.320 -r1.321 src/sys/netinet/if_arp.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->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Thu, 23 Jul 2026 22:10:04 +0000
State-Changed-Why:
fixed in HEAD, needs pullup-11, pullup-10, pullup-9


From: Taylor R Campbell <riastradh@NetBSD.org>
To: gnats-bugs@NetBSD.org, netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Fri, 16 Oct 2026 15:16:30 +0000

 This is a multi-part message in MIME format.
 --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw

 Fixxy bug, buggy fix...

 --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
 Content-Type: message/rfc822
 Content-Disposition: inline

 Date: Fri, 16 Oct 2026 15:57:15 +0200
 From: Thomas Klausner <wiz@netbsd.org>
 To: Taylor R Campbell <riastradh@netbsd.org>
 Cc: current-users@netbsd.org
 Subject: Re: CVS commit: src/sys/netinet
 Message-ID: <atIsrv9rvTBqnr6s@exadelic.gatalith.at>
 In-Reply-To: <20260723214919.6E9F5F99A@cvs.NetBSD.org>
 References: <20260723214919.6E9F5F99A@cvs.NetBSD.org>
 MIME-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Thu, Jul 23, 2026 at 09:49:19PM +0100, Taylor R Campbell wrote:
 > Module Name:	src
 > Committed By:	riastradh
 > Date:		Thu Jul 23 21:49:19 UTC 2026
 > 
 > Modified Files:
 > 	src/sys/netinet: if_arp.c
 > 
 > Log Message:
 > arp: Validate op on input, before creating any state.
 > 
 > PR kern/60491: arp creates state for invalid messages

 I just had a panic triggered by this message:
 kernel diagnostic assertion "op == ARPOP_REPLY || op == ARPOP_REQUEST" failed: file "/usr/src/sys/netinet/if_arp.c", line 801

 I have never seen this one before.

 The only unusual thing I had going was a qemu with NetBSD downloading
 pkgsrc (via a tap bridge).

 A core dump is available.
  Thomas


 > 
 > To generate a diff of this commit:
 > cvs rdiff -u -r1.320 -r1.321 src/sys/netinet/if_arp.c
 > 
 > Please note that diffs are not public domain; they are subject to the
 > copyright notices on the relevant files.
 > 

 > Modified files:
 > 
 > Index: src/sys/netinet/if_arp.c
 > diff -u src/sys/netinet/if_arp.c:1.320 src/sys/netinet/if_arp.c:1.321
 > --- src/sys/netinet/if_arp.c:1.320	Fri May 29 02:45:14 2026
 > +++ src/sys/netinet/if_arp.c	Thu Jul 23 21:49:19 2026
 > @@ -1,4 +1,4 @@
 > -/*	$NetBSD: if_arp.c,v 1.320 2026/05/29 02:45:14 ozaki-r Exp $	*/
 > +/*	$NetBSD: if_arp.c,v 1.321 2026/07/23 21:49:19 riastradh Exp $	*/
 >  
 >  /*
 >   * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
 > @@ -68,7 +68,7 @@
 >   */
 >  
 >  #include <sys/cdefs.h>
 > -__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.320 2026/05/29 02:45:14 ozaki-r Exp $");
 > +__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.321 2026/07/23 21:49:19 riastradh Exp $");
 >  
 >  #ifdef _KERNEL_OPT
 >  #include "opt_ddb.h"
 > @@ -734,6 +734,14 @@ arpintr(void *arg __unused)
 >  		switch (ntohs(ar->ar_pro)) {
 >  		case ETHERTYPE_IP:
 >  		case ETHERTYPE_IPTRAILERS:
 > +			switch (ntohs(ar->ar_op)) {
 > +			case ARPOP_REQUEST:
 > +			case ARPOP_REPLY:
 > +				break;
 > +			default:
 > +				ARP_STATINC(ARP_STAT_RCVBADPROTO);
 > +				goto free;
 > +			}
 >  			in_arpinput(m);
 >  			continue;
 >  		default:
 > @@ -790,6 +798,7 @@ in_arpinput(struct mbuf *m)
 >  		goto out;
 >  	ah = mtod(m, struct arphdr *);
 >  	op = ntohs(ah->ar_op);
 > +	KASSERT(op == ARPOP_REPLY || op == ARPOP_REQUEST);
 >  
 >  	if (ah->ar_pln != sizeof(struct in_addr))
 >  		goto out;
 > @@ -1112,8 +1121,8 @@ reply:
 >  		la = NULL;
 >  	}
 >  	if (op != ARPOP_REQUEST) {
 > -		if (op == ARPOP_REPLY)
 > -			ARP_STATINC(ARP_STAT_RCVREPLY);
 > +		KASSERT(op == ARPOP_REPLY);
 > +		ARP_STATINC(ARP_STAT_RCVREPLY);
 >  		goto out;
 >  	}
 >  	ARP_STATINC(ARP_STAT_RCVREQUEST);
 > 


 --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--

From: Taylor R Campbell <riastradh@NetBSD.org>
To: Thomas Klausner <wiz@NetBSD.org>,
	Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Fri, 16 Oct 2026 15:23:01 +0000

 This is a multi-part message in MIME format.
 --=_tVq9BOFzAnpXS9N5Qy8XBZQoi+hFOgDk

 Can you please try to reproduce it with the attached patch?  Should
 help to narrow down where things are going wrong.

 --=_tVq9BOFzAnpXS9N5Qy8XBZQoi+hFOgDk
 Content-Type: text/plain; charset="ISO-8859-1"; name="pr60491-arpcrashdiag"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename="pr60491-arpcrashdiag.patch"

 # HG changeset patch
 # User Taylor R Campbell <riastradh@NetBSD.org>
 # Date 1792164105 0
 #      Fri Oct 16 15:21:45 2026 +0000
 # Branch trunk
 # Node ID adab6b9c88cde7ef98ff7436dc06bece8350063f
 # Parent  8fabf8640a9ac16011ccfe817764973287f81e77
 # EXP-Topic riastradh-pr60491-arpvalidation
 WIP: if_arp: Add diagnostics for crash.

 PR kern/60491: arp creates state for invalid messages

 diff -r 8fabf8640a9a -r adab6b9c88cd sys/netinet/if_arp.c
 --- a/sys/netinet/if_arp.c	Thu Oct 08 00:06:04 2026 +0000
 +++ b/sys/netinet/if_arp.c	Fri Oct 16 15:21:45 2026 +0000
 @@ -742,6 +742,8 @@ arpintr(void *arg __unused)
  				ARP_STATINC(ARP_STAT_RCVBADPROTO);
  				goto free;
  			}
 +			KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REPLY ||
 +			    ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REQUEST);
  			in_arpinput(m);
  			continue;
  		default:
 @@ -794,6 +796,8 @@ in_arpinput(struct mbuf *m)
  	char ipbuf[INET_ADDRSTRLEN];
  	bool find_source, do_dad;
 =20
 +	KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REPLY ||
 +	    ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REQUEST);
  	if (__predict_false(m_makewritable(&m, 0, m->m_pkthdr.len, M_DONTWAIT)))
  		goto out;
  	ah =3D mtod(m, struct arphdr *);
 @@ -1895,7 +1899,11 @@ in_revarpinput(struct mbuf *m)
  	switch (op) {
  	case ARPOP_REQUEST:
  	case ARPOP_REPLY:	/* per RFC */
 +		KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REPLY ||
 +		    ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REQUEST);
  		m_put_rcvif(rcvif, &s);
 +		KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REPLY ||
 +		    ntohs(mtod(m, struct arphdr *)->ar_op) =3D=3D ARPOP_REQUEST);
  		in_arpinput(m);
  		return;
  	case ARPOP_REVREPLY:

 --=_tVq9BOFzAnpXS9N5Qy8XBZQoi+hFOgDk--

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Taylor R Campbell <riastradh@NetBSD.org>
Cc: Thomas Klausner <wiz@NetBSD.org>, gnats-bugs@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Fri, 16 Oct 2026 18:19:38 +0200

 On Fri, Oct 16, 2026 at 03:23:01PM +0000, Taylor R Campbell wrote:
 > Can you please try to reproduce it with the attached patch?  Should
 > help to narrow down where things are going wrong.

 I built a kernel with this patch and rebooted. Let see if we get a
 panic ...

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
        campbell+netbsd@mumble.net
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Sun, 18 Oct 2026 12:27:57 +0200

 On Fri, Oct 16, 2026 at 04:20:02PM +0000, Manuel Bouyer via gnats wrote:
 >  I built a kernel with this patch and rebooted. Let see if we get a
 >  panic ...

 We got a panic:
 login: [ 120230.6352646] panic: kernel diagnostic assertion "op == ARPOP_REPLY || op == ARPOP_REQUEST" failed: file "/dsk/l1/misc/bouyer/HEAD/clean/src/sys/netinet/if_arp.c", line 805 
 [ 120230.6878828] cpu0: Begin traceback...
 [ 120230.6995794] vpanic() at netbsd:vpanic+0x18d
 [ 120230.7062625] kern_assert() at netbsd:kern_assert+0x61
 [ 120230.7278936] in_arpinput() at netbsd:in_arpinput+0x516
 [ 120230.7459382] arpintr() at netbsd:arpintr+0x11c
 [ 120230.7552529] softint_dispatch() at netbsd:softint_dispatch+0x124
 [ 120230.7779701] DDB lost frame for netbsd:Xsoftintr+0x4c, trying 0xffffa380695cd0f0
 [ 120230.7953966] Xsoftintr() at netbsd:Xsoftintr+0x4c
 [ 120230.8159324] --- interrupt ---
 [ 120230.8278898] 0:
 [ 120230.8278898] cpu0: End traceback...

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
        campbell+netbsd@mumble.net
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Wed, 21 Oct 2026 16:00:52 +0200

 On Sun, Oct 18, 2026 at 12:27:57PM +0200, Manuel Bouyer wrote:
 > On Fri, Oct 16, 2026 at 04:20:02PM +0000, Manuel Bouyer via gnats wrote:
 > >  I built a kernel with this patch and rebooted. Let see if we get a
 > >  panic ...
 > 
 > We got a panic:
 > login: [ 120230.6352646] panic: kernel diagnostic assertion "op == ARPOP_REPLY || op == ARPOP_REQUEST" failed: file "/dsk/l1/misc/bouyer/HEAD/clean/src/sys/netinet/if_arp.c", line 805 
 > [ 120230.6878828] cpu0: Begin traceback...
 > [ 120230.6995794] vpanic() at netbsd:vpanic+0x18d
 > [ 120230.7062625] kern_assert() at netbsd:kern_assert+0x61
 > [ 120230.7278936] in_arpinput() at netbsd:in_arpinput+0x516
 > [ 120230.7459382] arpintr() at netbsd:arpintr+0x11c
 > [ 120230.7552529] softint_dispatch() at netbsd:softint_dispatch+0x124
 > [ 120230.7779701] DDB lost frame for netbsd:Xsoftintr+0x4c, trying 0xffffa380695cd0f0
 > [ 120230.7953966] Xsoftintr() at netbsd:Xsoftintr+0x4c
 > [ 120230.8159324] --- interrupt ---
 > [ 120230.8278898] 0:
 > [ 120230.8278898] cpu0: End traceback...

 I changed the KASSERT to KASSERTMSG to print op, and got:
 login: [ 19315.2724722] panic: kernel diagnostic assertion "op == ARPOP_REPLY || op == ARPOP_REQUEST" failed: file "/dsk/l1/misc/bouyer/HEAD/clean/src/sys/netinet/if_arp.c", line 805 op not REQUEST or REPLY: 65535
 [ 19315.3281494] cpu0: Begin traceback...
 [ 19315.3400271] vpanic() at netbsd:vpanic+0x18d
 [ 19315.3529519] kern_assert() at netbsd:kern_assert+0x61
 [ 19315.3624476] in_arpinput() at netbsd:in_arpinput+0x51d
 [ 19315.3855787] arpintr() at netbsd:arpintr+0x11c
 [ 19315.4025654] softint_dispatch() at netbsd:softint_dispatch+0x124
 [ 19315.4134757] DDB lost frame for netbsd:Xsoftintr+0x4c, trying 0xffff8c80695cd0f0
 [ 19315.4457469] Xsoftintr() at netbsd:Xsoftintr+0x4c
 [ 19315.4531276] --- interrupt ---

 The change is:
 -       KASSERT(op == ARPOP_REPLY || op == ARPOP_REQUEST);
 +       KASSERTMSG(op == ARPOP_REPLY || op == ARPOP_REQUEST,
 +           "op not REQUEST or REPLY: %d", op);

 Looks like m_makewritable() may be at fault here.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
        campbell+netbsd@mumble.net
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Wed, 28 Oct 2026 15:59:31 +0100

 On Wed, Oct 21, 2026 at 04:00:52PM +0200, Manuel Bouyer wrote:
 > [ 19315.4531276] --- interrupt ---
 > 
 > The change is:
 > -       KASSERT(op == ARPOP_REPLY || op == ARPOP_REQUEST);
 > +       KASSERTMSG(op == ARPOP_REPLY || op == ARPOP_REQUEST,
 > +           "op not REQUEST or REPLY: %d", op);
 > 
 > Looks like m_makewritable() may be at fault here.


 Now running with this patch:

 ? sys/netinet/if_arp.c.assertmsg
 ? sys/netinet/if_arp.c.assertmsg2
 Index: sys/netinet/if_arp.c
 ===================================================================
 RCS file: /cvsroot/src/sys/netinet/if_arp.c,v
 retrieving revision 1.321
 diff -u -p -u -r1.321 if_arp.c
 --- sys/netinet/if_arp.c	23 Jul 2026 21:49:19 -0000	1.321
 +++ sys/netinet/if_arp.c	28 Oct 2026 13:56:37 -0000
 @@ -742,6 +742,8 @@ arpintr(void *arg __unused)
  				ARP_STATINC(ARP_STAT_RCVBADPROTO);
  				goto free;
  			}
 +			KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REPLY ||
 +			    ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REQUEST);
  			in_arpinput(m);
  			continue;
  		default:
 @@ -793,12 +795,16 @@ in_arpinput(struct mbuf *m)
  	int s;
  	char ipbuf[INET_ADDRSTRLEN];
  	bool find_source, do_dad;
 +	struct mbuf *om = m;

 +	KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REPLY ||
 +	    ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REQUEST);
  	if (__predict_false(m_makewritable(&m, 0, m->m_pkthdr.len, M_DONTWAIT)))
  		goto out;
  	ah = mtod(m, struct arphdr *);
  	op = ntohs(ah->ar_op);
 -	KASSERT(op == ARPOP_REPLY || op == ARPOP_REQUEST);
 +	KASSERTMSG(op == ARPOP_REPLY || op == ARPOP_REQUEST,
 +	    "op not REQUEST or REPLY: %d %p %p", op, m, om);

  	if (ah->ar_pln != sizeof(struct in_addr))
  		goto out;
 @@ -1895,7 +1901,11 @@ in_revarpinput(struct mbuf *m)
  	switch (op) {
  	case ARPOP_REQUEST:
  	case ARPOP_REPLY:	/* per RFC */
 +		KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REPLY ||
 +		    ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REQUEST);
  		m_put_rcvif(rcvif, &s);
 +		KASSERT(ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REPLY ||
 +		    ntohs(mtod(m, struct arphdr *)->ar_op) == ARPOP_REQUEST);
  		in_arpinput(m);
  		return;
  	case ARPOP_REVREPLY:

 I got this panic:
 [ 603891.0584629] panic: kernel diagnostic assertion "op == ARPOP_REPLY || op == ARPOP_REQUEST" failed: file "/dsk/l1/misc/bouyer/HEAD/clean/src/sys/netinet/if_arp.c", line 806 op not REQUEST or REPLY: 65535 0xffff85ca8b4ff7e0 0xffff85ca73cdebc0
 [ 603891.1323430] cpu0: Begin traceback...
 [ 603891.1440383] vpanic() at netbsd:vpanic+0x18d
 [ 603891.1584130] kern_assert() at netbsd:kern_assert+0x61
 [ 603891.1722752] in_arpinput() at netbsd:in_arpinput+0x52c
 [ 603891.1887326] arpintr() at netbsd:arpintr+0x11c
 [ 603891.1995472] softint_dispatch() at netbsd:softint_dispatch+0x124

 db{0}> show mbuf /v 0xffff85ca8b4ff7e0
 MBUF(0) 0xffff85ca8b4ff7e0
   data=0xffff85ca8b4ff850, len=0, type=1, flags=0x102<PKTHDR,BCAST>
   owner=0x0, next=0xffff85ca73cdebc0, nextpkt=0x0
   leadingspace=0, trailingspace=400, readonly=0
   pktlen=46, rcvif=0xffff8f0001f66060, csum_flags=0, csum_data=0x0, segsz=0
 ETHER: DST = 00:01:08:00:06:04
 ETHER: SRC = 00:01:f4:cf:e2:d4
 ETHER: TYPE = 0x4b00(unknown)
 offset 0014: 84 e3 67 01
 offset 0018: 00 00 00 00
 offset 0022: 00 00 84 e3
 offset 0026: 67 9e 00 00
 offset 0030: 00 00 00 00
 offset 0034: 00 00 00 00
 offset 0038: 00 00 00 00
 offset 0042: 00 00 00 00
 db{0}> show mbuf /v 0xffff85ca73cdebc0
 MBUF(0) 0xffff85ca73cdebc0
   data=0xffff85ca73ac680e, len=46, type=1, flags=0x9000101<EXT,BCAST,EXT_CLUSTER
 ,EXT_RW>
   owner=0x0, next=0x0, nextpkt=0x0
   leadingspace=14, trailingspace=1988, readonly=0
   ext_refcnt=1, ext_buf=0xffff85ca73ac6800, ext_size=2048, ext_free=0x0, ext_arg
 =0x0
 ETHER: DST = 00:01:08:00:06:04
 ETHER: SRC = 00:01:f4:cf:e2:d4
 ETHER: TYPE = 0x4b00(unknown)
 offset 0014: 84 e3 67 01
 offset 0018: 00 00 00 00
 offset 0022: 00 00 84 e3
 offset 0026: 67 9e 00 00
 offset 0030: 00 00 00 00
 offset 0034: 00 00 00 00
 offset 0038: 00 00 00 00
 offset 0042: 00 00 00 00

 So it looks like that after m_makewritable(), we end up with a mbuf with no
 data (len = 0), but which is chained with our old mbuf. But the data here don't
 make much sense; these ethernet addresses are unknown on my network and
 the ether type doesn't make sense either.
 But if we look at  0xffff85ca73ac6800 (the start of the mbuf cluster area):
 db{0}> x/x 0xffff85ca73ac6800
 ffff85ca73ac6800:       ffffffff
 db{0}> 
 ffff85ca73ac6804:       cff4ffff
 db{0}> 
 ffff85ca73ac6808:       4bd4e2
 db{0}> 
 ffff85ca73ac680c:       1000608
 db{0}> 
 ffff85ca73ac6810:       4060008
 db{0}> 
 ffff85ca73ac6814:       cff40100
 db{0}> 
 ffff85ca73ac6818:       4bd4e2
 db{0}> 
 ffff85ca73ac681c:       167e384
 db{0}> 
 ffff85ca73ac6820:       0
 db{0}> 
 ffff85ca73ac6824:       e3840000


 This gives:
 DST: ff:ff:ff:ff:ff:ff
 SRC: f4:cf:e2:d4:4b:00 (this is a known address on my network)
 ETYPE: 0x0806 (this is ETHERTYPE_ARP)
 ar_hrd: 0001 (ARPHRD_ETHER)

 This makes more sense if we assume fields after ETYPE have been overwritten
 (we reached the area pointed to by mbuf->data)

 I didn't look closely enough at m_makewritable() to explain how we could end
 up in this situation.
 Anyway I don't think we can use mtod() on a mbuf whose len is 0, and it doens't
 looks like m_makewritable() garantees that the first mbuf will contain the
 whole arp header.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Taylor R Campbell <riastradh@NetBSD.org>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@NetBSD.org, netbsd-bugs@NetBSD.org, wiz@NetBSD.org
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Mon, 9 Nov 2026 10:16:43 +0000

 > Date: Wed, 28 Oct 2026 15:59:31 +0100
 > From: Manuel Bouyer <bouyer@antioche.eu.org>
 >=20
 > On Wed, Oct 21, 2026 at 04:00:52PM +0200, Manuel Bouyer wrote:
 > > [ 19315.4531276] --- interrupt ---
 > >=20
 > > The change is:
 > > -       KASSERT(op =3D=3D ARPOP_REPLY || op =3D=3D ARPOP_REQUEST);
 > > +       KASSERTMSG(op =3D=3D ARPOP_REPLY || op =3D=3D ARPOP_REQUEST,
 > > +           "op not REQUEST or REPLY: %d", op);
 > >=20
 > > Looks like m_makewritable() may be at fault here.
 >=20
 > [...]
 > I didn't look closely enough at m_makewritable() to explain how we could =
 end
 > up in this situation.
 > Anyway I don't think we can use mtod() on a mbuf whose len is 0, and it d=
 oens't
 > looks like m_makewritable() garantees that the first mbuf will contain the
 > whole arp header.

 Yes, indeed it does not -- and it looks like you may have had some
 experience with this class of bug before!

 user:        dyoung <dyoung@NetBSD.org>
 date:        Fri Jul 28 17:30:53 2006 +0000
 files:       share/man/man9/mbuf.9
 description:
 Let there be no mistake, m_makewritable() does not guarantee that
 the writable bytes [off, off+len) are consecutive.
 ...
 +.Fn m_makewritable
 +does
 +.Em not
 +guarantee that all
 +.Fa len
 +bytes at
 +.Fa off=20
 +are consecutive.
 ...
 user:        bouyer <bouyer@NetBSD.org>
 date:        Sat May 27 13:35:20 2006 +0000
 files:       sys/netinet/tcp_input.c
 description:
 Revert rev 1.241: calling m_makewritable() in tcp_input causes problems when
 it has to change the mbuf chain. I experience hard hang on a Xen2 domU after
 TCP connections have been closed, and a crash has been reported which may be
 caused by this too.
 ...
 -#if BYTE_ORDER =3D=3D LITTLE_ENDIAN
 -               if (__predict_false(m_makewritable(&m, toff,
 -                   sizeof(struct tcphdr), M_DONTWAIT))) {
 -                       m_freem(m);
 -                       return;
 -               }
 -#endif
                 ip =3D mtod(m, struct ip *);
 ...
 user:        bouyer <bouyer@NetBSD.org>
 date:        Thu May 25 21:49:19 2006 +0000
 files:       sys/netinet/tcp_input.c
 description:
 If we're going to byteswap fields in the TCP header, make sure the mbuf
 area is writable first.
 ...
 +#if BYTE_ORDER =3D=3D LITTLE_ENDIAN
 +               if (__predict_false(m_makewritable(&m, toff,
 +                   sizeof(struct tcphdr), M_DONTWAIT))) {
 +                       m_freem(m);
 +                       return;
 +               }
 +#endif
                 ip =3D mtod(m, struct ip *);
 ...
 user:        bouyer <bouyer@NetBSD.org>
 date:        Thu May 25 21:33:12 2006 +0000
 files:       sys/netinet/if_arp.c
 description:
 Make sure the mbuf is writable before trying to write to it.
 ...
 +       if (__predict_false(m_makewritable(&m, 0, m->m_pkthdr.len, M_DONTWA=
 IT)))
 +               goto out;
         ah =3D mtod(m, struct arphdr *);
 ...

 I have filed a new PR to track this class of bug separately:

 PR kern/60985: m_makewritable woes
 https://gnats.NetBSD.org/60985

From: Taylor R Campbell <riastradh@NetBSD.org>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Mon, 9 Nov 2026 14:53:37 +0000

 > Date: Wed, 28 Oct 2026 15:59:31 +0100
 > From: Manuel Bouyer <bouyer@antioche.eu.org>
 >=20
 > On Wed, Oct 21, 2026 at 04:00:52PM +0200, Manuel Bouyer wrote:
 > So it looks like that after m_makewritable(), we end up with a mbuf with =
 no
 > data (len =3D 0), but which is chained with our old mbuf.

 Yes, and I'm not sure why.  It would be nice if we could see the mbuf
 _before_ m_makewritable.  The twisty maze of loops and conditionals in
 m_makewritable, without any assertions or even comments about
 invariants, makes it hard to understand!

 > But the data here don't make much sense; these ethernet addresses
 > are unknown on my network and the ether type doesn't make sense
 > either.

 The mbuf contents do make sense as the _payload_ of an ethernet frame,
 because the (asynchronous) caller ether_input of arpintr has used
 m_adj to shave off the 14-byte ethernet header, which is why
 leadingspace=3D14 and (om->m_data - om->m_ext.buf) =3D 0xe =3D 14:

     680 void
     681 ether_input(struct ifnet *ifp, struct mbuf *m)
     682 {
 ...
     688 	struct ether_header *eh;
 ...
     714 	ehlen =3D sizeof(*eh);
 ...
     939 	/* Strip off the Ethernet header. */
     940 	m_adj(m, ehlen);
     941=20
     942 	switch (etype) {
 ...
     953 	case ETHERTYPE_ARP:
     954 		pktq =3D arp_pktq;
     955 		break;
 ...
     997 	if (__predict_false(!pktq_enqueue(pktq, m, h))) {

 https://nxr.netbsd.org/xref/src/sys/net/if_ethersubr.c?r=3D1.336#675

     265 void
     266 arp_init(void)
     267 {
     268=20
     269 	arp_pktq =3D pktq_create(ARP_MAXQLEN, arpintr, NULL);

 https://nxr.netbsd.org/xref/src/sys/netinet/if_arp.c?r=3D1.321#265

 Under this interpretation, we have:

 > ETHER: DST =3D 00:01:08:00:06:04
 > ETHER: SRC =3D 00:01:f4:cf:e2:d4
 > ETHER: TYPE =3D 0x4b00(unknown)
 > offset 0014: 84 e3 67 01
 > offset 0018: 00 00 00 00
 > offset 0022: 00 00 84 e3
 > offset 0026: 67 9e 00 00
 > offset 0030: 00 00 00 00
 > offset 0034: 00 00 00 00
 > offset 0038: 00 00 00 00
 > offset 0042: 00 00 00 00

 Data reformatted as struct arphdr:

 00 01                   uint16_t ar_hdr =3D 0x0001 =3D ARPHRD_ETHER
 08 00                   uint16_t ar_pro =3D 0x0800 =3D ETHERTYPE_IP
 06                      uint8_t ar_hln =3D 6 =3D sizeof(struct ether_addr)
 04                      uint8_t ar_pln =3D 4 =3D sizeof(struct in_addr)
 00 01                   uint16_t ar_op =3D 0x0001 =3D ARPOP_REQUEST
 f4 cf e2 d4 4b 00       uint8_t ar_sha[6], sender hw addr, OUI =3D Cisco[1]
 84 e3 67 01             uint8_t ar_spa[4], sender ip addr, 132.227.103.1
 00 00 00 00 00 00       uint8_t ar_tha[6], target hw addr, all zero (unknow=
 n)
 84 e3 67 9e             uint8_t ar_tpa[4], target ip addr, 132.227.103.158

 [1] https://regauth.standards.ieee.org/standards-ra-web/pub/view.html

From: Taylor R Campbell <riastradh@NetBSD.org>
To: Manuel Bouyer <bouyer@antioche.eu.org>, Thomas Klausner <wiz@NetBSD.org>
Cc: gnats-bugs@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Mon, 9 Nov 2026 17:00:07 +0000

 This is a multi-part message in MIME format.
 --=_HYaBk3sxsYM9QUVHZm9yBVoM/WkTzdlx

 Can you please try running with the attached patch to reveal some
 additional information about the mbuf before m_makewritable next time
 it crashes?  Trying to find what initial conditions might lead
 m_makewritable to prepend an empty mbuf link in the chain.

 Can you also share dmesg output at boot?  Do you know which NIC driver
 the ethernet frame came in via?

 --=_HYaBk3sxsYM9QUVHZm9yBVoM/WkTzdlx
 Content-Type: text/plain; charset="ISO-8859-1"; name="arpmbufdebug"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename="arpmbufdebug.patch"

 diff -r 346a58589b6e sys/netinet/if_arp.c
 --- a/sys/netinet/if_arp.c	Sun Mar 30 14:17:08 2025 +0000
 +++ b/sys/netinet/if_arp.c	Mon Nov 09 16:51:35 2026 +0000
 @@ -794,11 +794,27 @@ in_arpinput(struct mbuf *m)
  	char ipbuf[INET_ADDRSTRLEN];
  	bool find_source, do_dad;
 =20
 +	int om_lead =3D M_LEADINGSPACE(m);
 +	int om_trail =3D M_TRAILINGSPACE(m);
 +	struct mbuf *om_ptr =3D m, om_snapshot =3D *m, *om =3D &om_snapshot;
  	if (__predict_false(m_makewritable(&m, 0, m->m_pkthdr.len, M_DONTWAIT)))
  		goto out;
 +
  	ah =3D mtod(m, struct arphdr *);
  	op =3D ntohs(ah->ar_op);
 -	KASSERT(op =3D=3D ARPOP_REPLY || op =3D=3D ARPOP_REQUEST);
 +	KASSERTMSG(op =3D=3D ARPOP_REPLY || op =3D=3D ARPOP_REQUEST,
 +	    "op=3D0x%04x"
 +	    " om=3D%p"
 +	    " om->m_flags=3D0x%x om->m_data=3D%p om->m_len=3D%d om->m_next=3D%p o=
 m->m_pkthdr.len=3D%d"
 +	    " M_LEADINGSPACE(om)=3D%d M_TRAILINGSPACE(om)=3D%d"
 +	    " m=3D%p"
 +	    " m->m_flags=3D0x%x m->m_data=3D%p m->m_len=3D%d m->m_next=3D%p m->m_=
 pkthdr.len=3D%d"
 +	    " M_LEADINGSPACE(m)=3D%d M_TRAILINGSPACE(m)=3D%d",
 +	    op,
 +	    om_ptr, om->m_flags, om->m_data, om->m_len, om->m_next, om->m_pkthdr.=
 len,
 +	    om_lead, om_trail,
 +	    m, m->m_flags, m->m_data, m->m_len, m->m_next, m->m_pkthdr.len,
 +	    (int)M_LEADINGSPACE(m), (int)M_TRAILINGSPACE(m));
 =20
  	if (ah->ar_pln !=3D sizeof(struct in_addr))
  		goto out;

 --=_HYaBk3sxsYM9QUVHZm9yBVoM/WkTzdlx--

From: Thomas Klausner <wiz@netbsd.org>
To: Taylor R Campbell <riastradh@netbsd.org>
Cc: Manuel Bouyer <bouyer@antioche.eu.org>, 
	NetBSD bugtracking <gnats-bugs@netbsd.org>
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Tue, 10 Nov 2026 12:38:49 +0100

 On Mon, Nov 09, 2026 at 05:00:07PM +0100, Taylor R Campbell wrote:
 > Can you also share dmesg output at boot?  Do you know which NIC driver
 > the ethernet frame came in via?

 I'll try the patch, thanks, though I haven't seen the problem again
 even by reproducing what I did last time. Perhaps it was related to a
 lot of mbufs being in use?

 It was igc0.

 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
     2024, 2025, 2026
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 11.99.10 (GENERIC) #0: Sat Nov  7 17:15:24 CET 2026
 	wiz@exadelic.gatalith.at:/usr/obj/src.amd64/sys/arch/amd64/compile/GENERIC
 total memory = 127 GB
 avail memory = 122 GB
 timecounter: Timecounters tick every 10.000 msec
 Kernelized RAIDframe activated
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 efi: systbl at pa 7847e018
 mainbus0 (root)
 ACPI: RSDP 0x0000000071F30014 000024 (v02 ALASKA)
 ACPI: XSDT 0x0000000071F2F728 0000EC (v01 ALASKA A M I    01072009 AMI  01000013)
 ACPI: FACP 0x0000000071F24000 000114 (v06 ALASKA A M I    01072009 AMI  00010013)
 ACPI: DSDT 0x0000000071F03000 010113 (v27 ALASKA A M I    01072009 INTL 20230331)
 ACPI: FACS 0x0000000073F17000 000040
 ACPI: SSDT 0x0000000071F26000 00816C (v02 AMD    Splinter 00000002 MSFT 05000000)
 ACPI: SSDT 0x0000000071F25000 0003F1 (v02 ALASKA CPUSSDT  01072009 AMI  01072009)
 ACPI: FIDT 0x0000000071F19000 00009C (v01 ALASKA A M I    01072009 AMI  00010013)
 ACPI: MCFG 0x0000000071F17000 00003C (v01 ALASKA A M I    01072009 MSFT 00010013)
 ACPI: HPET 0x0000000071F16000 000038 (v01 ALASKA A M I    01072009 AMI  00000005)
 ACPI: WDRT 0x0000000071F15000 000047 (v01 ALASKA A M I    01072009 AMI  00000005)
 ACPI: FPDT 0x0000000071F14000 000044 (v01 ALASKA A M I    01072009 AMI  01000013)
 ACPI: VFCT 0x0000000071EF8000 00AE84 (v01 ALASKA A M I    00000001 AMD  33504F47)
 ACPI: BGRT 0x0000000071F23000 000038 (v01 ALASKA A M I    01072009 AMI  00010013)
 ACPI: WPBT 0x0000000071F21000 000040 (v01 ALASKA A M I    00000001 ASUS 00000001)
 ACPI: SSDT 0x0000000071E11000 009BAE (v02 AMD    AMD CPU  00000001 AMD  00000001)
 ACPI: SSDT 0x0000000071F20000 000041 (v01 AMD    AppCompD 00000001 INTL 20230331)
 ACPI: SSDT 0x0000000071F1E000 00169E (v02 AMD    CPMDFIG2 00000001 INTL 20230331)
 ACPI: SSDT 0x0000000071F1B000 002AA6 (v02 AMD    CDFAAIG2 00000001 INTL 20230331)
 ACPI: SSDT 0x0000000071E06000 00A62A (v02 AMD    CPMCMN   00000001 INTL 20230331)
 ACPI: SSDT 0x0000000071E03000 0027FA (v02 AMD    AOD      00000001 INTL 20230331)
 ACPI: TPM2 0x0000000071F1A000 00004C (v04 ALASKA A M I    00000001 AMI  00000000)
 ACPI: WSMT 0x0000000071E02000 000028 (v01 ALASKA A M I    01072009 AMI  00010013)
 ACPI: APIC 0x0000000071E01000 00015E (v06 ALASKA A M I    01072009 AMI  00010013)
 ACPI: IVRS 0x0000000071E00000 0000C8 (v02 AMD    AmdTable 00000001 AMD  00000001)
 ACPI: SSDT 0x0000000071DFF000 000500 (v02 AMD    MEMTOOL0 00000002 INTL 20230331)
 ACPI: SSDT 0x0000000071DFE000 0009E6 (v02 AMD    CPMMSOSC 00000001 INTL 20230331)
 ACPI: SSDT 0x0000000071DFD000 00047C (v02 AMD    AMDWOV   00000001 INTL 20230331)
 ACPI: SSDT 0x0000000071DFC000 00044E (v02 AMD    AmdTable 00000001 INTL 20230331)
 ACPI: 13 ACPI AML tables successfully acquired and loaded
 ioapic0 at mainbus0 apid 32: pa 0xfec00000, version 0x21, 24 pins
 ioapic1 at mainbus0 apid 33: pa 0xfec01000, version 0x21, 32 pins
 cpu0 at mainbus0 apid 0
 cpu0: Use mfence to serialize rdtsc
 cpu0: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu0: node 0, package 0, core 0, smt 0
 cpu0: searching errata for cpu revision 0x00a60f12
 cpu1 at mainbus0 apid 2
 cpu1: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu1: node 0, package 0, core 1, smt 0
 cpu2 at mainbus0 apid 4
 cpu2: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu2: node 0, package 0, core 2, smt 0
 cpu3 at mainbus0 apid 6
 cpu3: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu3: node 0, package 0, core 3, smt 0
 cpu4 at mainbus0 apid 8
 cpu4: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu4: node 0, package 0, core 4, smt 0
 cpu5 at mainbus0 apid 10
 cpu5: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu5: node 0, package 0, core 5, smt 0
 cpu6 at mainbus0 apid 12
 cpu6: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu6: node 0, package 0, core 6, smt 0
 cpu7 at mainbus0 apid 14
 cpu7: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu7: node 0, package 0, core 7, smt 0
 cpu8 at mainbus0 apid 16
 cpu8: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu8: node 0, package 0, core 8, smt 0
 cpu9 at mainbus0 apid 18
 cpu9: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu9: node 0, package 0, core 9, smt 0
 cpu10 at mainbus0 apid 20
 cpu10: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu10: node 0, package 0, core 10, smt 0
 cpu11 at mainbus0 apid 22
 cpu11: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu11: node 0, package 0, core 11, smt 0
 cpu12 at mainbus0 apid 24
 cpu12: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu12: node 0, package 0, core 12, smt 0
 cpu13 at mainbus0 apid 26
 cpu13: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu13: node 0, package 0, core 13, smt 0
 cpu14 at mainbus0 apid 28
 cpu14: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu14: node 0, package 0, core 14, smt 0
 cpu15 at mainbus0 apid 30
 cpu15: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu15: node 0, package 0, core 15, smt 0
 cpu16 at mainbus0 apid 1
 cpu16: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu16: node 0, package 0, core 0, smt 1
 cpu17 at mainbus0 apid 3
 cpu17: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu17: node 0, package 0, core 1, smt 1
 cpu18 at mainbus0 apid 5
 cpu18: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu18: node 0, package 0, core 2, smt 1
 cpu19 at mainbus0 apid 7
 cpu19: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu19: node 0, package 0, core 3, smt 1
 cpu20 at mainbus0 apid 9
 cpu20: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu20: node 0, package 0, core 4, smt 1
 cpu21 at mainbus0 apid 11
 cpu21: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu21: node 0, package 0, core 5, smt 1
 cpu22 at mainbus0 apid 13
 cpu22: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu22: node 0, package 0, core 6, smt 1
 cpu23 at mainbus0 apid 15
 cpu23: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu23: node 0, package 0, core 7, smt 1
 cpu24 at mainbus0 apid 17
 cpu24: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu24: node 0, package 0, core 8, smt 1
 cpu25 at mainbus0 apid 19
 cpu25: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu25: node 0, package 0, core 9, smt 1
 cpu26 at mainbus0 apid 21
 cpu26: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu26: node 0, package 0, core 10, smt 1
 cpu27 at mainbus0 apid 23
 cpu27: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu27: node 0, package 0, core 11, smt 1
 cpu28 at mainbus0 apid 25
 cpu28: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu28: node 0, package 0, core 12, smt 1
 cpu29 at mainbus0 apid 27
 cpu29: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu29: node 0, package 0, core 13, smt 1
 cpu30 at mainbus0 apid 29
 cpu30: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu30: node 0, package 0, core 14, smt 1
 cpu31 at mainbus0 apid 31
 cpu31: AMD Ryzen 9 7950X 16-Core Processor            , id 0xa60f12
 cpu31: node 0, package 0, core 15, smt 1
 acpi0 at mainbus0: Intel ACPICA 20260408
 acpi0: X/RSDT: OemId <ALASKA,  A M I ,01072009>, AslId <AMI ,01000013>
 acpi0: autoconfiguration error: invalid PCI address for D005
 acpi0: autoconfiguration error: invalid PCI address for D010
 acpi0: MCFG: segment 0, bus 0-255, address 0x00000000e0000000
 acpi0: SCI interrupting at int 9
 acpi0: fixed power button present
 timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
 timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
 AMDN (PNP0C01) at acpi0 not configured
 acpivga0 at acpi0 (VGA): ACPI Display Adapter
 acpiout0 at acpivga0 (LCD, 0x0110): ACPI Display Output Device
 acpiout0: autoconfiguration error: failed to test _BQC quirk
 acpiout0: brightness levels: [2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100]
 acpivga0: connected output devices:
 acpivga0:   0x0110 (acpiout0): LCD Panel, head 0, bios detect
 acpivga0:   0x0210: Unknown Output Device, head 0, bios detect
 acpivga0:   0x0220: Unknown Output Device, head 0, bios detect
 acpivga0:   0x0230: Unknown Output Device, head 0, bios detect
 acpivga0:   0x0240: Unknown Output Device, head 0, bios detect
 acpivga0:   0x1000: Unknown Output Device, head 0, bios detect, non vga
 acpivga0:   0x2000: Unknown Output Device, head 0, bios detect, non vga
 attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
 pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 spkr0 at pcppi1: PC Speaker
 wsbell at spkr0 not configured
 midi0 at pcppi1: PC speaker
 sysbeep0 at pcppi1
 com0 at acpi0 (UAR1, PNP0501-0): io 0x3f8-0x3ff irq 4
 com0: ns16550a, 16-byte FIFO
 pckbc1 at acpi0 (PS2K, PNP0303-0) (kbd port): io 0x60,0x64 irq 1
 acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
 TPM (MSFT0101) at acpi0 not configured
 GPIO (AMDI0030) at acpi0 not configured
 PPKG (AMDI0052) at acpi0 not configured
 APPD (AMDI0204) at acpi0 not configured
 PTIO (AMDIF031) at acpi0 not configured
 acpiwmi0 at acpi0 (AWW0, PNP0C14-AWW): ACPI WMI Interface
 acpiwmibus at acpiwmi0 not configured
 acpiwmi1 at acpi0 (ALCW, PNP0C14-AsusLedControlWmi): ACPI WMI Interface
 acpiwmibus at acpiwmi1 not configured
 acpiwmi2 at acpi0 (RMTW, PNP0C14-AsusMbSwInterface): ACPI WMI Interface
 wmieeepc0 at acpiwmi2: Asus Eee PC WMI mappings
 acpiwmi3 at acpi0 (AOD, PNP0C14-AOD): ACPI WMI Interface
 acpiwmibus at acpiwmi3 not configured
 acpiwdrt0 at acpi0: mem 0xfeb00000,0xfeb00004
 acpiwdrt0: watchdog interval 1-1023 sec.
 ACPI: Enabled 1 GPEs in block 00 to 1F
 attimer1: attached to pcppi1
 pckbd0 at pckbc1 (kbd slot)
 pckbc1: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 amdsmn0 at pci0 dev 0 function 0: AMD System Management Network
 amdzentemp0 at amdsmn0: AMD CPU Temperature Sensors (Family 19h)
 AMD 19h/6xh IOMMU (IOMMU system) at pci0 dev 0 function 2 not configured
 pchb0 at pci0 dev 1 function 0: AMD 19h/6xh PCIe Dummy Host Bridge (rev. 0x00)
 ppb0 at pci0 dev 1 function 2: AMD 19h/6xh PCIe GPP Bridge (rev. 0x00)
 ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 32.0GT/s
 ppb0: link is x4 @ 16.0GT/s
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled, rd/line, wr/inv ok
 nvme0 at pci1 dev 0 function 0: Samsung Electronics (3rd vendor ID) SM990 M.2 NVMe SSD (rev. 0x00)
 nvme0: NVMe 2.0
 nvme0: for admin queue interrupting at msix0 vec 0
 nvme0: Samsung SSD 990 PRO 1TB, firmware 3B2QJXD7, serial S6Z1NJ0TA35116N
 nvme0: for io queue 1 interrupting at msix0 vec 1 affinity to cpu0
 nvme0: for io queue 2 interrupting at msix0 vec 2 affinity to cpu1
 nvme0: for io queue 3 interrupting at msix0 vec 3 affinity to cpu2
 nvme0: for io queue 4 interrupting at msix0 vec 4 affinity to cpu3
 nvme0: for io queue 5 interrupting at msix0 vec 5 affinity to cpu4
 nvme0: for io queue 6 interrupting at msix0 vec 6 affinity to cpu5
 nvme0: for io queue 7 interrupting at msix0 vec 7 affinity to cpu6
 nvme0: for io queue 8 interrupting at msix0 vec 8 affinity to cpu7
 nvme0: for io queue 9 interrupting at msix0 vec 9 affinity to cpu8
 nvme0: for io queue 10 interrupting at msix0 vec 10 affinity to cpu9
 nvme0: for io queue 11 interrupting at msix0 vec 11 affinity to cpu10
 nvme0: for io queue 12 interrupting at msix0 vec 12 affinity to cpu11
 nvme0: for io queue 13 interrupting at msix0 vec 13 affinity to cpu12
 nvme0: for io queue 14 interrupting at msix0 vec 14 affinity to cpu13
 nvme0: for io queue 15 interrupting at msix0 vec 15 affinity to cpu14
 nvme0: for io queue 16 interrupting at msix0 vec 16 affinity to cpu15
 ld0 at nvme0 nsid 1
 ld0: 931 GB, 121601 cyl, 255 head, 63 sec, 512 bytes/sect x 1953525168 sectors
 pchb1 at pci0 dev 2 function 0: AMD 19h/6xh PCIe Dummy Host Bridge (rev. 0x00)
 ppb1 at pci0 dev 2 function 1: AMD 19h/6xh PCIe GPP Bridge (rev. 0x00)
 ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 32.0GT/s
 ppb1: link is x4 @ 16.0GT/s
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb2 at pci2 dev 0 function 0: AMD 600 Series PCIe Switch Upstream Port (rev. 0x01)
 ppb2: PCI Express capability version 2 <Upstream Port of PCI-E Switch>
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb3 at pci3 dev 0 function 0: AMD 600 Series PCIe Switch Downstream Port (rev. 0x01)
 ppb3: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x4 @ 16.0GT/s
 pci4 at ppb3 bus 4
 pci4: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb4 at pci3 dev 8 function 0: AMD 600 Series PCIe Switch Downstream Port (rev. 0x01)
 ppb4: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 16.0GT/s
 pci5 at ppb4 bus 5
 pci5: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb5 at pci3 dev 9 function 0: AMD 600 Series PCIe Switch Downstream Port (rev. 0x01)
 ppb5: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 16.0GT/s
 ppb5: link is x1 @ 5.0GT/s
 pci6 at ppb5 bus 6
 pci6: i/o space, memory space enabled, rd/line, wr/inv ok
 igc0 at pci6 dev 0 function 0, 64-bit DMA: Intel(R) Ethernet Controller I225-LM (rev. 0x03)
 igc0: txrx interrupting at msix1 vec 0
 igc0: txrx interrupting at msix1 vec 1
 igc0: txrx interrupting at msix1 vec 2
 igc0: txrx interrupting at msix1 vec 3
 igc0: link interrupting at msix1 vec 4
 igc0: PHY: OUI 0x984fee model 0x000c, rev. 4, PHY FW version 0x878d
 igc0: NVM image version 1.94, EtrackID 800003bb
 igc0: Ethernet address 40:a6:b7:ca:44:0b
 ppb6 at pci3 dev 10 function 0: AMD 600 Series PCIe Switch Downstream Port (rev. 0x01)
 ppb6: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 16.0GT/s
 ppb6: link is x1 @ 5.0GT/s
 pci7 at ppb6 bus 7
 pci7: i/o space, memory space enabled, rd/line, wr/inv ok
 rge0 at pci7 dev 0 function 0: Realtek Semiconductor 8125 10/100/1G/2.5G Ethernet (rev. 0x05)
 rge0: interrupting at msix2 vec 0
 rge0: HW rev. B
 rge0: Ethernet address c8:7f:54:a9:49:6f
 ppb7 at pci3 dev 11 function 0: AMD 600 Series PCIe Switch Downstream Port (rev. 0x01)
 ppb7: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 16.0GT/s
 pci8 at ppb7 bus 8
 pci8: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb8 at pci3 dev 12 function 0: AMD 600 Series PCIe Switch Downstream Port (rev. 0x01)
 ppb8: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 2.5GT/s
 pci9 at ppb8 bus 9
 pci9: i/o space, memory space enabled, rd/line, wr/inv ok
 xhci0 at pci9 dev 0 function 0: AMD 600 Series xHCI (rev. 0x01)
 xhci0: 64-bit DMA
 xhci0: interrupting at msix3 vec 0
 xhci0: xHCI version 1.10
 usb0 at xhci0: USB revision 3.1
 usb1 at xhci0: USB revision 2.0
 ppb9 at pci3 dev 13 function 0: AMD 600 Series PCIe Switch Downstream Port (rev. 0x01)
 ppb9: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 2.5GT/s
 pci10 at ppb9 bus 10
 pci10: i/o space, memory space enabled, rd/line, wr/inv ok
 ahcisata0 at pci10 dev 0 function 0: AMD 600 Series SATA (rev. 0x01)
 ahcisata0: 64-bit DMA
 ahcisata0: AHCI revision 1.31, 6 ports, 32 slots, CAP 0xef36ff25<SXS,PSC,SSC,PMD,SPM,SAM,ISS=0x3=Gen3,SCLO,SAL,SALP,SSS,SSNTF,SNCQ,S64A>
 ahcisata0: interrupting at msi4 vec 0
 atabus0 at ahcisata0 channel 0
 atabus1 at ahcisata0 channel 1
 atabus2 at ahcisata0 channel 2
 atabus3 at ahcisata0 channel 3
 pchb2 at pci0 dev 3 function 0: AMD 19h/6xh PCIe Dummy Host Bridge (rev. 0x00)
 pchb3 at pci0 dev 4 function 0: AMD 19h/6xh PCIe Dummy Host Bridge (rev. 0x00)
 pchb4 at pci0 dev 8 function 0: AMD 19h/6xh PCIe Dummy Host Bridge (rev. 0x00)
 ppb10 at pci0 dev 8 function 1: AMD 19h/6xh Internal PCIe GPP Bridge (rev. 0x00)
 ppb10: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 16.0GT/s
 pci11 at ppb10 bus 11
 pci11: i/o space, memory space enabled, rd/line, wr/inv ok
 genfb0 at pci11 dev 0 function 0: ATI Technologies product 164e (rev. 0xc1)
 genfb0: framebuffer at 0xfce0000000, size 1024x768, depth 32, stride 4096
 genfb0: shadow framebuffer enabled, size 3072 KB
 wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 drm at genfb0 not configured
 hdaudio0 at pci11 dev 0 function 1: HD Audio Controller
 hdaudio0: interrupting at msi5 vec 0
 hdaudio0: HDA ver. 1.0, OSS 4, ISS 0, BSS 0, SDO 1, 64-bit
 hdafg0 at hdaudio0: ATI R6xx HDMI
 hdafg0: HDMI00 2ch: Digital Out [Jack]
 hdafg0: HDMI01 2ch: Digital Out [Jack]
 hdafg0: 2ch/0ch 32000Hz 44100Hz 48000Hz PCM16 AC3
 audio0 at hdafg0: playback
 audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
 spkr1 at audio0: PC Speaker (synthesized)
 wsbell at spkr1 not configured
 amdccp0 at pci11 dev 0 function 2: AMD Cryptographic Coprocessor
 xhci1 at pci11 dev 0 function 3: AMD 19h/6xh USB 3.1 xHCI (rev. 0x00)
 xhci1: 64-bit DMA
 xhci1: interrupting at msix6 vec 0
 xhci1: xHCI version 1.20
 usb2 at xhci1: USB revision 3.1
 usb3 at xhci1: USB revision 2.0
 xhci2 at pci11 dev 0 function 4: AMD 19h/6xh USB 3.1 xHCI (rev. 0x00)
 xhci2: 64-bit DMA
 xhci2: interrupting at msix7 vec 0
 xhci2: xHCI version 1.20
 usb4 at xhci2: USB revision 3.1
 usb5 at xhci2: USB revision 2.0
 hdaudio1 at pci11 dev 0 function 6: HD Audio Controller
 hdaudio1: interrupting at msi8 vec 0
 hdaudio1: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
 hdafg1 at hdaudio1: Realtek ALC897
 hdafg1: DAC00 2ch: Speaker [Jack]
 hdafg1: DAC01 2ch: HP Out [Jack]
 hdafg1: ADC02 2ch: Line In [Jack], Mic In [Jack]
 hdafg1: ADC03 2ch: Mic In [Jack]
 hdafg1: DIG04 2ch: SPDIF Out [Built-In]
 hdafg1: 2ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
 audio1 at hdafg1: playback, capture, full duplex, independent
 audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
 audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
 spkr2 at audio1: PC Speaker (synthesized)
 wsbell at spkr2 not configured
 ppb11 at pci0 dev 8 function 3: AMD 19h/6xh Internal PCIe GPP Bridge (rev. 0x00)
 ppb11: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 16.0GT/s
 pci12 at ppb11 bus 12
 pci12: i/o space, memory space enabled, rd/line, wr/inv ok
 xhci3 at pci12 dev 0 function 0: AMD 19h/6xh Secure USB BIOmetric (rev. 0x00)
 xhci3: 64-bit DMA
 xhci3: interrupting at msix9 vec 0
 xhci3: xHCI version 1.20
 usb6 at xhci3: USB revision 2.0
 piixpm0 at pci0 dev 20 function 0: AMD X370/X399 SMBus Controller (rev. 0x71)
 piixpm0: interrupting at SMI, polling
 iic0 at piixpm0 port 0: I2C bus
 iic1 at piixpm0 port 1: I2C bus
 pcib0 at pci0 dev 20 function 3: AMD FCH LPC (rev. 0x51)
 pchb5 at pci0 dev 24 function 0: AMD 19h/6xh Data Fabric 0 (rev. 0x00)
 pchb6 at pci0 dev 24 function 1: AMD 19h/6xh Data Fabric 1 (rev. 0x00)
 pchb7 at pci0 dev 24 function 2: AMD 19h/6xh Data Fabric 2 (rev. 0x00)
 pchb8 at pci0 dev 24 function 3: AMD 19h/6xh Data Fabric 3 (rev. 0x00)
 pchb9 at pci0 dev 24 function 4: AMD 19h/6xh Data Fabric 4 (rev. 0x00)
 pchb10 at pci0 dev 24 function 5: AMD 19h/6xh Data Fabric 5 (rev. 0x00)
 pchb11 at pci0 dev 24 function 6: AMD 19h/6xh Data Fabric 6 (rev. 0x00)
 pchb12 at pci0 dev 24 function 7: AMD 19h/6xh Data Fabric 7 (rev. 0x00)
 isa0 at pcib0
 acpicpu0 at cpu0: ACPI CPU
 acpicpu0: C1: FFH, lat   1 us, pow     0 mW
 acpicpu0: C2: I/O, lat  18 us, pow     0 mW
 acpicpu0: C3: I/O, lat 350 us, pow     0 mW
 acpicpu0: P0: FFH, lat   1 us, pow  5625 mW, 4500 MHz
 acpicpu0: P1: FFH, lat   1 us, pow  2550 mW, 3000 MHz
 acpicpu1 at cpu1: ACPI CPU
 acpicpu2 at cpu2: ACPI CPU
 acpicpu3 at cpu3: ACPI CPU
 acpicpu4 at cpu4: ACPI CPU
 acpicpu5 at cpu5: ACPI CPU
 acpicpu6 at cpu6: ACPI CPU
 acpicpu7 at cpu7: ACPI CPU
 acpicpu8 at cpu8: ACPI CPU
 acpicpu9 at cpu9: ACPI CPU
 acpicpu10 at cpu10: ACPI CPU
 acpicpu11 at cpu11: ACPI CPU
 acpicpu12 at cpu12: ACPI CPU
 acpicpu13 at cpu13: ACPI CPU
 acpicpu14 at cpu14: ACPI CPU
 acpicpu15 at cpu15: ACPI CPU
 acpicpu16 at cpu16: ACPI CPU
 acpicpu17 at cpu17: ACPI CPU
 acpicpu18 at cpu18: ACPI CPU
 acpicpu19 at cpu19: ACPI CPU
 acpicpu20 at cpu20: ACPI CPU
 acpicpu21 at cpu21: ACPI CPU
 acpicpu22 at cpu22: ACPI CPU
 acpicpu23 at cpu23: ACPI CPU
 acpicpu24 at cpu24: ACPI CPU
 acpicpu25 at cpu25: ACPI CPU
 acpicpu26 at cpu26: ACPI CPU
 acpicpu27 at cpu27: ACPI CPU
 acpicpu28 at cpu28: ACPI CPU
 acpicpu29 at cpu29: ACPI CPU
 acpicpu30 at cpu30: ACPI CPU
 acpicpu31 at cpu31: ACPI CPU
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 timecounter: Timecounter "TSC" frequency 4491558000 Hz quality 3000
 uhub0 at usb0acpivga0: connected output devices:
 acpivga0:   0x0110 (acpiout0): LCD Panel, head 0, bios detect
 acpivga0:   0x0210: Unknown Output Device, head 0, bios detect
 acpivga0:   0x0220: Unknown Output Device, head 0, bios detect
 acpivga0:   0x0230: Unknown Output Device, head 0, bios detect
 acpivga0:   0x0240: Unknown Output Device, head 0, bios detect
 acpivga0:   0x1000: Unknown Output Device, head 0, bios detect, non vga
 acpivga0:   0x2000: Unknown Output Device, head 0, bios detect, non vga
 : NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
 uhub0: 6 ports with 6 removable, self powered
 uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
 uhub1: 12 ports with 12 removable, self powered
 uhub2 at usb2: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
 uhub2: 2 ports with 2 removable, self powered
 uhub3 at usb3: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
 uhub3: 2 ports with 2 removable, self powered
 uhub4 at usb4: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
 uhub4: 2 ports with 2 removable, self powered
 uhub5 at usb5: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
 uhub5: 2 ports with 2 removable, self powered
 uhub6 at usb6: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
 uhub6: 1 port with 1 removable, self powered
 ...
 IPsec: Initialized Security Association Processing.
 ahcisata0 port 2: device present, speed: 6.0Gb/s
 ahcisata0 port 1: device present, speed: 6.0Gb/s
 ahcisata0 port 0: device present, speed: 6.0Gb/s
 uhidev0 at uhub1 port 7 configuration 1 interface 2
 uhidev0: AsusTek Computer Inc. (0x0b05) AURA LED Controller (0x19af), rev 2.00/1.00, addr 1, iclass 3/0
 uhidev0: 236 report ids
 uhid0 at uhidev0 reportid 236: input=64, output=64, feature=0
 ...
 swwdog0: software watchdog initialized
 WARNING: 3 errors while detecting hardware; check system log.
 boot device: ld0
 root on dk1 dumps on dk2
 root file system type: ffs
 kern.module.path=/netbsd/modules
 tap0: Ethernet address f2:0b:a4:83:63:21
 wsdisplay0: screen 1 added (default, vt100 emulation)
 wsdisplay0: screen 2 added (default, vt100 emulation)
 wsdisplay0: screen 3 added (default, vt100 emulation)
 wsdisplay0: screen 4 added (default, vt100 emulation)

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Taylor R Campbell <riastradh@NetBSD.org>
Cc: Thomas Klausner <wiz@NetBSD.org>, gnats-bugs@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: kern/60491: arp creates state for invalid messages
Date: Fri, 20 Nov 2026 13:04:33 +0100

 hello:

 On Mon, Nov 09, 2026 at 05:00:07PM +0000, Taylor R Campbell wrote:
 > Can you please try running with the attached patch to reveal some
 > additional information about the mbuf before m_makewritable next time
 > it crashes?  Trying to find what initial conditions might lead
 > m_makewritable to prepend an empty mbuf link in the chain.

 I got a panic:
 login: [ 207159.6024898] panic: kernel diagnostic assertion "op == ARPOP_REPLY || op == ARPOP_REQUEST" failed: file "/dsk/l1/misc/bouyer/HEAD/clean/src/sys/netinet/if_arp.c", line 805 op=0xffff om=0xffff8a6fa6f59388 om->m_flags=0x9000103 om->m_data=0xffff8a6fa67bd00e om->m_len=46 om->m_next=0x0 om->m_pkthdr.len=46 M_LEADINGSPACE(om)=0 M_TRAILINGSPACE(om)=0 m=0xffff8a6fa6baa9c0 m->m_flags=0x102 m->m_data=0xffff8a
 [ 207159.7165719] cpu0: Begin traceback...
 [ 207159.7282656] vpanic() at netbsd:vpanic+0x18d
 [ 207159.7424419] kern_assert() at netbsd:kern_assert+0x61
 [ 207159.7565534] in_arpinput() at netbsd:in_arpinput+0x60f
 [ 207159.7730397] arpintr() at netbsd:arpintr+0x12e
 [ 207159.7825607] softint_dispatch() at netbsd:softint_dispatch+0x124
 [ 207159.8066302] DDB lost frame for netbsd:Xsoftintr+0x4c, trying 0xffff8e00695cd0f0
 [ 207159.8227522] Xsoftintr() at netbsd:Xsoftintr+0x4c
 [ 207159.8445900] --- interrupt ---

 The box is in ddb for now (until I need it again).

 > 
 > Can you also share dmesg output at boot?  Do you know which NIC driver
 > the ethernet frame came in via?

 it is a wm(4):
 [   1.0000030] wm0 at pci1 dev 0 function 0: 82576 1000BaseT Ethernet (rev. 0x01
 )
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 0 affinity to 1
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 1 affinity to 2
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 2 affinity to 3
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 3 affinity to 4
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 4 affinity to 5
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 5 affinity to 6
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 6 affinity to 7
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 7 affinity to 8
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 8 affinity to 9
 [   1.0000030] wm0: for LINK interrupting at msix0 vec 9
 [   1.0000030] wm0: Ethernet address 00:25:90:61:80:c6
 [   1.0000030] wm0: Copper
 [   1.0000030] igphy0 at wm0 phy 1: i82566 10/100/1000 media interface, rev. 1
 [   1.0000030] igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT
 , 1000baseT-FDX, auto

 It is attached to a bridge(4), but at the time of the panic the bridge had
 no other member.

 Below is the full boot message

 [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
 [   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
 [   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
 [   1.0000000]     2024, 2025, 2026
 [   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
 [   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
 [   1.0000000]     The Regents of the University of California.  All rights reserved.

 [   1.0000000] NetBSD 11.99.9 (XEN3_DOM0PVH) #9: Tue Nov 17 18:02:53 CET 2026
 [   1.0000000] 	bouyer@folk:/dsk/l1/misc/bouyer/tmp/amd64/obj/dsk/l1/misc/bouyer/HEAD/clean/src/sys/arch/amd64/compile/XEN3_DOM0PVH
 [   1.0000000] total memory = 1023 MB
 [   1.0000000] avail memory = 967 MB
 [   1.0000000] mainbus0 (root)
 [   1.0000000] ACPI: RSDP 0x0000000040068E78 000024 (v02 ACPIAM)
 [   1.0000000] ACPI: XSDT 0x0000000040068E9C 00004C (v01 SMCI            20110803 MSFT 00000097)
 [   1.0000000] ACPI: APIC 0x0000000040068EE8 000118 (v01 080311 APIC1505 20110803 MSFT 00000097)
 [   1.0000000] ACPI: FACP 0x00000000BF790290 0000F4 (v03 080311 FACP1505 20110803 MSFT 00000097)
 [   1.0000000] Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 128/64 (20260408/tbfadt-643)
 [   1.0000000] ACPI: DSDT 0x00000000BF7906A0 006563 (v01 10600  10600000 00000000 INTL 20051117)
 [   1.0000000] ACPI: FACS 0x00000000BF79E000 000040
 [   1.0000000] ACPI: MCFG 0x00000000BF7904B0 00003C (v01 080311 OEMMCFG  20110803 MSFT 00000097)
 [   1.0000000] ACPI: OEMB 0x00000000BF79E040 000085 (v01 080311 OEMB1505 20110803 MSFT 00000097)
 [   1.0000000] ACPI: SSDT 0x00000000BF7A13E0 000363 (v01 DpgPmm CpuPm    00000012 INTL 20051117)
 [   1.0000000] ACPI: 2 ACPI AML tables successfully acquired and loaded
 [   1.0000000] ioapic0 at mainbus0 apid 1
 [   1.0000000] ioapic1 at mainbus0 apid 3
 [   1.0000000] cpu0 at mainbus0 apid 0
 [   1.0000000] cpu0: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu0: node 0, package 0, core 0, smt 0
 [   1.0000000] cpu1 at mainbus0 apid 2
 [   1.0000000] cpu1: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu1: node 0, package 0, core 1, smt 0
 [   1.0000000] cpu2 at mainbus0 apid 4
 [   1.0000000] cpu2: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu2: node 0, package 0, core 2, smt 0
 [   1.0000000] cpu3 at mainbus0 apid 6
 [   1.0000000] cpu3: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu3: node 0, package 0, core 3, smt 0
 [   1.0000000] cpu4 at mainbus0 apid 8
 [   1.0000000] cpu4: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu4: node 0, package 0, core 4, smt 0
 [   1.0000000] cpu5 at mainbus0 apid 10
 [   1.0000000] cpu5: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu5: node 0, package 0, core 5, smt 0
 [   1.0000000] cpu6 at mainbus0 apid 12
 [   1.0000000] cpu6: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu6: node 0, package 0, core 6, smt 0
 [   1.0000000] cpu7 at mainbus0 apid 14
 [   1.0000000] cpu7: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu7: node 0, package 0, core 7, smt 0
 [   1.0000000] cpu8 at mainbus0 apid 16
 [   1.0000000] cpu8: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu8: node 0, package 0, core 8, smt 0
 [   1.0000000] cpu9 at mainbus0 apid 18
 [   1.0000000] cpu9: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu9: node 0, package 0, core 9, smt 0
 [   1.0000000] cpu10 at mainbus0 apid 20
 [   1.0000000] cpu10: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu10: node 0, package 0, core 10, smt 0
 [   1.0000000] cpu11 at mainbus0 apid 22
 [   1.0000000] cpu11: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz, id 0x206c2
 [   1.0000000] cpu11: node 0, package 0, core 11, smt 0
 [   1.0000000] hypervisor0 at mainbus0: Xen version 4.20.5-pre_20261103
 [   1.0000000] xenbus0 at hypervisor0: Xen Virtual Bus Interface
 [   1.0000000] xencons0 at hypervisor0: Xen Virtual Console Driver
 [   1.0000000] acpi0 at mainbus0: Intel ACPICA 20260408
 [   1.0000000] MPACPI PCI bus number 1 configuration failed: 6
 [   1.0000000] ACPI: Dynamic OEM Table Load:
 [   1.0000000] ACPI: SSDT 0xFFFF8A6FA4E45808 0007DD (v01 PmRef  P001Cst  00003001 INTL 20051117)
 [   1.0000000] acpi0: fixed power button present
 [   1.0000030] IOH (PNP0C01) at acpi0 not configured
 [   1.0000030] attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
 [   1.0000030] pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 [   1.0000030] spkr0 at pcppi1: PC Speaker
 [   1.0000030] wsbell at spkr0 not configured
 [   1.0000030] midi0 at pcppi1: PC speaker
 [   1.0000030] com0 at acpi0 (UAR1, PNP0501-1): io 0x3f8-0x3ff irq 4
 [   1.0000030] com0: com probe failed
 [   1.0000030] com1 at acpi0 (UAR2, PNP0501-2): io 0x2f8-0x2ff irq 3
 [   1.0000030] com1: ns16550a, 16-byte FIFO
 [   1.0000030] hpet0 at acpi0 (HPET, PNP0103)(XEN) arch/x86/hvm/emulate.c:409:d0v0 unhandled memory read from 0xfed1f404 size 1
 : high precision event timer (mem 0xfed03000-0xfed03400)
 [   1.0000030] hpet0: HPET_CONFIG value = 0xffffffff
 [   1.0000030] RMEM (PNP0C01) at acpi0 not configured
 [   1.0000030] acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
 [   1.0000030] ACPI: Enabled 1 GPEs in block 00 to 3F
 [   1.0000030] attimer1: attached to pcppi1
 [   1.0000030] ipmi0 at mainbus0
 [   1.0000030] pci0 at mainbus0 bus 0: configuration mode 1
 [   1.0000030] pchb0 at pci0 dev 0 function 0: Intel 5520 ESI Port (rev. 0x22)
 [   1.0000030] ppb0 at pci0 dev 1 function 0: Intel 5520/5500/X58 PCIe Root Port 1 (rev. 0x22)
 [   1.0000030] ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x4 @ 5.0GT/s
 [   1.0000030] ppb0: link is x4 @ 2.5GT/s
 [   1.0000030] pci1 at ppb0 bus 1
 [   1.0000030] wm0 at pci1 dev 0 function 0: 82576 1000BaseT Ethernet (rev. 0x01)
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 0 affinity to 1
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 1 affinity to 2
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 2 affinity to 3
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 3 affinity to 4
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 4 affinity to 5
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 5 affinity to 6
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 6 affinity to 7
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 7 affinity to 8
 [   1.0000030] wm0: for TX and RX interrupting at msix0 vec 8 affinity to 9
 [   1.0000030] wm0: for LINK interrupting at msix0 vec 9
 [   1.0000030] wm0: Ethernet address 00:25:90:61:80:c6
 [   1.0000030] wm0: Copper
 [   1.0000030] igphy0 at wm0 phy 1: i82566 10/100/1000 media interface, rev. 1
 [   1.0000030] igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 [   1.0000030] wm1 at pci1 dev 0 function 1: 82576 1000BaseT Ethernet (rev. 0x01)
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 0 affinity to 1
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 1 affinity to 2
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 2 affinity to 3
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 3 affinity to 4
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 4 affinity to 5
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 5 affinity to 6
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 6 affinity to 7
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 7 affinity to 8
 [   1.0000030] wm1: for TX and RX interrupting at msix1 vec 8 affinity to 9
 [   1.0000030] wm1: for LINK interrupting at msix1 vec 9
 [   1.0000030] wm1: Ethernet address 00:25:90:61:80:c7
 [   1.0000030] wm1: Copper
 [   1.0000030] igphy1 at wm1 phy 1: i82566 10/100/1000 media interface, rev. 1
 [   1.0000030] igphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 [   1.0000030] ppb1 at pci0 dev 3 function 0: Intel 5520/5500/X58 PCIe Root Port 3 (rev. 0x22)
 [   1.0000030] ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x8 @ 5.0GT/s
 [   1.0000030] pci2 at ppb1 bus 2
 [   1.0000030] ppb2 at pci0 dev 5 function 0: Intel 5520/5500/X58 PCIe Root Port 5 (rev. 0x22)
 [   1.0000030] ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x8 @ 5.0GT/s
 [   1.0000030] pci3 at ppb2 bus 3
 [   1.0000030] ppb3 at pci0 dev 7 function 0: Intel 5520/5500/X58 PCIe Root Port 7 (rev. 0x22)
 [   1.0000030] ppb3: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x8 @ 5.0GT/s
 [   1.0000030] pci4 at ppb3 bus 4
 [   1.0000030] ppb4 at pci0 dev 9 function 0: Intel 5520/5500/X58 PCIe Root Port 9 (rev. 0x22)
 [   1.0000030] ppb4: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x8 @ 5.0GT/s
 [   1.0000030] pci5 at ppb4 bus 5
 [   1.0000030] Intel 5520/5500/X58 IOxAPIC (interrupt system, IO(x) APIC, revision 0x22) at pci0 dev 19 function 0 not configured
 [   1.0000030] Intel 5520/5500/X58 Misc (interrupt system, generic 8259, revision 0x22) at pci0 dev 20 function 0 not configured
 [   1.0000030] Intel 5520/5500/X58 Scratchpads and GPIO (interrupt system, generic 8259, revision 0x22) at pci0 dev 20 function 1 not configured
 [   1.0000030] Intel 5520/5500/X58 Control Status and RAS (interrupt system, generic 8259, revision 0x22) at pci0 dev 20 function 2 not configured
 [   1.0000030] Intel 5520/5500/X58 Throttling (interrupt system, generic 8259, revision 0x22) at pci0 dev 20 function 3 not configured
 [   1.0000030] Intel product 3430 (miscellaneous system, revision 0x22) at pci0 dev 22 function 0 not configured
 [   1.0000030] Intel product 3431 (miscellaneous system, revision 0x22) at pci0 dev 22 function 1 not configured
 [   1.0000030] Intel product 3432 (miscellaneous system, revision 0x22) at pci0 dev 22 function 2 not configured
 [   1.0000030] Intel product 3433 (miscellaneous system, revision 0x22) at pci0 dev 22 function 3 not configured
 [   1.0000030] Intel product 3429 (miscellaneous system, revision 0x22) at pci0 dev 22 function 4 not configured
 [   1.0000030] Intel product 342a (miscellaneous system, revision 0x22) at pci0 dev 22 function 5 not configured
 [   1.0000030] Intel product 342b (miscellaneous system, revision 0x22) at pci0 dev 22 function 6 not configured
 [   1.0000030] Intel product 342c (miscellaneous system, revision 0x22) at pci0 dev 22 function 7 not configured
 [   1.0000030] uhci0 at pci0 dev 26 function 0: Intel 82801JI USB UHCI Controller (rev. 0x00)
 [   1.0000030] uhci0: interrupting at ioapic0 pin 16
 [   1.0000030] usb0 at uhci0: USB revision 1.0
 [   1.0000030] uhci1 at pci0 dev 26 function 1: Intel 82801JI USB UHCI Controller (rev. 0x00)
 [   1.0000030] uhci1: interrupting at ioapic0 pin 21
 [   1.0000030] usb1 at uhci1: USB revision 1.0
 [   1.0000030] uhci2 at pci0 dev 26 function 2: Intel 82801JI USB UHCI Controller (rev. 0x00)
 [   1.0000030] uhci2: interrupting at ioapic0 pin 19
 [   1.0000030] usb2 at uhci2: USB revision 1.0
 [   1.0000030] ehci0 at pci0 dev 26 function 7: Intel 82801JI USB EHCI Controller (rev. 0x00)
 [   1.0000030] ehci0: interrupting at ioapic0 pin 18
 [   1.0000030] ehci0: 3 companion controllers, 2 ports each: uhci0 uhci1 uhci2
 [   1.0000030] ehci0: Using DMA subregion for control data structures
 [   1.0000030] usb3 at ehci0: USB revision 2.0
 [   1.0000030] uhci3 at pci0 dev 29 function 0: Intel 82801JI USB UHCI Controller (rev. 0x00)
 [   1.0000030] uhci3: interrupting at ioapic0 pin 23
 [   1.0000030] usb4 at uhci3: USB revision 1.0
 [   1.0000030] uhci4 at pci0 dev 29 function 1: Intel 82801JI USB UHCI Controller (rev. 0x00)
 [   1.0000030] uhci4: interrupting at ioapic0 pin 19
 [   1.0000030] usb5 at uhci4: USB revision 1.0
 [   1.0000030] uhci5 at pci0 dev 29 function 2: Intel 82801JI USB UHCI Controller (rev. 0x00)
 [   1.0000030] uhci5: interrupting at ioapic0 pin 18
 [   1.0000030] usb6 at uhci5: USB revision 1.0
 [   1.0000030] ehci1 at pci0 dev 29 function 7: Intel 82801JI USB EHCI Controller (rev. 0x00)
 [   1.0000030] ehci1: interrupting at ioapic0 pin 23
 [   1.0000030] ehci1: 3 companion controllers, 2 ports each: uhci3 uhci4 uhci5
 [   1.0000030] ehci1: Using DMA subregion for control data structures
 [   1.0000030] usb7 at ehci1: USB revision 2.0
 [   1.0000030] ppb5 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0x90)
 [   1.0000030] pci6 at ppb5 bus 6
 [   1.0000030] vga0 at pci6 dev 1 function 0: Matrox MGA G200eW (rev. 0x0a)
 [   1.0000030] wsdisplay0 at vga0 kbdmux 1
 [   1.0000030] drm at vga0 not configured
 [   1.0000030] ichlpcib0 at pci0 dev 31 function 0: Intel 82801JIR LPC Interface Bridge (rev. 0x00)
 [   1.0000030] ichlpcib0: 24-bit timer
 [   1.0000030] tco0 at ichlpcib0: TCO (watchdog) timer configured.
 [   1.0000030] tco0: TCO timer reboot disabled by hardware; hope SMBIOS properly handles it.
 [   1.0000030] ahcisata0 at pci0 dev 31 function 2: Intel 82801JI SATA Controller (AHCI mode) (rev. 0x00)
 [   1.0000030] ahcisata0: AHCI revision 1.20, 6 ports, 32 slots, CAP 0xef20ffe5<SXS,EMS,CCCS,PSC,SSC,PMD,ISS=0x2=Gen2,SCLO,SAL,SALP,SSS,SSNTF,SNCQ,S64A>
 [   1.0000030] ahcisata0: interrupting at msi2 vec 0
 [   1.0000030] atabus0 at ahcisata0 channel 0
 [   1.0000030] atabus1 at ahcisata0 channel 1
 [   1.0000030] atabus2 at ahcisata0 channel 2
 [   1.0000030] atabus3 at ahcisata0 channel 3
 [   1.0000030] atabus4 at ahcisata0 channel 4
 [   1.0000030] atabus5 at ahcisata0 channel 5
 [   1.0000030] ichsmb0 at pci0 dev 31 function 3: Intel 82801JI SMBus Controller (rev. 0x00)
 [   1.0000030] ichsmb0: interrupting at ioapic0 pin 18
 [   1.0000030] iic0 at ichsmb0: I2C bus
 [   1.0000030] isa0 at ichlpcib0
 [   1.0000030] acpicpu0 at cpu1: ACPI CPU
 [   1.0000030] acpicpu1 at cpu2: ACPI CPU
 [   1.0000030] acpicpu2 at cpu3: ACPI CPU
 [   1.0000030] acpicpu3 at cpu4: ACPI CPU
 [   1.0000030] acpicpu4 at cpu5: ACPI CPU
 [   1.0000030] acpicpu5 at cpu6: ACPI CPU
 [   1.0000030] acpicpu6 at cpu7: ACPI CPU
 [   1.0000030] acpicpu7 at cpu8: ACPI CPU
 [   1.0000030] acpicpu8 at cpu9: ACPI CPU
 [   1.0000030] acpicpu9 at cpu10: ACPI CPU
 [   1.0000030] acpicpu10 at cpu11: ACPI CPU
 [   1.0800655] uhub0 at usb1: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
 [   1.1000453] uhub1 at usb6: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
 [   1.1300454] uhub2 at usb4: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
 [   1.1600447] uhub3 at usb2: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
 [   1.1900453] uhub4 at usb0: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
 [   1.2100458] uhub5 at usb3: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
 [   1.2458016] uhub6 at usb5: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
 [   1.2700467] uhub7 at usb7: NetBSD (0x0000) EHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 1
 [   1.3100560] ahcisata0 port 5: device present, speed: 1.5Gb/s
 [   1.3401063] ahcisata0 port 0: device present, speed: 3.0Gb/s
 [   1.8601076] ehci0: handing over full speed device on port 3 to uhci1
 [   2.8901072] wd0 at atabus0 drive 0
 [   2.9001085] wd0: <WDC WD20EARS-00MVWB0>
 [   2.9201036] wd0: 1863 GB, 3876021 cyl, 16 head, 63 sec, 512 bytes/sect x 3907029168 sectors
 [   3.4104597] atapibus0 at atabus5: 1 targets
 [   3.4400838] cd0 at atapibus0 drive 0: <DV-28S-V, , 1.0B> cdrom removable
 uhidev0 at uhub0 port 1 configuration 1 interface 0
 [   3.4800468] uhidev0: American Megatrends Inc. (0x046b) Virtual Keyboard and Mouse (0xff10), rev 1.10/1.00, addr 2, iclass 3/1
 [   3.5300829] ukbd0 at uhidev0
 [   3.5400834] wskbd0 at ukbd0 mux 1
 [   3.5500470] uhidev1 at uhub0 port 1 configuration 1 interface 1
 [   3.5600451] uhidev1: American Megatrends Inc. (0x046b) Virtual Keyboard and Mouse (0xff10), rev 1.10/1.00, addr 2, iclass 3/1
 [   3.6000449] swwdog0: software watchdog initialized
 [   3.6100461] WARNING: 3 errors while detecting hardware; check system log.
 [   3.6392808] boot device: wd0
 [   3.6481190] root on wd0a dumps on wd0b
 [   3.6551416] ums0 at uhidev1: 3 buttons
 [   3.6700448] wsmouse0 at ums0 mux 0
 [   3.7101066] root file system type: ffs
 [   3.7213869] kern.module.path=/stand/amd64/11.99.9/modules
 Tue Nov 17 18:05:53 CET 2026
 [   4.2901064] entropy: best effort
 rcorder: could not open /etc/rc.d/xenbackendd: No such file or directory
 rcorder: could not open /etc/rc.d/xend: No such file or directory
 Starting root file system check:
 /dev/rwd0a: file system is clean; not checking
 Setting sysctl variables:
 kern.no_sa_support: 1 -> 1
 ddb.onpanic: 1 -> 1
 swapctl: adding /dev/wd0b as swap device at priority 0
 Starting file system checks:
 /dev/rwd0g: file system is clean; not checking
 /dev/rwd0h: file system is clean; not checking
 [   5.3200852] entropy: ready
 Loaded entropy from /var/db/entropy-file.
 Waiting for entropy...done
 Setting tty flags.
 Starting network.
 IPv6 mode: host
 Configuring network interfaces: wm0 bridge0.
 Adding interface aliases:.
 Waiting for duplicate address detection to finish...
 Starting dhcpcd.
 [  12.0801169] ipmi0: ID 32.1 IPMI 2.0 Available
 wm0: Setting hostname: borneo.soc.lip6.fr
 Building databases: dev, utmp, utmpx.
 rcorder: could not open /etc/rc.d/xenbackendd: No such file or directory
 rcorder: could not open /etc/rc.d/xend: No such file or directory
 Starting syslogd.
 Setting date via ntp.
 Mounting all file systems...
 Clearing temporary files.
 Checking quotas: done.
 Starting virecover.
 Starting xenservices: xenstored, xenconsoled.
 Nov 17 18:06:15 borneo xenstored: Checking store ... 
 Nov 17 18:06:15 borneo xenstored: Checking store complete. 
 [  25.4800445] balloon at xenbus0 id 0 not configured
 Setting domain 0 name, domid and JSON config...
 Done setting up Dom0
 /etc/rc.d/xendomains exited with code 1
 /etc/rc: WARNING: $xenwatchdog is not set properly - see rc.conf(5).
 Starting local daemons:.
 Updating motd.
 Starting ntpd.
 Starting powerd.
 eval: run_rc_command: /usr/pkg/libexec/nut/upsdrvctl: not found
 /etc/rc.d/upsdriver exited with code 1
 Starting sshd.
 Starting postfix.
 postfix: Postfix is using backwards-compatible default settings
 postfix: See https://www.postfix.org/COMPATIBILITY_README.html for details
 postfix: To disable backwards compatibility use "postconf compatibility_level=3.11" and "postfix reload"
 postfix/postlog: starting the Postfix mail system
 Starting inetd.
 Starting cron.
 The following components reported failures:
     /etc/rc.d/xendomains /etc/rc.d/upsdriver
 See /var/run/rc.log for more information.
 Tue Nov 17 18:06:25 CET 2026

 NetBSD/amd64 (borneo.soc.lip6.fr) (console)

 login: [ 207159.6024898] panic: kernel diagnostic assertion "op == ARPOP_REPLY || op == ARPOP_REQUEST" failed: file "/dsk/l1/misc/bouyer/HEAD/clean/src/sys/netinet/if_arp.c", line 805 op=0xffff om=0xffff8a6fa6f59388 om->m_flags=0x9000103 om->m_data=0xffff8a6fa67bd00e om->m_len=46 om->m_next=0x0 om->m_pkthdr.len=46 M_LEADINGSPACE(om)=0 M_TRAILINGSPACE(om)=0 m=0xffff8a6fa6baa9c0 m->m_flags=0x102 m->m_data=0xffff8a
 [ 207159.7165719] cpu0: Begin traceback...
 [ 207159.7282656] vpanic() at netbsd:vpanic+0x18d
 [ 207159.7424419] kern_assert() at netbsd:kern_assert+0x61
 [ 207159.7565534] in_arpinput() at netbsd:in_arpinput+0x60f
 [ 207159.7730397] arpintr() at netbsd:arpintr+0x12e
 [ 207159.7825607] softint_dispatch() at netbsd:softint_dispatch+0x124
 [ 207159.8066302] DDB lost frame for netbsd:Xsoftintr+0x4c, trying 0xffff8e00695cd0f0
 [ 207159.8227522] Xsoftintr() at netbsd:Xsoftintr+0x4c
 [ 207159.8445900] --- interrupt ---
 [ 207159.8565504] 0:
 [ 207159.8625363] cpu0: End traceback...
 [ 207159.8737148] fatal breakpoint trap in supervisor mode
 [ 207159.8838525] trap type 1 code 0 rip 0xffffffff8023541d cs 0x8 rflags 0x202 cr2 0x7b0a4a7f6028 ilevel 0x4 rsp 0xffff8e00695ccd80
 [ 207159.9246721] curlwp 0xffff8a6fe0b5d400 pid 0.3 lowest kstack 0xffff8e00695c82c0
 Stopped in pid 0.3 (system) at  netbsd:breakpoint+0x5:  leave
 db{0}> 

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.