Eric Dumazet
2e80015330
netfilter: nf_queue: augment nfqa_cfg_policy
commit ba062ebb2c upstream.
Three attributes are currently not verified, thus can trigger KMSAN
warnings such as :
BUG: KMSAN: uninit-value in __arch_swab32 arch/x86/include/uapi/asm/swab.h:10 [inline]
BUG: KMSAN: uninit-value in __fswab32 include/uapi/linux/swab.h:59 [inline]
BUG: KMSAN: uninit-value in nfqnl_recv_config+0x939/0x17d0 net/netfilter/nfnetlink_queue.c:1268
CPU: 1 PID: 4521 Comm: syz-executor120 Not tainted 4.17.0+ #5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x185/0x1d0 lib/dump_stack.c:113
kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:1117
__msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620
__arch_swab32 arch/x86/include/uapi/asm/swab.h:10 [inline]
__fswab32 include/uapi/linux/swab.h:59 [inline]
nfqnl_recv_config+0x939/0x17d0 net/netfilter/nfnetlink_queue.c:1268
nfnetlink_rcv_msg+0xb2e/0xc80 net/netfilter/nfnetlink.c:212
netlink_rcv_skb+0x37e/0x600 net/netlink/af_netlink.c:2448
nfnetlink_rcv+0x2fe/0x680 net/netfilter/nfnetlink.c:513
netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
netlink_unicast+0x1680/0x1750 net/netlink/af_netlink.c:1336
netlink_sendmsg+0x104f/0x1350 net/netlink/af_netlink.c:1901
sock_sendmsg_nosec net/socket.c:629 [inline]
sock_sendmsg net/socket.c:639 [inline]
___sys_sendmsg+0xec8/0x1320 net/socket.c:2117
__sys_sendmsg net/socket.c:2155 [inline]
__do_sys_sendmsg net/socket.c:2164 [inline]
__se_sys_sendmsg net/socket.c:2162 [inline]
__x64_sys_sendmsg+0x331/0x460 net/socket.c:2162
do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x43fd59
RSP: 002b:00007ffde0e30d28 EFLAGS: 00000213 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fd59
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000213 R12: 0000000000401680
R13: 0000000000401710 R14: 0000000000000000 R15: 0000000000000000
Uninit was created at:
kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline]
kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:189
kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:315
kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan.c:322
slab_post_alloc_hook mm/slab.h:446 [inline]
slab_alloc_node mm/slub.c:2753 [inline]
__kmalloc_node_track_caller+0xb35/0x11b0 mm/slub.c:4395
__kmalloc_reserve net/core/skbuff.c:138 [inline]
__alloc_skb+0x2cb/0x9e0 net/core/skbuff.c:206
alloc_skb include/linux/skbuff.h:988 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1182 [inline]
netlink_sendmsg+0x76e/0x1350 net/netlink/af_netlink.c:1876
sock_sendmsg_nosec net/socket.c:629 [inline]
sock_sendmsg net/socket.c:639 [inline]
___sys_sendmsg+0xec8/0x1320 net/socket.c:2117
__sys_sendmsg net/socket.c:2155 [inline]
__do_sys_sendmsg net/socket.c:2164 [inline]
__se_sys_sendmsg net/socket.c:2162 [inline]
__x64_sys_sendmsg+0x331/0x460 net/socket.c:2162
do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Fixes: fdb694a01f ("netfilter: Add fail-open support")
Fixes: 829e17a1a6 ("[NETFILTER]: nfnetlink_queue: allow changing queue length through netlink")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-17 11:31:46 +02:00
..
2015-11-07 11:28:49 +01:00
2018-07-03 11:21:24 +02:00
2015-10-24 06:54:12 -07:00
2015-11-10 23:46:57 +01:00
2015-10-04 21:45:44 +02:00
2015-03-18 10:51:35 +01:00
2015-02-22 15:59:54 -05:00
2011-01-18 18:12:24 +01:00
2018-01-31 12:06:10 +01:00
2017-10-08 10:14:19 +02:00
2018-01-31 12:06:10 +01:00
2017-08-24 17:02:34 -07:00
2014-10-14 02:18:24 +02:00
2011-04-04 15:21:02 +02:00
2015-05-25 13:25:33 -04:00
2008-01-31 19:28:07 -08:00
2014-10-30 17:35:30 +01:00
2013-04-18 20:27:55 +02:00
2014-11-05 14:10:33 -05:00
2015-08-27 11:40:43 -07:00
2011-01-18 18:12:24 +01:00
2018-04-13 19:50:10 +02:00
2015-08-11 12:29:01 +02:00
2015-09-18 22:00:04 +02:00
2015-09-18 22:00:04 +02:00
2015-09-18 22:00:04 +02:00
2015-09-18 22:00:04 +02:00
2015-09-18 22:00:04 +02:00
2015-09-18 22:00:04 +02:00
2015-09-18 22:00:04 +02:00
2014-01-03 23:41:37 +01:00
2013-02-19 02:48:05 +01:00
2015-08-17 21:33:06 -07:00
2018-01-31 12:06:10 +01:00
2013-01-18 00:28:18 +01:00
2015-08-18 01:22:50 +02:00
2013-04-18 20:27:55 +02:00
2013-01-23 12:56:02 +01:00
2013-12-20 14:58:29 +01:00
2015-07-23 16:17:58 +02:00
2015-04-08 16:49:08 +02:00
2018-07-11 16:03:51 +02:00
2013-04-18 20:27:55 +02:00
2017-10-08 10:14:19 +02:00
2013-02-19 02:48:05 +01:00
2013-08-28 00:26:48 +02:00
2014-01-06 14:17:17 +01:00
2018-03-18 11:17:51 +01:00
2015-08-17 21:33:06 -07:00
2014-06-30 11:38:03 +02:00
2015-08-17 21:33:06 -07:00
2015-08-17 21:33:06 -07:00
2015-08-17 21:33:06 -07:00
2012-08-30 03:00:14 +02:00
2015-10-27 06:54:56 +01:00
2014-10-14 02:18:24 +02:00
2013-02-19 02:48:05 +01:00
2018-02-16 20:09:40 +01:00
2014-08-08 16:47:23 +02:00
2015-09-05 21:57:42 -07:00
2017-11-30 08:37:27 +00:00
2018-07-11 16:03:47 +02:00
2014-01-09 23:25:48 +01:00
2015-12-18 14:45:45 +01:00
2015-08-07 11:50:56 +02:00
2018-01-31 12:06:11 +01:00
2017-10-08 10:14:19 +02:00
2015-11-10 23:46:36 +01:00
2018-07-17 11:31:46 +02:00
2017-04-30 05:49:28 +02:00
2015-04-13 17:17:30 +02:00
2015-04-13 17:17:29 +02:00
2015-04-13 17:17:30 +02:00
2015-09-14 18:10:57 +02:00
2015-11-10 23:47:32 +01:00
2015-12-18 14:45:45 +01:00
2016-11-26 09:54:54 +01:00
2015-04-13 17:17:29 +02:00
2015-04-13 17:17:31 +02:00
2015-04-13 17:17:30 +02:00
2015-08-07 11:50:50 +02:00
2015-09-18 21:58:49 +02:00
2015-04-13 20:12:32 +02:00
2015-01-19 14:52:39 +01:00
2017-11-15 17:13:10 +01:00
2015-04-13 17:17:29 +02:00
2015-08-19 08:39:53 +02:00
2017-11-30 08:37:27 +00:00
2015-04-13 17:17:31 +02:00
2015-04-13 17:17:28 +02:00
2015-09-29 20:21:31 +02:00
2015-04-27 13:20:34 -04:00
2018-04-08 11:51:59 +02:00
2015-09-18 21:58:25 +02:00
2014-03-13 14:13:19 +01:00
2014-08-02 15:03:58 -07:00
2015-04-01 11:26:42 +02:00
2010-07-15 17:20:46 +02:00
2010-11-15 13:57:56 +01:00
2014-08-23 12:21:21 -07:00
2010-05-11 18:33:37 +02:00
2014-09-10 12:40:10 -07:00
2015-08-27 11:40:43 -07:00
2015-09-18 22:00:04 +02:00
2013-12-06 12:37:57 -05:00
2010-05-11 18:31:17 +02:00
2013-04-18 20:27:55 +02:00
2011-01-18 06:33:54 +01:00
2018-03-24 10:58:43 +01:00
2010-05-11 18:35:27 +02:00
2011-02-03 00:05:43 +01:00
2010-05-11 18:33:37 +02:00
2014-11-13 12:14:42 +01:00
2011-12-27 20:45:25 +01:00
2010-05-11 18:35:27 +02:00
2018-04-08 11:51:59 +02:00
2010-05-11 18:33:37 +02:00
2011-07-01 16:11:15 -07:00
2011-07-01 16:11:15 -07:00
2014-08-23 12:21:21 -07:00
2018-03-18 11:17:51 +01:00
2014-02-19 11:41:25 +01:00
2011-02-04 14:28:58 -08:00
2015-09-24 09:34:41 +09:00
2014-01-09 21:36:39 +01:00
2018-03-18 11:17:51 +01:00
2010-05-11 18:33:37 +02:00
2013-04-18 20:27:55 +02:00
2015-09-18 21:58:25 +02:00
2012-05-09 20:49:18 -04:00
2015-05-14 13:00:27 +02:00
2010-05-11 18:35:27 +02:00
2012-10-15 13:39:12 +02:00
2012-09-21 12:11:08 +02:00
2015-08-07 11:50:56 +02:00
2015-09-18 21:58:25 +02:00
2013-12-07 23:20:45 +01:00
2018-01-31 12:06:11 +01:00
2015-11-08 20:56:39 -05:00
2015-04-08 16:49:09 +02:00
2010-05-11 18:33:37 +02:00
2010-05-11 18:33:37 +02:00
2011-10-31 19:30:28 -04:00
2013-06-11 02:51:03 -07:00
2018-02-25 11:03:37 +01:00
2010-05-11 18:33:37 +02:00
2018-04-08 11:51:59 +02:00
2014-11-27 13:08:42 +01:00
2014-06-07 11:44:39 -07:00
2010-06-09 14:47:40 +02:00
2010-10-21 10:12:48 +11:00
2015-06-14 10:40:18 +02:00
2015-09-18 21:58:25 +02:00
2010-06-08 16:09:52 +02:00
2014-01-14 15:15:25 -08:00
2015-02-22 15:59:54 -05:00
2010-05-11 18:35:27 +02:00
2017-07-05 14:37:15 +02:00
2015-08-17 21:33:06 -07:00
2010-05-11 18:35:27 +02:00
2015-11-04 20:47:50 -05:00
2012-09-24 14:29:01 +02:00
2015-09-18 21:58:25 +02:00
2010-05-11 18:31:17 +02:00
2010-05-11 18:33:37 +02:00