netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] netfilter: netfilter update
@ 2011-02-09 14:33 kaber
  2011-02-09 14:33 ` [PATCH 1/2] IPVS: Use correct lock in SCTP module kaber
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kaber @ 2011-02-09 14:33 UTC (permalink / raw)
  To: davem; +Cc: netfilter-devel, netdev

Hi Dave,

following are two IPVS patches for net-next-2.6, fixing:

- use of an incorrect lock in the SCTP module, from Simon

- a precedence bug in ip_vs_sync_switch_mode(), from Dan Carpenter

Please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6.git master

Thanks!

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

* [PATCH 1/2] IPVS: Use correct lock in SCTP module
  2011-02-09 14:33 [PATCH 0/2] netfilter: netfilter update kaber
@ 2011-02-09 14:33 ` kaber
  2011-02-09 14:33 ` [PATCH 2/2] IPVS: precedence bug in ip_vs_sync_switch_mode() kaber
  2011-02-09 20:39 ` [PATCH 0/2] netfilter: netfilter update David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: kaber @ 2011-02-09 14:33 UTC (permalink / raw)
  To: davem; +Cc: netfilter-devel, netdev

From: Simon Horman <horms@verge.net.au>

Use sctp_app_lock instead of tcp_app_lock in the SCTP protocol module.

This appears to be a typo introduced by the netns changes.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
---
 net/netfilter/ipvs/ip_vs_proto_sctp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_proto_sctp.c b/net/netfilter/ipvs/ip_vs_proto_sctp.c
index fb2d04a..b027ccc 100644
--- a/net/netfilter/ipvs/ip_vs_proto_sctp.c
+++ b/net/netfilter/ipvs/ip_vs_proto_sctp.c
@@ -1101,7 +1101,7 @@ static void __ip_vs_sctp_init(struct net *net, struct ip_vs_proto_data *pd)
 	struct netns_ipvs *ipvs = net_ipvs(net);
 
 	ip_vs_init_hash_table(ipvs->sctp_apps, SCTP_APP_TAB_SIZE);
-	spin_lock_init(&ipvs->tcp_app_lock);
+	spin_lock_init(&ipvs->sctp_app_lock);
 	pd->timeout_table = ip_vs_create_timeout_table((int *)sctp_timeouts,
 							sizeof(sctp_timeouts));
 }
-- 
1.7.2.3


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

* [PATCH 2/2] IPVS: precedence bug in ip_vs_sync_switch_mode()
  2011-02-09 14:33 [PATCH 0/2] netfilter: netfilter update kaber
  2011-02-09 14:33 ` [PATCH 1/2] IPVS: Use correct lock in SCTP module kaber
@ 2011-02-09 14:33 ` kaber
  2011-02-09 20:39 ` [PATCH 0/2] netfilter: netfilter update David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: kaber @ 2011-02-09 14:33 UTC (permalink / raw)
  To: davem; +Cc: netfilter-devel, netdev

From: Dan Carpenter <error27@gmail.com>

'!' has higher precedence than '&'.  IP_VS_STATE_MASTER is 0x1 so
the original code is equivelent to if (!ipvs->sync_state) ...

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
 net/netfilter/ipvs/ip_vs_sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index 2a2a836..d1b7298 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -392,7 +392,7 @@ void ip_vs_sync_switch_mode(struct net *net, int mode)
 {
 	struct netns_ipvs *ipvs = net_ipvs(net);
 
-	if (!ipvs->sync_state & IP_VS_STATE_MASTER)
+	if (!(ipvs->sync_state & IP_VS_STATE_MASTER))
 		return;
 	if (mode == ipvs->sysctl_sync_ver || !ipvs->sync_buff)
 		return;
-- 
1.7.2.3


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

* Re: [PATCH 0/2] netfilter: netfilter update
  2011-02-09 14:33 [PATCH 0/2] netfilter: netfilter update kaber
  2011-02-09 14:33 ` [PATCH 1/2] IPVS: Use correct lock in SCTP module kaber
  2011-02-09 14:33 ` [PATCH 2/2] IPVS: precedence bug in ip_vs_sync_switch_mode() kaber
@ 2011-02-09 20:39 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-02-09 20:39 UTC (permalink / raw)
  To: kaber; +Cc: netfilter-devel, netdev

From: kaber@trash.net
Date: Wed,  9 Feb 2011 15:33:45 +0100

> following are two IPVS patches for net-next-2.6, fixing:
> 
> - use of an incorrect lock in the SCTP module, from Simon
> 
> - a precedence bug in ip_vs_sync_switch_mode(), from Dan Carpenter
> 
> Please pull from:
> 
> git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6.git master

Pulled, thanks Patrick.

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

end of thread, other threads:[~2011-02-09 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09 14:33 [PATCH 0/2] netfilter: netfilter update kaber
2011-02-09 14:33 ` [PATCH 1/2] IPVS: Use correct lock in SCTP module kaber
2011-02-09 14:33 ` [PATCH 2/2] IPVS: precedence bug in ip_vs_sync_switch_mode() kaber
2011-02-09 20:39 ` [PATCH 0/2] netfilter: netfilter update David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).