Page MenuHomeFreeBSD

Don't allow KTLS specific socket options on listening sockets
ClosedPublic

Authored by tuexen on Jan 4 2021, 4:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 7:51 AM
Unknown Object (File)
Tue, Nov 5, 8:40 AM
Unknown Object (File)
Sun, Nov 3, 11:02 AM
Unknown Object (File)
Thu, Oct 31, 1:36 PM
Unknown Object (File)
Oct 5 2024, 4:53 AM
Unknown Object (File)
Oct 2 2024, 10:22 PM
Unknown Object (File)
Oct 2 2024, 3:25 PM
Unknown Object (File)
Oct 2 2024, 1:59 PM
Subscribers
None

Details

Summary

When using KTLS specific socket options on a listening socket, the system might panic, since socket buffers are used.

Test Plan

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tuexen requested review of this revision.Jan 4 2021, 4:46 AM
tuexen created this revision.
jhb added inline comments.
sys/kern/uipc_ktls.c
1022

style nit: Blank line before the block comment. I think it's also better if this is before the ktls_offload_enable_calls counter update.

1089

Same thoughts here.

This revision is now accepted and ready to land.Jan 8 2021, 8:12 PM
This revision now requires review to proceed.Jan 8 2021, 8:33 PM
sys/kern/uipc_ktls.c
1022

Fixed. Wasn't sure about doing the check before or after the ktls_offload_enable_calls counter update, since other error checking is done after it...

1089

Also fixed.

This revision is now accepted and ready to land.Jan 8 2021, 10:12 PM