Page MenuHomeFreeBSD

Fix synchronization in the IPV6_2292PKTOPTIONS set handler.
ClosedPublic

Authored by markj on Mar 19 2020, 5:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 8:57 AM
Unknown Object (File)
Tue, Nov 5, 8:00 PM
Unknown Object (File)
Oct 28 2024, 4:52 PM
Unknown Object (File)
Oct 8 2024, 2:43 PM
Unknown Object (File)
Sep 27 2024, 2:07 PM
Unknown Object (File)
Sep 27 2024, 8:33 AM
Unknown Object (File)
Sep 22 2024, 7:56 PM
Unknown Object (File)
Sep 4 2024, 3:57 PM
Subscribers

Details

Summary

The inpcb needs to be locked when we update output packet options.
Otherwise it is possible for the IPV6_2292PKTOPTIONS handler to free
packet option structures while another thread is reading or updating
them.

Note that the option handler is still kind of broken. For instance it
frees all options before performing privilege checks for individual
options. However, this can be fixed separately.

Reported by: syzbot+52eb0fd4ddc119787f9d@syzkaller.appspotmail.com

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30009
Build 27822: arc lint + arc unit