HomeFreeBSD

sctp: improve handling of socket shutdown for reading

Description

sctp: improve handling of socket shutdown for reading

If a socket is marked as cannot read anymore, drop chunks which
should be added to a control element in the receive queue.
This is consistent with dropping control elements instead of
adding them in the same situation.

Reported by: syzbot+291f6581cecb77097b16@syzkaller.appspotmail.com
MFC after: 1 week

Details

Provenance
tuexenAuthored on Aug 24 2023, 1:52 PM
Parents
rGd10de21f2f7d: pf: Access r->rpool.cur->kif under mutex protection
Branches
Unknown
Tags
Unknown