NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/60688 (npf: wrong module/config dependency for bpf filter?)



The following reply was made to PR kern/60688; it has been noted by GNATS.

From: Thor Lancelot Simon <tls%panix.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tls%netbsd.org@localhost, kern-bug-people%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
	gnats-admin%netbsd.org@localhost, riastradh%NetBSD.org@localhost,
	campbell+netbsd%mumble.net@localhost
Subject: Re: kern/60688 (npf: wrong module/config dependency for bpf filter?)
Date: Mon, 7 Sep 2026 12:06:42 -0400

 Apologies - I had committed a mangled patch after test building in the wrong
 tree (sigh).  This should be fully fixed by npf_os.c 1.25, bpf.c 1.258, and
 bpg_filter.c 1.74.
 
 The symptom is that a kernel without MODULAR nor pseudo-device bpfilter,
 but with pseudo-device npf, fails module initialization for built-in module
 npf:
 
 WARNING: module error: Built-in module 'npf' prerequisite 'bpf' failed, error 2
 
 Subsequently, "npfctl reload" will yield a quick panic because the module is
 uninitialized - the usual uvm_fault from a NULL pointer dereference.
 
 I don't think there is an issue with bpf_mtap2; it's a static inline from the
 bpf.h header file and is supplied by bpf_stub.c, not bpf.c.
 



Home | Main Index | Thread Index | Old Index