Re: [PATCH net] sctp: reset owner sk for data chunks on out queues when migrating a sock

2017-10-28 Thread David Miller
From: Xin Long Date: Sat, 28 Oct 2017 02:13:29 +0800 > Now when migrating sock to another one in sctp_sock_migrate(), it only > resets owner sk for the data in receive queues, not the chunks on out > queues. > > It would cause that data chunks length on the sock is not consistent > with sk sk_wm

Re: [PATCH net] sctp: reset owner sk for data chunks on out queues when migrating a sock

2017-10-27 Thread Marcelo Ricardo Leitner
On Sat, Oct 28, 2017 at 02:13:29AM +0800, Xin Long wrote: > Now when migrating sock to another one in sctp_sock_migrate(), it only > resets owner sk for the data in receive queues, not the chunks on out > queues. > > It would cause that data chunks length on the sock is not consistent > with sk sk

[PATCH net] sctp: reset owner sk for data chunks on out queues when migrating a sock

2017-10-27 Thread Xin Long
Now when migrating sock to another one in sctp_sock_migrate(), it only resets owner sk for the data in receive queues, not the chunks on out queues. It would cause that data chunks length on the sock is not consistent with sk sk_wmem_alloc. When closing the sock or freeing these chunks, the old sk