Pablo Neira Ayuso
a2f18db0c6
netfilter: nf_tables: fix flush ruleset chain dependencies
...
Jumping between chains doesn't mix well with flush ruleset. Rules
from a different chain and set elements may still refer to us.
[ 353.373791] ------------[ cut here ]------------
[ 353.373845] kernel BUG at net/netfilter/nf_tables_api.c:1159!
[ 353.373896] invalid opcode: 0000 [#1 ] SMP
[ 353.373942] Modules linked in: intel_powerclamp uas iwldvm iwlwifi
[ 353.374017] CPU: 0 PID: 6445 Comm: 31c3.nft Not tainted 3.18.0 #98
[ 353.374069] Hardware name: LENOVO 5129CTO/5129CTO, BIOS 6QET47WW (1.17 ) 07/14/2010
[...]
[ 353.375018] Call Trace:
[ 353.375046] [<ffffffff81964c31>] ? nf_tables_commit+0x381/0x540
[ 353.375101] [<ffffffff81949118>] nfnetlink_rcv+0x3d8/0x4b0
[ 353.375150] [<ffffffff81943fc5>] netlink_unicast+0x105/0x1a0
[ 353.375200] [<ffffffff8194438e>] netlink_sendmsg+0x32e/0x790
[ 353.375253] [<ffffffff818f398e>] sock_sendmsg+0x8e/0xc0
[ 353.375300] [<ffffffff818f36b9>] ? move_addr_to_kernel.part.20+0x19/0x70
[ 353.375357] [<ffffffff818f44f9>] ? move_addr_to_kernel+0x19/0x30
[ 353.375410] [<ffffffff819016d2>] ? verify_iovec+0x42/0xd0
[ 353.375459] [<ffffffff818f3e10>] ___sys_sendmsg+0x3f0/0x400
[ 353.375510] [<ffffffff810615fa>] ? native_sched_clock+0x2a/0x90
[ 353.375563] [<ffffffff81176697>] ? acct_account_cputime+0x17/0x20
[ 353.375616] [<ffffffff8110dc78>] ? account_user_time+0x88/0xa0
[ 353.375667] [<ffffffff818f4bbd>] __sys_sendmsg+0x3d/0x80
[ 353.375719] [<ffffffff81b184f4>] ? int_check_syscall_exit_work+0x34/0x3d
[ 353.375776] [<ffffffff818f4c0d>] SyS_sendmsg+0xd/0x20
[ 353.375823] [<ffffffff81b1826d>] system_call_fastpath+0x16/0x1b
Release objects in this order: rules -> sets -> chains -> tables, to
make sure no references to chains are held anymore.
Reported-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.biz >
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org >
2015-01-06 22:27:48 +01:00
..
2014-12-05 12:43:04 +01:00
2014-10-15 10:25:04 +10:30
2014-07-15 16:12:48 -07:00
2014-12-12 10:58:53 -05:00
2014-11-24 04:28:48 -05:00
2014-12-09 16:29:03 -05:00
2014-11-24 04:28:48 -05:00
2014-10-14 02:18:24 +02:00
2014-12-15 13:23:09 -05:00
2014-12-05 20:56:46 -08:00
2014-12-09 16:29:03 -05:00
2014-12-07 21:22:05 +01:00
2014-11-13 22:26:34 +03:00
2014-12-16 15:41:19 -05:00
2014-11-16 14:50:52 -05:00
2014-12-10 22:41:55 -05:00
2014-11-24 04:28:51 -05:00
2014-10-01 00:44:04 +10:00
2014-12-14 16:10:09 -08:00
2014-09-05 17:47:02 -07:00
2014-07-11 15:04:40 -07:00
2014-12-09 18:12:03 -05:00
2014-12-23 15:34:28 +01:00
2014-12-23 15:34:28 +01:00
2014-11-24 04:28:49 -05:00
2014-12-10 15:33:16 -05:00
2014-12-10 22:41:55 -05:00
2014-11-24 04:28:48 -05:00
2014-12-09 16:28:22 -05:00
2014-10-24 15:51:42 -04:00
2014-12-10 15:21:24 -05:00
2014-12-08 13:58:58 -05:00
2014-12-05 14:18:42 +01:00
2014-11-05 23:52:33 -08:00
2015-01-06 22:27:48 +01:00
2014-10-09 01:40:05 -04:00
2014-12-18 12:35:55 -05:00
2014-11-24 04:28:48 -05:00
2014-12-09 18:12:03 -05:00
2014-12-10 15:48:20 -05:00
2014-12-11 14:27:06 -08:00
2014-11-24 04:28:48 -05:00
2014-12-15 11:49:09 -05:00
2014-12-14 16:10:09 -08:00
2014-11-24 04:28:48 -05:00
2014-12-10 22:41:55 -05:00
2014-12-10 15:48:20 -05:00
2014-12-10 22:41:55 -05:00
2014-12-10 15:13:13 -08:00
2014-12-02 20:01:22 -08:00
2014-12-10 14:45:33 -05:00
2014-12-09 16:29:03 -05:00
2014-12-09 16:29:03 -05:00
2014-10-07 20:28:44 -04:00
2014-11-28 14:54:31 +01:00
2014-11-24 04:28:48 -05:00
2014-12-08 21:30:21 -05:00
2014-12-09 16:29:03 -05:00
2014-12-02 20:01:20 -08:00
2014-12-02 20:01:20 -08:00
2014-12-09 16:29:03 -05:00