Page MenuHomeFreeBSD

ktrace: Remove vrele() at the end of ktr_writerequest()
ClosedPublic

Authored by markj on May 23 2021, 5:24 PM.
Tags
None
Referenced Files
F166335162: D30404.diff
Wed, Aug 12, 11:47 PM
Unknown Object (File)
Tue, Aug 11, 4:36 PM
Unknown Object (File)
Mon, Aug 10, 1:47 AM
Unknown Object (File)
Sun, Aug 9, 1:48 PM
Unknown Object (File)
Sat, Aug 8, 8:56 PM
Unknown Object (File)
Sat, Aug 8, 10:19 AM
Unknown Object (File)
Fri, Aug 7, 7:24 PM
Unknown Object (File)
Fri, Aug 7, 4:37 PM
Subscribers

Details

Summary

As of commit fc369a353 we no longer ref the vnode when writing a record.
Drop the corresponding vrele() call in the error case.

Fixes: fc369a353 ("ktrace: fix a race between writes and close")
Reported by: syzbot+9b96ea7a5ff8917d3fe4@syzkaller.appspotmail.com
Reported by: syzbot+6120ebbb354cd52e5107@syzkaller.appspotmail.com
MFC after: 6 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable