Page MenuHomeFreeBSD

snd_dummy: Avoid NULL dereferences in dummy_chan_io()
AbandonedPublic

Authored by christos on Tue, Nov 5, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 5:34 PM
Unknown Object (File)
Wed, Nov 13, 5:47 AM
Unknown Object (File)
Sun, Nov 10, 9:47 PM
Unknown Object (File)
Sun, Nov 10, 9:58 AM
Unknown Object (File)
Sun, Nov 10, 9:57 AM
Unknown Object (File)
Thu, Nov 7, 8:41 PM
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.