Page MenuHomeFreeBSD

so_splice: Synchronize so_unsplice() with so_splice()
ClosedPublic

Authored by markj on Apr 13 2025, 3:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 16, 8:27 AM
Unknown Object (File)
Fri, Jan 16, 12:39 AM
Unknown Object (File)
Tue, Jan 6, 9:10 AM
Unknown Object (File)
Tue, Jan 6, 12:51 AM
Unknown Object (File)
Dec 17 2025, 1:26 AM
Unknown Object (File)
Dec 16 2025, 5:00 PM
Unknown Object (File)
Dec 11 2025, 8:02 PM
Unknown Object (File)
Nov 30 2025, 11:29 AM
Subscribers

Details

Summary

so_unsplice() assumed that if SB_SPLICED is set in the receive buffer of
the first socket, then the splice is fully initialized. However, that's
not true, and it's possible for so_unsplice() to race ahead of
so_splice().

Modify so_unsplice() to simply bail if the splice state is embryonic.

Reported by: syzkaller

Diff Detail

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