If the sock is dead, do not access sock's sk_wq in sk_stream_wait_memory v1->v2: As Jakub's suggested, check sock's DEAD flag before accessing the wait queue. Liu Jian (2): net: If the sock is dead, do not access sock's sk_wq in sk_stream_wait_memory selftests/bpf: Add wait send memory test for sockmap redirect net/core/stream.c | 3 +- tools/testing/selftests/bpf/test_sockmap.c | 42 ++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) -- 2.17.1