Hi Dave,
the following patches fix two IPVS/netfilter bugs:
- incorrect locking in __ip_vs_update_dest(), from Julian
- a potential oops when binding or unbinding an invalid address family
through nfnetlink_log, from Jan
Please apply or pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6.git master
Thanks!
From: Julian Anastasov <ja@ssi.bg>
Fix dst_lock usage in __ip_vs_update_dest. We need
_bh locking because destination is updated in user context.
Can cause lockups on frequent destination updates.
Problem reported by Simon Kirby. Bug was introduced
in 2.6.37 from the "ipvs: changes for local real server"
change.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Hans Schillstrom <redacted>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
net/netfilter/ipvs/ip_vs_ctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
From: Jan Engelhardt <redacted>
Like many other places, we have to check that the array index is
within allowed limits, or otherwise, a kernel oops and other nastiness
can ensue when we access memory beyond the end of the array.
[ 5954.115381] BUG: unable to handle kernel paging request at 0000004000000000
[ 5954.120014] IP: __find_logger+0x6f/0xa0
[ 5954.123979] nf_log_bind_pf+0x2b/0x70
[ 5954.123979] nfulnl_recv_config+0xc0/0x4a0 [nfnetlink_log]
[ 5954.123979] nfnetlink_rcv_msg+0x12c/0x1b0 [nfnetlink]
...
The problem goes back to v2.6.30-rc1~1372~1342~31 where nf_log_bind
was decoupled from nf_log_register.
Reported-by: Miguel Di Ciurcio Filho <redacted>,
via irc.freenode.net/#netfilter
Signed-off-by: Jan Engelhardt <redacted>
Signed-off-by: Patrick McHardy <redacted>
---
net/netfilter/nf_log.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2011-03-02 19:29:41
From: kaber@trash.net
Date: Wed, 2 Mar 2011 12:56:19 +0100
the following patches fix two IPVS/netfilter bugs:
- incorrect locking in __ip_vs_update_dest(), from Julian
- a potential oops when binding or unbinding an invalid address family
through nfnetlink_log, from Jan
Please apply or pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6.git master