HomeFreeBSD

tcp: Handle stack switch while processing socket options

Description

tcp: Handle stack switch while processing socket options

Handle the case where during socket option processing, the user
switches a stack such that processing the stack specific socket
option does not make sense anymore. Return an error in this case.

Reviewed by: markj
Reported by: syzbot+a6e1d91f240ad5d72cd1@syzkaller.appspotmail.com
Sponsored by: Netflix, Inc.
Differential revision: https://reviews.freebsd.org/D30395

(cherry picked from commit 8923ce630492d21ec57c2637757bcc44da9970f8)

Details

Provenance
tuexenAuthored on May 22 2021, 12:35 PM
Reviewer
markj
Differential Revision
D30395: Handle stack switch while processing stack specific socket options
Parents
rG56aeedd2fda4: tcp: Fix sending of TCP segments with IP level options
Branches
Unknown
Tags
Unknown