diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2024-08-05 23:56:11 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2024-08-05 23:56:11 +0000 |
commit | f7c8b8772be218d5e88ae5b8c27e3480518a1a82 (patch) | |
tree | b1d177716d05e298cc18dfb3b198a507fd4547db /share/man/man4 | |
parent | 62468f66743a951748c7438e2baff7efc85a415c (diff) |
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
Diffstat (limited to 'share/man/man4')
-rw-r--r-- | share/man/man4/bpf.4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/man/man4/bpf.4 b/share/man/man4/bpf.4 index 46429f1cde5..4990dc8a109 100644 --- a/share/man/man4/bpf.4 +++ b/share/man/man4/bpf.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bpf.4,v 1.45 2023/03/09 06:01:40 dlg Exp $ +.\" $OpenBSD: bpf.4,v 1.46 2024/08/05 23:56:10 dlg Exp $ .\" $NetBSD: bpf.4,v 1.7 1995/09/27 18:31:50 thorpej Exp $ .\" .\" Copyright (c) 1990 The Regents of the University of California. @@ -23,7 +23,7 @@ .\" This document is derived in part from the enet man page (enet.4) .\" distributed with 4.3BSD Unix. .\" -.Dd $Mdocdate: March 9 2023 $ +.Dd $Mdocdate: August 5 2024 $ .Dt BPF 4 .Os .Sh NAME @@ -315,6 +315,7 @@ the kernel buffer becoming readable. By default, or when reset, the wait timeout is infinite, meaning the age of packets in the kernel buffer does not make the buffer readable. +The maximum wait time that can be set is 5 minutes (300 seconds). .Pp .It Dv BIOCSETF Fa "struct bpf_program *" Sets the filter program used by the kernel to discard uninteresting packets. |