Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 97557b70 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by basamaryan
Browse files

UPSTREAM: net/tls: swap sk_write_space on close



[ Upstream commit 57c722e932cfb82e9820bbaae1b1f7222ea97b52 ]

Now that we swap the original proto and clear the ULP pointer
on close we have to make sure no callback will try to access
the freed state. sk_write_space is not part of sk_prot, remember
to swap it.

Reported-by: default avatar <syzbot+dcdc9deefaec44785f32@syzkaller.appspotmail.com>
Fixes: 95fa145479fb ("bpf: sockmap/tls, close can race with map free")
Change-Id: Ia9cf9b03421ebe3910d415452d8caf700d9ba248
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d3931fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment