summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2021-03-09 20:05:14 +0000
committeranton <anton@openbsd.org>2021-03-09 20:05:14 +0000
commit43dfcaac64e41374816cb0077c75fe7397955f8c (patch)
tree73812d384d46f1e29c44bc658d0ee8cdf60b8c26 /sys/kern/subr_hibernate.c
parentShorten the if_cloners_lock name preventing it from being truncated in (diff)
downloadwireguard-openbsd-43dfcaac64e41374816cb0077c75fe7397955f8c.tar.xz
wireguard-openbsd-43dfcaac64e41374816cb0077c75fe7397955f8c.zip
Issuing FIOSETOWN and TIOCSPGRP ioctl commands on a tun(4) device leaks
device references causing a hang while trying to remove the same interface since the reference count will never reach zero. Instead of returning, break out of the switch in order to ensure that tun_put() gets called. ok deraadt@ mvs@ Reported-by: syzbot+2ca11c73711a1d0b5c6c@syzkaller.appspotmail.com
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions