When apruptly detaching a tcp session, stop all timers prior of discarding the tcpcb.
Reported-by: syzbot+9a9aa434a14a2b35c3ba@syzkaller.appspotmail.com
Reported-by: syzbot+e82856782410e895bae7@syzkaller.appspotmail.com
Differential D43825
tcp: stop all timers in tcp_usr_detach() rscheff on Feb 11 2024, 12:13 AM. Authored by Tags None Referenced Files
Subscribers
Details
Diff Detail
Event TimelineComment Actions This should fix the panic observed of course. Question is: do we want every TCP state go through tcp_close() in its life cycle? Cause no we got a case that TIME_WAIT will just disappear. There are three options here: 1) use the patch as is 2) add tcp_state_change() here 3) add full tcp_close(). We may want to quickly check in the patch as is and then think better. |