slab_reclaimable:9551 slab_unreclaimable:85641 mapped:22598 shmem:70 pagetables:702 bounce:0 free:1419269 free_pcp:556 free_cma:0 ================================================================== Node 0 active_anon:304344kB inactive_anon:252kB active_file:11784kB inactive_file:16468kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:90292kB dirty:368kB writeback:0kB shmem:280kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 204800kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no 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 ffff880142691570 by task syz-executor4/2741 Node 0 CPU: 1 PID: 2741 Comm: syz-executor4 Not tainted 4.16.0-rc2+ #250 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 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 lowmem_reserve[]: print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23b/0x360 mm/kasan/report.c:412 0 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 sock_net_uid include/net/sock.h:1733 [inline] ip6_route_me_harder+0x9d8/0xc00 net/ipv6/netfilter.c:26 2864 nf_nat_ipv6_local_fn+0x2a4/0x5d0 net/ipv6/netfilter/nf_nat_l3proto_ipv6.c:414 ip6table_nat_local_fn+0x2c/0x40 net/ipv6/netfilter/ip6table_nat.c:69 6373 nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline] nf_hook_slow+0xba/0x1a0 net/netfilter/core.c:483 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 Node 0 DMA32 free:2923136kB 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:1452kB local_pcp:712kB free_cma:0kB tcp_v6_send_synack+0x57b/0xaa0 net/ipv6/tcp_ipv6.c:490 lowmem_reserve[]: tcp_conn_request+0x26fd/0x3660 net/ipv4/tcp_input.c:6335 0 0 3509 3509 Node 0 tcp_v6_conn_request+0x212/0x270 net/ipv6/tcp_ipv6.c:1021 Normal free:2732536kB min:37120kB low:46400kB high:55680kB active_anon:304344kB inactive_anon:252kB active_file:11784kB inactive_file:16468kB unevictable:0kB writepending:368kB present:4718592kB managed:3593744kB mlocked:0kB kernel_stack:5248kB pagetables:2808kB bounce:0kB free_pcp:748kB local_pcp:108kB free_cma:0kB tcp_rcv_state_process+0x92a/0x4760 net/ipv4/tcp_input.c:5842 lowmem_reserve[]: 0 0 tcp_v6_do_rcv+0x739/0x1250 net/ipv6/tcp_ipv6.c:1331 0 tcp_v6_rcv+0x25a0/0x2d40 net/ipv6/tcp_ipv6.c:1521 0 Node 0 ip6_input_finish+0x37e/0x17a0 net/ipv6/ip6_input.c:284 DMA: 1*4kB NF_HOOK include/linux/netfilter.h:288 [inline] ip6_input+0xdb/0x560 net/ipv6/ip6_input.c:327 (U) 0*8kB dst_input include/net/dst.h:449 [inline] ip6_rcv_finish+0x297/0x8c0 net/ipv6/ip6_input.c:71 0*16kB 1*32kB NF_HOOK include/linux/netfilter.h:288 [inline] ipv6_rcv+0xf37/0x1fa0 net/ipv6/ip6_input.c:208 (U) 2*64kB (U) __netif_receive_skb_core+0x1a41/0x3460 net/core/dev.c:4554 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB __netif_receive_skb+0x2c/0x1b0 net/core/dev.c:4619 (M) netif_receive_skb_internal+0x10b/0x670 net/core/dev.c:4693 = 15908kB Node 0 netif_receive_skb+0xae/0x390 net/core/dev.c:4717 DMA32: 30*4kB tun_rx_batched.isra.52+0x5ee/0x870 drivers/net/tun.c:1556 (UM) tun_get_user+0x25a5/0x3810 drivers/net/tun.c:1957 35*8kB (UM) 35*16kB (UM) 34*32kB (UM) 30*64kB 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 (U) 26*128kB do_iter_write+0x154/0x540 fs/read_write.c:932 (UM) vfs_writev+0x18a/0x340 fs/read_write.c:977 28*256kB (UM) 29*512kB do_writev+0xfc/0x2a0 fs/read_write.c:1012 (UM) 26*1024kB SYSC_writev fs/read_write.c:1085 [inline] SyS_writev+0x27/0x30 fs/read_write.c:1082 (UM) do_syscall_64+0x280/0x940 arch/x86/entry/common.c:287 8*2048kB (UM) 696*4096kB entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x453c41 (UM) RSP: 002b:00007f93e9fecba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 000000000000004a RCX: 0000000000453c41 RDX: 0000000000000001 RSI: 00007f93e9fecbf0 RDI: 00000000000000fc RBP: 0000000020000100 R08: 00000000000000fc R09: 0000000000000000 = 2923136kB R10: 000000000000004a R11: 0000000000000293 R12: 00000000ffffffff R13: 0000000000000627 R14: 00000000006f9448 R15: 0000000000000000 Node 0 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8801426914d8 which belongs to the cache request_sock_TCPv6 of size 328 Normal: The buggy address is located 152 bytes inside of 328-byte region [ffff8801426914d8, ffff880142691620) The buggy address belongs to the page: page:ffffea000509a440 count:1 mapcount:0 mapping:ffff880142691040 index:0xffff880142691ff6 622*4kB flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff880142691040 ffff880142691ff6 000000010000000a raw: ffff8801d1830b48 ffff8801d1830b48 ffff8801d18aecc0 0000000000000000 (UME) page dumped because: kasan: bad access detected Memory state around the buggy address: ffff880142691400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff880142691480: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc 323*8kB >ffff880142691500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff880142691580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880142691600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== (UME)