================================================================== BUG: KMSAN: uninit-value in prefetch_freepointer mm/slub.c:276 [inline] BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2713 [inline] BUG: KMSAN: uninit-value in __kmalloc_node+0xef3/0x1240 mm/slub.c:3823 CPU: 1 PID: 4710 Comm: syz-executor2 Not tainted 4.18.0-rc5+ #29 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/0x1e0 lib/dump_stack.c:113 kmsan_report+0x195/0x2c0 mm/kmsan/kmsan.c:982 __msan_warning+0x7d/0xe0 mm/kmsan/kmsan_instr.c:645 prefetch_freepointer mm/slub.c:276 [inline] slab_alloc_node mm/slub.c:2713 [inline] __kmalloc_node+0xef3/0x1240 mm/slub.c:3823 kmalloc_node include/linux/slab.h:555 [inline] kvmalloc_node+0x19d/0x370 mm/util.c:423 kvmalloc include/linux/mm.h:557 [inline] xt_alloc_table_info+0xbe/0x180 net/netfilter/x_tables.c:1186 do_replace net/ipv4/netfilter/ip_tables.c:1128 [inline] do_ipt_set_ctl+0x46b/0xa80 net/ipv4/netfilter/ip_tables.c:1675 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x47c/0x4e0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0x24b/0x2b0 net/ipv4/ip_sockglue.c:1258 tcp_setsockopt+0x1c0/0x1f0 net/ipv4/tcp.c:3060 sock_common_setsockopt+0x13b/0x170 net/core/sock.c:3040 __sys_setsockopt+0x496/0x540 net/socket.c:1911 __do_sys_setsockopt net/socket.c:1922 [inline] __se_sys_setsockopt net/socket.c:1919 [inline] __x64_sys_setsockopt+0x15c/0x1c0 net/socket.c:1919 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x4585ca Code: 49 89 ca b8 37 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fa 8e fb ff c3 66 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 8e fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:0000000000a3e328 EFLAGS: 00000206 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000a3e350 RCX: 00000000004585ca RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 0000000000707f20 R08: 0000000000000370 R09: 0000000000004000 R10: 00000000007063c0 R11: 0000000000000206 R12: 0000000000000013 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000706420 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_poison_shadow+0xc8/0x1d0 mm/kmsan/kmsan.c:181 kmsan_kmalloc+0xa1/0x120 mm/kmsan/kmsan_hooks.c:91 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan_hooks.c:100 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2720 [inline] __kmalloc_node_track_caller+0xb48/0x11d0 mm/slub.c:4353 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2cb/0x9e0 net/core/skbuff.c:206 alloc_skb_fclone include/linux/skbuff.h:1030 [inline] sk_stream_alloc_skb+0x17c/0xcf0 net/ipv4/tcp.c:875 tcp_fragment+0x425/0x20e0 net/ipv4/tcp_output.c:1308 tcp_write_wakeup+0xf59/0x1960 net/ipv4/tcp_output.c:3684 tcp_send_probe0+0x7c/0x680 net/ipv4/tcp_output.c:3713 tcp_probe_timer net/ipv4/tcp_timer.c:359 [inline] tcp_write_timer_handler+0xea2/0xf20 net/ipv4/tcp_timer.c:577 tcp_write_timer+0x12b/0x280 net/ipv4/tcp_timer.c:593 call_timer_fn+0x296/0x5f0 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0xde6/0x1220 kernel/time/timer.c:1666 run_timer_softirq+0x43/0x70 kernel/time/timer.c:1692 __do_softirq+0x55f/0x934 kernel/softirq.c:288 ==================================================================