Page MenuHomeFreeBSD

snd_dummy: Avoid NULL dereferences in dummy_chan_io()
AbandonedPublic

Authored by christos on Nov 5 2024, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 23, 2:19 AM
Unknown Object (File)
Mon, Jan 13, 10:41 PM
Unknown Object (File)
Dec 21 2024, 4:28 PM
Unknown Object (File)
Dec 11 2024, 1:00 PM
Unknown Object (File)
Dec 8 2024, 11:52 PM
Unknown Object (File)
Nov 23 2024, 10:25 AM
Unknown Object (File)
Nov 15 2024, 5:34 PM
Unknown Object (File)
Nov 13 2024, 5:47 AM
Subscribers

Details

Summary

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60413
Build 57297: arc lint + arc unit

Event Timeline

When are these fields null?

When are these fields null?

I couldn't pinpoint exactly, but I am pretty sure D47462 and D47459 fixed the cases where these fields could end up null. However, I think it wouldn't hurt to be extra safe here.

There may be cases where NULL checks like these eliminate some crashes but leave races that still exist but are harder to hit.

There may be cases where NULL checks like these eliminate some crashes but leave races that still exist but are harder to hit.

As I said, the two patches mentioned most likely fix those races, so I guess we could abandon this one.