Re: [PATCH] cls_cgroup: get sk_classid only from full sockets

From: David Miller
Date: Tue Apr 19 2016 - 20:09:47 EST


From: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2016 14:37:10 +0300

> skb->sk could point to timewait or request socket which has no sk_classid.
> Detected as "BUG: KASAN: slab-out-of-bounds in cls_cgroup_classify".
>
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxxxxxx>

Applied, thank you.