Page MenuHomeFreeBSD

bpf: Fix the write filter
ClosedPublic

Authored by markj on Oct 19 2021, 4:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 6:09 PM
Unknown Object (File)
Jan 19 2024, 6:08 AM
Unknown Object (File)
Jan 16 2024, 4:40 AM
Unknown Object (File)
Dec 20 2023, 5:58 AM
Unknown Object (File)
Dec 5 2023, 11:56 AM
Unknown Object (File)
Nov 11 2023, 1:42 PM
Unknown Object (File)
Nov 11 2023, 4:09 AM
Unknown Object (File)
Nov 9 2023, 3:06 AM
Subscribers

Details

Summary

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.

Fixes: ded77e0237a8 ("Allow the BPF to be select for write.")
Reported by: syzbot+ae45d5166afe15a5a21d@syzkaller.appspotmail.com

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42255
Build 39143: arc lint + arc unit