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)
Mon, Mar 3, 5:51 PM
Unknown Object (File)
Thu, Feb 27, 1:58 PM
Unknown Object (File)
Feb 24 2025, 1:26 AM
Unknown Object (File)
Feb 23 2025, 8:24 PM
Unknown Object (File)
Feb 21 2025, 5:53 AM
Unknown Object (File)
Feb 17 2025, 3:27 PM
Unknown Object (File)
Feb 10 2025, 8:15 AM
Unknown Object (File)
Feb 9 2025, 2:57 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