Do not allow send/receive of kcov descriptors as the file descriptor can
authoranton <anton@openbsd.org>
Wed, 29 Dec 2021 07:15:13 +0000 (07:15 +0000)
committeranton <anton@openbsd.org>
Wed, 29 Dec 2021 07:15:13 +0000 (07:15 +0000)
commit982627fcf22228ce2ee809a2f711dc699bd24669
treec05147e19eb374a3b7313a6b7aa91dc33eea892d
parent461ffcad4f21a2658cc12a8bed1cbef82576dfe5
Do not allow send/receive of kcov descriptors as the file descriptor can
be kept alive longer than expected causing syzkaller to no longer being
able to enable remote coverage.

ok visa@

Reported-by: syzbot+ab2016d729cda7b0d003@syzkaller.appspotmail.com
sys/dev/kcov.c
sys/kern/uipc_usrreq.c
sys/sys/kcov.h