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
F169947313: D30404.diff
Thu, Sep 3, 1:43 AM
F169829191: D30404.id.diff
Wed, Sep 2, 4:59 PM
F169766826: D30404.id89696.diff
Wed, Sep 2, 12:21 PM
Unknown Object (File)
Tue, Sep 1, 4:58 AM
Unknown Object (File)
Tue, Sep 1, 1:45 AM
Unknown Object (File)
Mon, Aug 31, 5:23 PM
Unknown Object (File)
Sat, Aug 29, 6:41 PM
Unknown Object (File)
Sat, Aug 29, 5: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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable