Florian Westphal
b9f052dc68
netfilter: nf_tables: fix false-positive lockdep splat
...
->abort invocation may cause splat on debug kernels:
WARNING: suspicious RCU usage
net/netfilter/nft_set_pipapo.c:1697 suspicious rcu_dereference_check() usage!
[..]
rcu_scheduler_active = 2, debug_locks = 1
1 lock held by nft/133554: [..] (nft_net->commit_mutex){+.+.}-{3:3}, at: nf_tables_valid_genid
[..]
lockdep_rcu_suspicious+0x1ad/0x260
nft_pipapo_abort+0x145/0x180
__nf_tables_abort+0x5359/0x63d0
nf_tables_abort+0x24/0x40
nfnetlink_rcv+0x1a0a/0x22c0
netlink_unicast+0x73c/0x900
netlink_sendmsg+0x7f0/0xc20
____sys_sendmsg+0x48d/0x760
Transaction mutex is held, so parallel updates are not possible.
Switch to _protected and check mutex is held for lockdep enabled builds.
Fixes: 212ed75dc5fb ("netfilter: nf_tables: integrate pipapo into commit protocol")
Signed-off-by: Florian Westphal <fw@strlen.de>
2023-08-16 00:05:14 +02:00
..
2023-07-20 19:14:50 +00:00
2023-08-14 08:14:00 +01:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-05-26 23:14:49 +02:00
2023-07-20 11:27:22 -07:00
2023-05-16 22:09:24 -07:00
2023-05-31 13:06:57 +02:00
2023-07-20 10:46:28 +02:00
2023-06-24 15:50:13 -07:00
2023-07-29 18:13:41 +01:00
2023-08-02 09:07:34 +02:00
2023-08-10 10:41:36 -07:00
2023-08-01 21:07:46 -07:00
2023-08-04 18:27:58 -07:00
2023-06-17 00:31:14 -07:00
2023-07-27 17:19:46 -07:00
2023-06-15 08:21:11 +01:00
2023-06-15 22:19:41 -07:00
2023-06-21 16:47:05 -07:00
2023-06-24 15:50:13 -07:00
2023-08-15 20:24:04 +01:00
2023-08-09 15:36:12 -07:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-07-29 18:13:41 +01:00
2023-07-20 10:46:28 +02:00
2023-07-03 11:26:05 -07:00
2023-06-24 15:41:46 -07:00
2023-06-24 15:50:13 -07:00
2023-06-10 00:11:41 -07:00
2023-08-04 18:26:27 -07:00
2023-06-09 10:32:51 +01:00
2023-08-16 00:05:14 +02:00
2023-06-20 20:06:56 -07:00
2023-06-27 09:45:22 -07:00
2023-06-24 15:50:13 -07:00
2023-06-27 09:45:22 -07:00
2023-06-10 00:11:41 -07:00
2023-06-12 09:46:30 +01:00
2023-08-04 18:03:16 -07:00
2023-06-24 15:50:13 -07:00
2023-06-28 16:43:10 -07:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-06-28 16:43:10 -07:00
2023-07-31 20:10:37 -07:00
2023-06-29 11:49:42 +02:00
2023-08-09 11:20:29 +01:00
2023-07-01 14:38:25 -07:00
2023-07-27 11:45:05 +02:00
2023-08-10 11:36:57 -07:00
2023-07-29 18:13:41 +01:00
2023-06-24 15:50:13 -07:00
2023-08-09 14:43:35 +02:00
2023-06-24 15:50:13 -07:00
2023-08-09 20:08:04 -07:00
2023-07-29 18:13:41 +01:00
2023-04-14 11:09:27 +01:00
2023-05-26 08:51:26 +01:00
2023-04-19 18:48:48 -07:00
2023-06-28 16:43:10 -07:00