android_kernel_cmhtcleo/net
Jan Engelhardt 895493dad6 netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values
commit 9ef0298a8e5730d9a46d640014c727f3b4152870 upstream.

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 <miguel.filho@gmail.com>,
  via irc.freenode.net/#netfilter
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-03-23 01:43:17 +08:00
..
9p Add EVOs source as default 2010-08-27 11:19:57 +02:00
802 Add EVOs source as default 2010-08-27 11:19:57 +02:00
8021q Add EVOs source as default 2010-08-27 11:19:57 +02:00
appletalk Add EVOs source as default 2010-08-27 11:19:57 +02:00
atm Add EVOs source as default 2010-08-27 11:19:57 +02:00
ax25 Add EVOs source as default 2010-08-27 11:19:57 +02:00
bluetooth Add EVOs source as default 2010-08-27 11:19:57 +02:00
bridge Add EVOs source as default 2010-08-27 11:19:57 +02:00
can Add EVOs source as default 2010-08-27 11:19:57 +02:00
core Add EVOs source as default 2010-08-27 11:19:57 +02:00
dcb Add EVOs source as default 2010-08-27 11:19:57 +02:00
dccp Add EVOs source as default 2010-08-27 11:19:57 +02:00
decnet Add EVOs source as default 2010-08-27 11:19:57 +02:00
dsa Add EVOs source as default 2010-08-27 11:19:57 +02:00
econet Add EVOs source as default 2010-08-27 11:19:57 +02:00
ethernet wifi: updated WiFi driver to AOSP version to support WiFi with EAP authentication on Gingerbread. 2011-02-23 19:15:59 +08:00
ieee802154 Add EVOs source as default 2010-08-27 11:19:57 +02:00
ipv4 wifi: updated WiFi driver to AOSP version to support WiFi with EAP authentication on Gingerbread. 2011-02-23 19:15:59 +08:00
ipv6 Add EVOs source as default 2010-08-27 11:19:57 +02:00
ipx Add EVOs source as default 2010-08-27 11:19:57 +02:00
irda Add EVOs source as default 2010-08-27 11:19:57 +02:00
iucv Add EVOs source as default 2010-08-27 11:19:57 +02:00
key Add EVOs source as default 2010-08-27 11:19:57 +02:00
lapb Add EVOs source as default 2010-08-27 11:19:57 +02:00
llc Add EVOs source as default 2010-08-27 11:19:57 +02:00
mac80211 Add EVOs source as default 2010-08-27 11:19:57 +02:00
netfilter netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values 2011-03-23 01:43:17 +08:00
netlabel Add EVOs source as default 2010-08-27 11:19:57 +02:00
netlink Add EVOs source as default 2010-08-27 11:19:57 +02:00
netrom Add EVOs source as default 2010-08-27 11:19:57 +02:00
packet Add EVOs source as default 2010-08-27 11:19:57 +02:00
phonet Add EVOs source as default 2010-08-27 11:19:57 +02:00
rds Add EVOs source as default 2010-08-27 11:19:57 +02:00
rfkill Add EVOs source as default 2010-08-27 11:19:57 +02:00
rose Add EVOs source as default 2010-08-27 11:19:57 +02:00
rxrpc Add EVOs source as default 2010-08-27 11:19:57 +02:00
sched Add EVOs source as default 2010-08-27 11:19:57 +02:00
sctp Add EVOs source as default 2010-08-27 11:19:57 +02:00
sunrpc Add EVOs source as default 2010-08-27 11:19:57 +02:00
tipc Add EVOs source as default 2010-08-27 11:19:57 +02:00
unix Add EVOs source as default 2010-08-27 11:19:57 +02:00
wanrouter Add EVOs source as default 2010-08-27 11:19:57 +02:00
wimax Add EVOs source as default 2010-08-27 11:19:57 +02:00
wireless Add EVOs source as default 2010-08-27 11:19:57 +02:00
x25 Add EVOs source as default 2010-08-27 11:19:57 +02:00
xfrm Add EVOs source as default 2010-08-27 11:19:57 +02:00
compat.c Add EVOs source as default 2010-08-27 11:19:57 +02:00
Kconfig Add EVOs source as default 2010-08-27 11:19:57 +02:00
Makefile Add EVOs source as default 2010-08-27 11:19:57 +02:00
nonet.c Add EVOs source as default 2010-08-27 11:19:57 +02:00
socket.c Add EVOs source as default 2010-08-27 11:19:57 +02:00
sysctl_net.c Add EVOs source as default 2010-08-27 11:19:57 +02:00
TUNABLE Add EVOs source as default 2010-08-27 11:19:57 +02:00