]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
unix/caif: sk_socket can disappear when state is unlocked
authorMark Salyzyn <salyzyn@android.com>
Tue, 26 May 2015 15:22:19 +0000 (08:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 03:19:29 +0000 (23:19 -0400)
commitb48732e4a48d80ed4a14812f0bab09560846514e
tree979d5c6257fe181758030d4a9d52a257c328cf9a
parent983942a5eacae8821882a3d348618b020098e8dc
unix/caif: sk_socket can disappear when state is unlocked

got a rare NULL pointer dereference in clear_bit

Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
----
v2: switch to sock_flag(sk, SOCK_DEAD) and added net/caif/caif_socket.c
v3: return -ECONNRESET in upstream caller of wait function for SOCK_DEAD
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_socket.c
net/unix/af_unix.c