summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2019-08-05 08:46:47 +0000
committeranton <anton@cvs.openbsd.org>2019-08-05 08:46:47 +0000
commitd4bf2e261eb4d86f50acdc7a40fc250d7e756370 (patch)
treecb5a01c0b1b2250ab2695b5e03707ab07bbbb0a1 /sys/nfs
parentcc2844b7bc7b5fbb8d9aa42d7aad949f62fef7ec (diff)
Favor vn_close() in the error path of diskmapioctl() since side-effects
caused by calling vn_open() with write permissions must be reverted. Otherwise, the vfs subsystem could panic while releasing the last vnode reference if the writecount is still positive. ok visa@ Reported-by: syzbot+4724df09d9ab0fdca28a@syzkaller.appspotmail.com Reported-by: syzbot+a430606fd528645559db@syzkaller.appspotmail.com
Diffstat (limited to 'sys/nfs')
0 files changed, 0 insertions, 0 deletions