Allow listen(2) only on sockets of type SOCK_STREAM or SOCK_SEQPACKET.
authormvs <mvs@openbsd.org>
Sun, 31 Mar 2024 14:01:28 +0000 (14:01 +0000)
committermvs <mvs@openbsd.org>
Sun, 31 Mar 2024 14:01:28 +0000 (14:01 +0000)
commite679c1f37540f33b0f453b541fa1dec5a197c14a
treea865f77f64a7bad65f10e50c98a3424218f23f7b
parentc80eb4865bece54c3611046d77ba12a2c1f53f32
Allow listen(2) only on sockets of type SOCK_STREAM or SOCK_SEQPACKET.
listen(2) man(1) page clearly prohibits sockets of other types.

Reported-by: syzbot+00450333592fcd38c6fe@syzkaller.appspotmail.com
ok bluhm
sys/kern/uipc_socket.c