restrict the maximum wait time you can set via BIOCSWTIMEOUT to 5 minutes.
authordlg <dlg@openbsd.org>
Mon, 5 Aug 2024 23:56:10 +0000 (23:56 +0000)
committerdlg <dlg@openbsd.org>
Mon, 5 Aug 2024 23:56:10 +0000 (23:56 +0000)
commit2293e68203ecf637bc929b02cdb3a4f9e71aac6d
treeef93b114e5acd3ad361eff22e690655386171442
parentafebb9f99b4167bf3c34f25088f08c019909125f
restrict the maximum wait time you can set via BIOCSWTIMEOUT to 5 minutes.

this is avoids passing excessively large values to timeout_add_nsec.

Reported-by: syzbot+f650785d4f2b3fe28284@syzkaller.appspotmail.com
share/man/man4/bpf.4
sys/net/bpf.c