Mark Johnston 426682b05a bpf: Fix the write filter for detached descriptors
A BPF descriptor only has an associated interface descriptor once it is
attached to an interface, e.g., with BIOCSETIF.  Avoid dereferencing a
NULL pointer in filt_bpfwrite() if the BPF descriptor is not attached.

Reviewed by:	ae
Reported by:	syzbot+ae45d5166afe15a5a21d@syzkaller.appspotmail.com
Fixes:	ded77e0237a8 ("Allow the BPF to be select for write.")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32561
2021-10-26 10:00:39 -04:00
..
2021-05-13 09:53:08 +02:00
2021-01-02 19:57:58 -07:00
2021-01-08 13:15:56 +13:00
2021-01-02 19:57:58 -07:00
2021-01-02 19:57:58 -07:00
2020-12-11 00:26:49 +00:00
2020-09-29 18:13:54 +00:00
2021-01-08 13:15:56 +13:00
2020-10-09 19:12:44 +00:00
2020-09-09 18:07:13 +00:00
2021-07-28 09:35:09 -07:00
2021-05-13 09:53:08 +02:00
2021-10-06 06:38:26 +03:00
2021-03-04 13:32:42 +01:00
2021-02-18 18:56:52 +01:00
2021-10-09 22:31:37 +03:00
2021-08-07 07:09:57 +08:00
2021-04-28 23:00:31 +12:00
2021-02-20 08:05:43 +00:00