[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150309.234520.322134640639140174.davem@davemloft.net>
Date: Mon, 09 Mar 2015 23:45:20 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org, jhs@...atatu.com, john.fastabend@...il.com
Subject: Re: [Patch net] net_sched: fix struct tc_u_hnode layout in u32
From: Cong Wang <xiyou.wangcong@...il.com>
Date: Mon, 9 Mar 2015 17:03:40 -0700
> We dynamically allocate divisor+1 entries for ->ht[] in tc_u_hnode:
>
> ht = kzalloc(sizeof(*ht) + divisor*sizeof(void *), GFP_KERNEL);
>
> So ->ht is supposed to be the last field of this struct, however
> this is broken, since an rcu head is appended after it.
>
> Fixes: 1ce87720d456 ("net: sched: make cls_u32 lockless")
> Cc: Jamal Hadi Salim <jhs@...atatu.com>
> Cc: John Fastabend <john.fastabend@...il.com>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists