Use pru_send function to check socket splicing compatibility. Only
authorbluhm <bluhm@openbsd.org>
Sun, 4 Sep 2022 09:04:27 +0000 (09:04 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 4 Sep 2022 09:04:27 +0000 (09:04 +0000)
commit536333f5835e152dcd8de77061bcaffedd2fcfd2
treef4d166e98334c05ab8b34ce1efaa24db84ecd5d6
parent48d212d82b5f8aec12ca7c7a521ad13fdfe6cfb4
Use pru_send function to check socket splicing compatibility.  Only
checking socket type is not sufficient as it could splice together
unix and inet sockets resulting in crashes.  As splicing is about
sending, the same send function looks like a good criteria.
Reported-by: syzbot+fc6901d63d858d5dd00a@syzkaller.appspotmail.com
Reported-by: syzbot+0e026f1bf8b259c6395e@syzkaller.appspotmail.com
OK gnezdo@
sys/kern/uipc_socket.c