Re: [PATCH net] sctp: not copy sctp_sock pd_lobby in sctp_copy_descendant

2019-03-19 Thread Neil Horman
On Mon, Mar 18, 2019 at 07:58:29PM +0800, Xin Long wrote: > Now sctp_copy_descendant() copies pd_lobby from old sctp scok to new > sctp sock. If sctp_sock_migrate() returns error, it will panic when > releasing new sock and trying to purge pd_lobby due to the incorrect > pointers in pd_lobby. > >

Re: [PATCH net] sctp: not copy sctp_sock pd_lobby in sctp_copy_descendant

2019-03-18 Thread David Miller
From: Xin Long Date: Mon, 18 Mar 2019 19:58:29 +0800 > Now sctp_copy_descendant() copies pd_lobby from old sctp scok to new > sctp sock. If sctp_sock_migrate() returns error, it will panic when > releasing new sock and trying to purge pd_lobby due to the incorrect > pointers in pd_lobby. > > [

[PATCH net] sctp: not copy sctp_sock pd_lobby in sctp_copy_descendant

2019-03-18 Thread Xin Long
Now sctp_copy_descendant() copies pd_lobby from old sctp scok to new sctp sock. If sctp_sock_migrate() returns error, it will panic when releasing new sock and trying to purge pd_lobby due to the incorrect pointers in pd_lobby. [ 120.485116] kasan: CONFIG_KASAN_INLINE enabled [ 120.486270] k