You must selwakeup{,pri}() when closing a selectable object or the
td->td_sel will get trashed and crash the system. Fix BPF's mistake in this area. MFC after: 1 day
This commit is contained in:
parent
225da24b06
commit
3099929dde
@ -386,6 +386,7 @@ bpfclose(dev, flags, fmt, td)
|
||||
if (d->bd_bif)
|
||||
bpf_detachd(d);
|
||||
mtx_unlock(&bpf_mtx);
|
||||
selwakeuppri(&d->bd_sel, PRINET);
|
||||
#ifdef MAC
|
||||
mac_destroy_bpfdesc(d);
|
||||
#endif /* MAC */
|
||||
|
Loading…
Reference in New Issue
Block a user