Re: [PATCH v2] sctp: fix refcount bug in sctp_wfree

From: Qiujun Huang
Date: Wed Mar 18 2020 - 00:23:16 EST


[ T8813] [1]put skb 0xffff888099ebbe80 back. sctp_check_transmitted, 1533
[ T8813] [1]put back to queue 0xffff888096b2c280 sctp_check_transmitted, 1683
Something wrong happens here, 0xffff888099ebbe80 not changed to newsk
[ T8813] [1]before sk 0xffff88809621e7c0 sctp_sock_migrate, 9592

cause

[ T8811] [0]skb 0xffff888099ebbe80 0xffff8880a3bb2800: truesize
131328, sk alloc 296449 sctp_wfree 9101
real sk 0xffff88809621e7c0

it's sk is still oldsk.