netfilter: ipt_ULOG: fix incorrect setting of ulog timer
authorGao feng <gaofeng@cn.fujitsu.com>
Mon, 24 Jun 2013 09:04:02 +0000 (17:04 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 24 Jun 2013 15:10:44 +0000 (17:10 +0200)
commitc8fc51cfa758be945c6113a4b446e0159070f768
tree7fe9bb354958c4453a7fa03dcbe5ffe9b4696594
parent797a7d66d2048fe8a4ac1ba58c5d4752d64b1ac4
netfilter: ipt_ULOG: fix incorrect setting of ulog timer

The parameter of setup_timer should be &ulog->nlgroup[i].
the incorrect parameter will cause kernel panic in
ulog_timer.

Bug introducted in commit 355430671ad93546b34b4e91bdf720f3a704efa4
"netfilter: ipt_ULOG: add net namespace support for ipt_ULOG"

ebt_ULOG doesn't have this problem.

[ I have mangled this patch to fix nlgroup != 0 case, we were
  also crashing there --pablo ]

Tested-by: George Spelvin <linux@horizon.com>
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/ipt_ULOG.c