Thread (3 messages) flat view 3 messages, 3 authors, 2015-03-10

Re: [Patch net] net_sched: fix struct tc_u_hnode layout in u32

From: David Miller <davem@davemloft.net>
Date: 2015-03-10 03:45:22

From: Cong Wang <redacted>
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@mojatatu.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Cong Wang <redacted>
Applied and queued up for -stable, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help