CVSROOT: /cvs Module name: src Changes by: an...@cvs.openbsd.org 2021/03/09 13:05:14
Modified files: sys/net : if_tun.c Log message: 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+2ca11c73711a1d0b5...@syzkaller.appspotmail.com