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

2016-04-19 Thread David Miller
From: Konstantin Khlebnikov 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 Applied, thank you.

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

2016-04-18 Thread Eric Dumazet
On Mon, 2016-04-18 at 14:37 +0300, Konstantin Khlebnikov wrote: > 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 > --- Acked-by: Eric Dumazet Thanks !

[PATCH] cls_cgroup: get sk_classid only from full sockets

2016-04-18 Thread Konstantin Khlebnikov
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 --- include/net/cls_cgroup.h |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/