netfilter: nf_log_syslog: Unset bridge logger in pernet exit
authorPhil Sutter <phil@nwl.cc>
Wed, 21 Apr 2021 10:34:21 +0000 (12:34 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Apr 2021 01:20:47 +0000 (03:20 +0200)
commit593268ddf3887362ba8b8998cb85433596a3e8f5
tree9cca69bd1b7fef118f6db888bbf2a17d203e33ec
parentf7163c4882e883fabdafb894176994fd2ade33e2
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: 77ccee96a6742 ("netfilter: nf_log_bridge: merge with nf_log_syslog")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_log_syslog.c