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
Unknown Object (File)
Thu, Apr 30, 1:19 PM
Unknown Object (File)
Wed, Apr 29, 8:41 AM
Unknown Object (File)
Tue, Apr 28, 6:56 PM
Unknown Object (File)
Sun, Apr 26, 9:15 PM
Unknown Object (File)
Fri, Apr 24, 6:03 PM
Unknown Object (File)
Mon, Apr 20, 2:15 AM
Unknown Object (File)
Mon, Apr 13, 9:26 AM
Unknown Object (File)
Sat, Apr 11, 10:20 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39361
Build 36250: arc lint + arc unit