diff options
| author | Pablo Neira Ayuso <[email protected]> | 2024-01-29 10:09:43 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2024-01-31 22:14:13 +0000 |
| commit | 259eb32971e9eb24d1777a28d82730659f50fdcb (patch) | |
| tree | 998bf436191ed6a60d459e70621e508e8ae338be /net/unix/af_unix.c | |
| parent | netfilter: ipset: fix performance regression in swap operation (diff) | |
| download | kernel-259eb32971e9eb24d1777a28d82730659f50fdcb.tar.gz kernel-259eb32971e9eb24d1777a28d82730659f50fdcb.zip | |
netfilter: nf_log: replace BUG_ON by WARN_ON_ONCE when putting logger
Module reference is bumped for each user, this should not ever happen.
But BUG_ON check should use rcu_access_pointer() instead.
If this ever happens, do WARN_ON_ONCE() instead of BUG_ON() and
consolidate pointer check under the rcu read side lock section.
Fixes: fab4085f4e24 ("netfilter: log: nf_log_packet() as real unified interface")
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
