Re: [PATCH] tcp: release sk_frag.page in tcp_disconnect

2018-01-29 Thread David Miller
From: Li RongQing Date: Fri, 26 Jan 2018 16:40:41 +0800 > socket can be disconnected and gets transformed back to a listening > socket, if sk_frag.page is not released, which will be cloned into > a new socket by sk_clone_lock, but the reference count of this page > is increased, lead to a use af

[PATCH] tcp: release sk_frag.page in tcp_disconnect

2018-01-26 Thread Li RongQing
socket can be disconnected and gets transformed back to a listening socket, if sk_frag.page is not released, which will be cloned into a new socket by sk_clone_lock, but the reference count of this page is increased, lead to a use after free or double free issue Signed-off-by: Li RongQing Cc: Eri