Taehee Yoo
174757e28b
netfilter: nf_tables: increase nft_counters_enabled in nft_chain_stats_replace()
...
commit bbb8c61f97e3a2dd91b30d3e57b7964a67569d11 upstream.
When a chain is updated, a counter can be attached. if so,
the nft_counters_enabled should be increased.
test commands:
%nft add table ip filter
%nft add chain ip filter input { type filter hook input priority 4\; }
%iptables-compat -Z input
%nft delete chain ip filter input
we can see below messages.
[ 286.443720] jump label: negative count!
[ 286.448278] WARNING: CPU: 0 PID: 1459 at kernel/jump_label.c:197 __static_key_slow_dec_cpuslocked+0x6f/0xf0
[ 286.449144] Modules linked in: nf_tables nfnetlink ip_tables x_tables
[ 286.449144] CPU: 0 PID: 1459 Comm: nft Tainted: G W 4.17.0-rc2+ #12
[ 286.449144] RIP: 0010:__static_key_slow_dec_cpuslocked+0x6f/0xf0
[ 286.449144] RSP: 0018:ffff88010e5176f0 EFLAGS: 00010286
[ 286.449144] RAX: 000000000000001b RBX: ffffffffc0179500 RCX: ffffffffb8a82522
[ 286.449144] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff88011b7e5eac
[ 286.449144] RBP: 0000000000000000 R08: ffffed00236fce5c R09: ffffed00236fce5b
[ 286.449144] R10: ffffffffc0179503 R11: ffffed00236fce5c R12: 0000000000000000
[ 286.449144] R13: ffff88011a28e448 R14: ffff88011a28e470 R15: dffffc0000000000
[ 286.449144] FS: 00007f0384328700(0000) GS:ffff88011b600000(0000) knlGS:0000000000000000
[ 286.449144] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 286.449144] CR2: 00007f038394bf10 CR3: 0000000104a86000 CR4: 00000000001006f0
[ 286.449144] Call Trace:
[ 286.449144] static_key_slow_dec+0x6a/0x70
[ 286.449144] nf_tables_chain_destroy+0x19d/0x210 [nf_tables]
[ 286.449144] nf_tables_commit+0x1891/0x1c50 [nf_tables]
[ 286.449144] nfnetlink_rcv+0x1148/0x13d0 [nfnetlink]
[ ... ]
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-08 15:30:49 +02:00
..
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:30 +01:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:52:16 +02:00
2017-11-02 11:10:55 +01:00
2018-05-16 10:10:29 +02:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:52:19 +02:00
2018-04-19 08:56:19 +02:00
2017-05-02 11:46:28 -04:00
2018-05-30 07:52:14 +02:00
2017-11-02 11:10:55 +01:00
2018-01-23 19:58:17 +01:00
2018-05-30 07:52:04 +02:00
2018-06-11 22:49:22 +02:00
2017-08-09 16:57:38 -07:00
2018-06-11 22:49:18 +02:00
2018-02-25 11:07:52 +01:00
2018-04-29 11:33:10 +02:00
2018-06-26 08:06:28 +08:00
2017-06-16 11:48:40 -04:00
2017-08-22 13:40:23 -07:00
2018-03-31 18:10:40 +02:00
2018-04-29 11:33:13 +02:00
2018-06-26 08:06:28 +08:00
2018-06-26 08:06:28 +08:00
2017-11-02 11:10:55 +01:00
2018-03-31 18:10:41 +02:00
2018-06-11 22:49:19 +02:00
2018-06-16 09:45:14 +02:00
2018-05-19 10:20:27 +02:00
2017-07-04 22:35:16 +01:00
2018-05-30 07:52:20 +02:00
2018-06-21 04:02:55 +09:00
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:28 +01:00
2017-10-21 01:56:38 +01:00
2018-07-08 15:30:49 +02:00
2018-05-30 07:52:40 +02:00
2018-05-16 10:10:23 +02:00
2017-07-04 22:35:17 +01:00
2018-05-30 07:51:57 +02:00
2018-05-19 10:20:26 +02:00
2018-05-19 10:20:24 +02:00
2018-06-26 08:06:28 +08:00
2017-11-02 11:10:55 +01:00
2017-11-01 12:19:03 +09:00
2018-05-30 07:52:05 +02:00
2018-06-21 04:02:48 +09:00
2018-05-16 10:10:26 +02:00
2018-06-21 04:02:56 +09:00
2018-06-26 08:06:28 +08:00
2018-06-11 22:49:20 +02:00
2018-06-21 04:02:53 +09:00
2018-04-29 11:33:13 +02:00
2018-07-03 11:24:54 +02:00
2017-08-07 14:48:48 -07:00
2018-06-21 04:02:56 +09:00
2018-06-26 08:06:29 +08:00
2017-11-02 10:04:46 -07:00
2018-02-25 11:07:59 +01:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:51:58 +02:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:52:19 +02:00
2018-05-19 10:20:24 +02:00
2017-09-04 13:25:20 +02:00
2017-11-02 11:10:55 +01:00
2018-06-26 08:06:28 +08:00
2017-04-16 23:42:49 -05:00