All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ip_vs_sh: fix build
@ 2013-05-29 12:33 ` Jan Beulich
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2013-05-29 12:33 UTC (permalink / raw)
  To: wensong, ja, horms; +Cc: pablo, lvs-devel, netdev

kfree_rcu() requires offsetof(..., rcu_head) < 4096, which can get
violated with a sufficiently high CONFIG_IP_VS_SH_TAB_BITS.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

---
 net/netfilter/ipvs/ip_vs_sh.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 3.10-rc3/net/netfilter/ipvs/ip_vs_sh.c
+++ 3.10-rc3-ip_vs_sh-build/net/netfilter/ipvs/ip_vs_sh.c
@@ -67,8 +67,8 @@ struct ip_vs_sh_bucket {
 #define IP_VS_SH_TAB_MASK               (IP_VS_SH_TAB_SIZE - 1)
 
 struct ip_vs_sh_state {
-	struct ip_vs_sh_bucket		buckets[IP_VS_SH_TAB_SIZE];
 	struct rcu_head			rcu_head;
+	struct ip_vs_sh_bucket		buckets[IP_VS_SH_TAB_SIZE];
 };
 
 /*




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-30  6:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 12:33 [PATCH] ip_vs_sh: fix build Jan Beulich
2013-05-29 12:33 ` Jan Beulich
2013-05-29 14:59 ` Simon Horman
2013-05-29 15:51   ` Pablo Neira Ayuso
2013-05-29 19:31 ` Julian Anastasov
2013-05-30  5:48   ` Jan Beulich
2013-05-30  5:48     ` Jan Beulich
2013-05-30  6:42     ` Julian Anastasov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.