android_kernel_google_msm/net
Pablo Neira Ayuso 1cde64365b [NETFILTER]: ctnetlink: Fix expectaction mask dumping
The expectation mask has some particularities that requires a different
handling. The protocol number fields can be set to non-valid protocols,
ie. l3num is set to 0xFFFF. Since that protocol does not exist, the mask
tuple will not be dumped. Moreover, this results in a kernel panic when
nf_conntrack accesses the array of protocol handlers, that is PF_MAX (0x1F)
long.

This patch introduces the function ctnetlink_exp_dump_mask, that correctly
dumps the expectation mask. Such function uses the l3num value from the
expectation tuple that is a valid layer 3 protocol number. The value of the
l3num mask isn't dumped since it is meaningless from the userspace side.

Thanks to Yasuyuki Kozakai and Patrick McHardy for the feedback.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-22 13:54:15 -08:00
..
802 [SNAP]: Remove leftover unused hdr variable 2006-03-20 22:45:37 -08:00
8021q [NET]: Replace skb_pull/skb_postpull_rcsum with skb_pull_rcsum 2006-03-20 22:43:56 -08:00
appletalk
atm
ax25
bluetooth [BLUETOOTH]: Return negative error constant 2006-03-21 23:53:16 -08:00
bridge [BRIDGE]: Remove duplicate const from is_link_local() argument type. 2006-03-20 23:00:56 -08:00
core [NET]: Identation & other cleanups related to compat_[gs]etsockopt cset 2006-03-20 22:48:35 -08:00
dccp [DCCP] feat: Pass dccp_minisock ptr where only the minisock is used 2006-03-20 22:51:53 -08:00
decnet [DECNET]: net/decnet/dn_route.c: fix inconsequent NULL checking 2006-03-20 23:00:29 -08:00
econet
ethernet
ieee80211
ipv4 [NETFILTER]: ctnetlink: Fix expectaction mask dumping 2006-03-22 13:54:15 -08:00
ipv6 [NETFILTER]: Fix ip6tables breakage from {get,set}sockopt compat layer 2006-03-22 13:53:20 -08:00
ipx
irda
key
lapb
llc [LLC]: llc_mac_hdr_init const arguments 2006-03-20 22:59:36 -08:00
netfilter [NETFILTER]: ctnetlink: Fix expectaction mask dumping 2006-03-22 13:54:15 -08:00
netlink
netrom
packet
rose
rxrpc
sched [PKT_SCHED]: Let NET_CLS_ACT no longer depend on EXPERIMENTAL 2006-03-20 22:44:24 -08:00
sctp [NET]: Identation & other cleanups related to compat_[gs]etsockopt cset 2006-03-20 22:48:35 -08:00
sunrpc
tipc [TIPC]: Avoid compiler warning 2006-03-20 22:38:33 -08:00
unix
wanrouter
x25 [X25]: dte facilities 32 64 ioctl conversion 2006-03-22 00:02:00 -08:00
xfrm [XFRM]: Fix aevent related crash 2006-03-20 22:40:54 -08:00
compat.c [NET]: socket timestamp 32 bit handler for 64 bit kernel 2006-03-21 23:59:39 -08:00
Kconfig
Makefile
nonet.c
socket.c [NET]: allow 32 bit socket ioctl in 64 bit kernel 2006-03-21 23:58:08 -08:00
sysctl_net.c
TUNABLE