HomeFreeBSD

sctp: improve shutting down the read side of a socket

Description

sctp: improve shutting down the read side of a socket

When shutdown(..., SHUT_RD) or shutdown(..., SHUT_RDWR) is called,
really clean up the read queue and issue an ungraceful shutdown if
user messages are affected.

Reported by: syzbot+d4e1d30d578891245f59@syzkaller.appspotmail.com

(cherry picked from commit 81c5f0fac91dfae64205a6c4f9b2a469d1187372)

Details

Provenance
tuexenAuthored on Sep 12 2023, 11:33 PM
Parents
rG2d12958d4b5b: sctp: don't call sctp_ulp_notify() recursively
Branches
Unknown
Tags
Unknown