Race condition with interface on config reload
rmind opened this issue · 1 comments
rmind commented
maxv@netbsd reports:
panic: kernel diagnostic assertion "i <= npf->ifmap_cnt" failed: file "/usr/src/sys/net/npf/npf_if.c", line 152
cpu0: Begin traceback...
...
npf_ifmap_getid() at netbsd:npf_ifmap_getid+0x67
nbuf_init() at netbsd:nbuf_init+0x25
npf_packet_handler() at netbsd:npf_packet_handler+0x46
...
This can happen due to a race condition: there is a short window during npfctl reload
when there can be some packets in-flight while the interface index numbers are being re-assigned.