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, Dec 25, 3:40 PM
Unknown Object (File)
Wed, Dec 17, 11:27 PM
Unknown Object (File)
Sat, Dec 6, 2:16 PM
Unknown Object (File)
Nov 26 2025, 10:36 PM
Unknown Object (File)
Nov 25 2025, 2:12 PM
Unknown Object (File)
Nov 25 2025, 6:15 AM
Unknown Object (File)
Nov 22 2025, 11:40 PM
Unknown Object (File)
Nov 22 2025, 9:38 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