From: Eric Dumazet
Date: Sat, 5 May 2018 08:35:04 -0700
> syzbot reported a use-after-free in tls_sk_proto_close
>
> Add a boolean value to cleanup a bit this function.
...
> Fixes: dd0bed1665d6 ("tls: support for Inline tls record")
> Signed-off-by: Eric Dumazet
> Cc: Atul Gupta
> Cc: Steve
syzbot reported a use-after-free in tls_sk_proto_close
Add a boolean value to cleanup a bit this function.
BUG: KASAN: use-after-free in tls_sk_proto_close+0x8ab/0x9c0
net/tls/tls_main.c:297
Read of size 1 at addr 8801ae40a858 by task syz-executor363/4503
CPU: 0 PID: 4503 Comm: syz-executor