Skip to content

Commit 593268d

Browse files
Phil Sutterummakynes
authored andcommitted
netfilter: nf_log_syslog: Unset bridge logger in pernet exit
Without this, a stale pointer remains in pernet loggers after module unload causing a kernel oops during dereference. Easily reproduced by: | # modprobe nf_log_syslog | # rmmod nf_log_syslog | # cat /proc/net/netfilter/nf_log Fixes: 77ccee9 ("netfilter: nf_log_bridge: merge with nf_log_syslog") Signed-off-by: Phil Sutter <[email protected]> Acked-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent f7163c4 commit 593268d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netfilter/nf_log_syslog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,7 @@ static void __net_exit nf_log_syslog_net_exit(struct net *net)
10111011
nf_log_unset(net, &nf_arp_logger);
10121012
nf_log_unset(net, &nf_ip6_logger);
10131013
nf_log_unset(net, &nf_netdev_logger);
1014+
nf_log_unset(net, &nf_bridge_logger);
10141015
}
10151016

10161017
static struct pernet_operations nf_log_syslog_net_ops = {

0 commit comments

Comments
 (0)