Current-Users archive

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

Re: npf crashes on empty hash table load (amd64)



In article <20170310020544.GA272%primenet.com.au@localhost>,
Geoff Wing  <gcw%pobox.com@localhost> wrote:
>Hi,
>using the following /etc/npf.conf and an empty file "/etc/npf_blacklist" 
>I get a crash in hashinit(): "KASSERT(elements > 0);"
>
>#10 0xffffffff80cf6365 in kern_assert (fmt=fmt@entry=0xffffffff810db938
>"kernel %sassertion \"%s\" failed: file \"%s\", line %d ")
>    at /usr/netbsd/src/sys/lib/libkern/kern_assert.c:51
>#11 0xffffffff809950a4 in hashinit (elements=<optimized out>,
>htype=HASH_LIST, waitok=<optimized out>, hashmask=0xfffffe82dabaf920)
>    at /usr/netbsd/src/sys/kern/subr_hash.c:93
>#12 0xffffffff819494c9 in ?? ()
>#13 0xfffffe82f2b094f0 in ?? ()
>#14 0x0000000000000000 in ?? ()
>----------------------------------------
>/etc/npf.conf:
>
>$ext1_if = inet4(msk0)
>alg "icmp"
>table <blacklist> type hash file "/etc/npf_blacklist"
>group "external1" on $ext1_if {
>	block in final from <blacklist>
>}
>group default {
>	pass final on lo0 all
>	block all
>}

Fixed.

christos



Home | Main Index | Thread Index | Old Index