Call Trace: nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 warn_alloc+0x19a/0x2b0 mm/page_alloc.c:3310 ================================================================== BUG: KASAN: slab-out-of-bounds in sock_net_uid include/net/sock.h:1733 [inline] BUG: KASAN: slab-out-of-bounds in ip6_route_me_harder+0x9d8/0xc00 net/ipv6/netfilter.c:26 Read of size 4 at addr ffff8801c367ab90 by task syz-executor0/2239 __vmalloc_node_range+0x4f0/0x650 mm/vmalloc.c:1775 __vmalloc_node mm/vmalloc.c:1804 [inline] __vmalloc_node_flags_caller+0x50/0x60 mm/vmalloc.c:1826 kvmalloc_node+0x82/0xd0 mm/util.c:428 kvmalloc include/linux/mm.h:541 [inline] kvmalloc_array include/linux/mm.h:557 [inline] xt_alloc_entry_offsets+0x21/0x30 net/netfilter/x_tables.c:778 translate_table+0x235/0x1690 net/ipv6/netfilter/ip6_tables.c:703 do_replace net/ipv6/netfilter/ip6_tables.c:1164 [inline] do_ip6t_set_ctl+0x370/0x5f0 net/ipv6/netfilter/ip6_tables.c:1690 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x10b/0x130 net/ipv6/ipv6_sockglue.c:927 sctp_setsockopt+0x2b6/0x61d0 net/sctp/socket.c:4104 sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2979 SYSC_setsockopt net/socket.c:1850 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1829 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x453d69 RSP: 002b:00007f6f36b02c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f6f36b036d4 RCX: 0000000000453d69 RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000020000c40 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000004e9 R14: 00000000006f7678 R15: 0000000000000000 CPU: 0 PID: 2239 Comm: syz-executor0 Not tainted 4.16.0-rc2+ #250 warn_alloc_show_mem: 1 callbacks suppressed Mem-Info: Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 active_anon:49738 inactive_anon:63 isolated_anon:0 active_file:2371 inactive_file:4872 isolated_file:0 unevictable:0 dirty:260 writeback:0 unstable:0 slab_reclaimable:9512 slab_unreclaimable:84998 mapped:22822 shmem:70 pagetables:724 bounce:0 free:1446822 free_pcp:270 free_cma:0 Node 0 active_anon:198952kB inactive_anon:252kB active_file:9484kB inactive_file:19488kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:91288kB dirty:1040kB writeback:0kB shmem:280kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 32768kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no print_address_description+0x73/0x250 mm/kasan/report.c:256 Node 0 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23b/0x360 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 DMA free:15908kB min:164kB low:204kB high:244kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB sock_net_uid include/net/sock.h:1733 [inline] ip6_route_me_harder+0x9d8/0xc00 net/ipv6/netfilter.c:26 lowmem_reserve[]: nf_nat_ipv6_local_fn+0x2a4/0x5d0 net/ipv6/netfilter/nf_nat_l3proto_ipv6.c:414 0 ip6table_nat_local_fn+0x2c/0x40 net/ipv6/netfilter/ip6table_nat.c:69 nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline] nf_hook_slow+0xba/0x1a0 net/netfilter/core.c:483 2864 nf_hook include/linux/netfilter.h:243 [inline] NF_HOOK include/linux/netfilter.h:286 [inline] ip6_xmit+0x10ec/0x2260 net/ipv6/ip6_output.c:277 6373 6373 Node 0 tcp_v6_send_synack+0x57b/0xaa0 net/ipv6/tcp_ipv6.c:490 DMA32 free:2929560kB min:30292kB low:37864kB high:45436kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129292kB managed:2935316kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:700kB local_pcp:696kB free_cma:0kB lowmem_reserve[]: tcp_conn_request+0x26fd/0x3660 net/ipv4/tcp_input.c:6335 0 0 3509 3509 Node 0 Normal free:2841820kB min:37120kB low:46400kB high:55680kB active_anon:198952kB inactive_anon:252kB active_file:9484kB inactive_file:19488kB unevictable:0kB writepending:1040kB present:4718592kB managed:3593744kB mlocked:0kB kernel_stack:5344kB pagetables:2896kB bounce:0kB free_pcp:380kB local_pcp:256kB free_cma:0kB lowmem_reserve[]: tcp_v6_conn_request+0x212/0x270 net/ipv6/tcp_ipv6.c:1021 0 tcp_rcv_state_process+0x92a/0x4760 net/ipv4/tcp_input.c:5842 0 0 0 Node 0 tcp_v6_do_rcv+0x739/0x1250 net/ipv6/tcp_ipv6.c:1331 DMA: tcp_v6_rcv+0x25a0/0x2d40 net/ipv6/tcp_ipv6.c:1521 1*4kB (U) 0*8kB ip6_input_finish+0x37e/0x17a0 net/ipv6/ip6_input.c:284 0*16kB 1*32kB NF_HOOK include/linux/netfilter.h:288 [inline] ip6_input+0xdb/0x560 net/ipv6/ip6_input.c:327 (U) 2*64kB dst_input include/net/dst.h:449 [inline] ip6_rcv_finish+0x297/0x8c0 net/ipv6/ip6_input.c:71 (U) 1*128kB (U) NF_HOOK include/linux/netfilter.h:288 [inline] ipv6_rcv+0xf37/0x1fa0 net/ipv6/ip6_input.c:208 1*256kB (U) 0*512kB __netif_receive_skb_core+0x1a41/0x3460 net/core/dev.c:4554 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 DMA32: 10*4kB (UME) __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4619 16*8kB netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4693 (UME) 15*16kB netif_receive_skb+0xae/0x390 net/core/dev.c:4717 (UME) 16*32kB tun_rx_batched.isra.52+0x5ee/0x870 drivers/net/tun.c:1556 (UME) tun_get_user+0x25a5/0x3810 drivers/net/tun.c:1957 12*64kB (UE) 6*128kB (UME) 8*256kB (UME) 7*512kB (UME) tun_chr_write_iter+0xbd/0x1c0 drivers/net/tun.c:1985 call_write_iter include/linux/fs.h:1781 [inline] do_iter_readv_writev+0x55c/0x830 fs/read_write.c:653 7*1024kB (UME) do_iter_write+0x154/0x540 fs/read_write.c:932 7*2048kB vfs_writev+0x18a/0x340 fs/read_write.c:977 (UME) 708*4096kB (UM) do_writev+0xfc/0x2a0 fs/read_write.c:1012 = 2929560kB Node 0 Normal: SYSC_writev fs/read_write.c:1085 [inline] SyS_writev+0x27/0x30 fs/read_write.c:1082 do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 229*4kB (UMEH) 505*8kB (UMEH) entry_SYSCALL_64_after_hwframe+0x42/0xb7 2486*16kB RIP: 0033:0x453c41 RSP: 002b:00007f70e26adba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000004a RCX: 0000000000453c41 (UMEH) RDX: 0000000000000001 RSI: 00007f70e26adbf0 RDI: 00000000000000fc RBP: 0000000020000100 R08: 00000000000000fc R09: 0000000000000000 R10: 000000000000004a R11: 0000000000000293 R12: 00000000ffffffff R13: 0000000000000627 R14: 00000000006f9448 R15: 0000000000000000 2378*32kB (UMEH) Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) 1289*64kB The buggy address belongs to the object at ffff8801c367aaf8 which belongs to the cache request_sock_TCPv6 of size 328 The buggy address is located 152 bytes inside of 328-byte region [ffff8801c367aaf8, ffff8801c367ac40) The buggy address belongs to the page: page:ffffea00070d9e80 count:1 mapcount:0 mapping:ffff8801c367a040 index:0xffff8801c367aff6 (UMH) flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801c367a040 ffff8801c367aff6 0000000100000008 raw: ffff8801d187df38 ffff8801d187df38 ffff8801d1dbc9c0 0000000000000000 407*128kB page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c367aa80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ffff8801c367ab00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc (UM) >ffff8801c367ab80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801c367ac00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801c367ac80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc 203*256kB ==================================================================