diff options
author | Eric Dumazet <edumazet@google.com> | 2015-11-05 13:39:24 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-05 16:45:51 -0500 |
commit | 212cd0895330b775f2db49451f046a5ca4e5704b (patch) | |
tree | c4f9be4c046587df4fad72299a5888096153f4c9 /firmware/whiteheat_loader.HEX | |
parent | 432599d7a7062ad7e37e72601607dc35596afe40 (diff) | |
download | linux-stable-212cd0895330b775f2db49451f046a5ca4e5704b.tar.gz linux-stable-212cd0895330b775f2db49451f046a5ca4e5704b.tar.bz2 linux-stable-212cd0895330b775f2db49451f046a5ca4e5704b.zip |
selinux: fix random read in selinux_ip_postroute_compat()
In commit e446f9dfe17b ("net: synack packets can be attached to request
sockets"), I missed one remaining case of invalid skb->sk->sk_security
access.
Dmitry Vyukov got a KASan report pointing to it.
Add selinux_skb_sk() helper that is responsible to get back to the
listener if skb is attached to a request socket, instead of
duplicating the logic.
Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware/whiteheat_loader.HEX')
0 files changed, 0 insertions, 0 deletions