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?)



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