syz-executor6: vmalloc: allocation failure: 17178820608 bytes[ 108.395961] ================================================================== BUG: KASAN: wild-memory-access on address ffe708746cae7000 Read of size 37 by task syz-executor2/20548 CPU: 1 PID: 20548 Comm: syz-executor2 Not tainted 4.9.56-g5c73594 #66 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801a652fae8 ffffffff81d93999 ffe708746cae7000 0000000000000025 0000000000000000 ffff8801a551e900 ffe708746cae7000 ffff8801a652fb70 ffffffff8153d5cf 0000000000000000 0000000000000001 ffffffff8266527bCall Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_report_error mm/kasan/report.c:284 [inline] [] kasan_report.part.1+0x40f/0x500 mm/kasan/report.c:309 [] kasan_report+0x20/0x30 mm/kasan/report.c:296 [] check_memory_region_inline mm/kasan/kasan.c:308 [inline] [] check_memory_region+0x137/0x190 mm/kasan/kasan.c:315 [] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:320 [] __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline] [] sg_read_oxfer drivers/scsi/sg.c:1978 [inline] [] sg_read+0x124b/0x1400 drivers/scsi/sg.c:520 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] vfs_read+0x107/0x330 fs/read_write.c:475 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] entry_SYSCALL_64_fastpath+0x23/0xc6 ================================================================== syz-executor6: vmalloc: allocation failure: 17178820608 bytes, mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 0 PID: 20555 Comm: syz-executor6 Tainted: G B 4.9.56-g5c73594 #66 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff88017757f880 ffffffff81d93999 1ffff1002eeaff13 ffff8801a605b000 ffffffff83ab7ac0 0000000000000001 0000000000400000 ffff88017757f990 ffffffff814512b2 024000c2a69e4caa 0000000041b58ab3 ffffffff8418ff9dCall Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc+0x212/0x240 mm/page_alloc.c:3054 [] __vmalloc_node_range+0x3f5/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] xt_alloc_entry_offsets+0x41/0x60 net/netfilter/x_tables.c:722 [] translate_table+0x21a/0x1e80 net/ipv6/netfilter/ip6_tables.c:730 [] ? 0xffffffff810002b8 [] do_replace net/ipv6/netfilter/ip6_tables.c:1182 [inline] [] do_ip6t_set_ctl+0x2be/0x470 net/ipv6/netfilter/ip6_tables.c:1708 [] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 [] ipv6_setsockopt+0x115/0x150 net/ipv6/ipv6_sockglue.c:903 [] tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2705 [] sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2707 [] SYSC_setsockopt net/socket.c:1771 [inline] [] SyS_setsockopt+0x160/0x250 net/socket.c:1750 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Mem-Info: active_anon:82546 inactive_anon:2914 isolated_anon:0 active_file:3806 inactive_file:5974 isolated_file:0 unevictable:0 dirty:44 writeback:0 unstable:0 slab_reclaimable:6654 slab_unreclaimable:54664 mapped:25034 shmem:3071 pagetables:668 bounce:0 free:1451870 free_pcp:471 free_cma:0 Node 0 active_anon:330184kB inactive_anon:11656kB active_file:15224kB inactive_file:23896kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:100136kB dirty:176kB writeback:0kB shmem:12284kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 28672kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB 0 2910 6411 6411DMA32 free:2981148kB min:30600kB low:38248kB high:45896kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2981844kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:696kB local_pcp:48kB free_cma:0kB 0 0 3501 3501Normal free:2810424kB min:36816kB low:46020kB high:55224kB active_anon:330184kB inactive_anon:11656kB active_file:15224kB inactive_file:23896kB unevictable:0kB writepending:176kB present:4718592kB managed:3585220kB mlocked:0kB slab_reclaimable:26616kB slab_unreclaimable:218656kB kernel_stack:5920kB pagetables:2672kB bounce:0kB free_pcp:1188kB local_pcp:492kB free_cma:0kB 0 0 0 0DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 12850 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965979 pages RAM 0 pages HighMem/MovableOnly 320236 pages reserved 9pnet_virtio: no channels available for device ./file0 9pnet_virtio: no channels available for device ./file0 IPVS: Creating netns size=2536 id=45 IPVS: Creating netns size=2536 id=46 , mode:0x24000c2(GFP_KERNEL|__GFP_HIGHMEM) CPU: 1 PID: 20541 Comm: syz-executor6 Tainted: G B 4.9.56-g5c73594 #66 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ac997880 ffffffff81d93999 1ffff10035932f13 ffff8801d9894800 ffffffff83ab7ac0 0000000000000001 0000000000400000 ffff8801ac997990 ffffffff814512b2 024000c21e132a63 0000000041b58ab3 ffffffff8418ff9d Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] warn_alloc+0x212/0x240 mm/page_alloc.c:3054 [] __vmalloc_node_range+0x3f5/0x5f0 mm/vmalloc.c:1722 [] __vmalloc_node mm/vmalloc.c:1744 [inline] [] __vmalloc_node_flags mm/vmalloc.c:1758 [inline] [] vmalloc+0x5b/0x70 mm/vmalloc.c:1773 [] xt_alloc_entry_offsets+0x41/0x60 net/netfilter/x_tables.c:722 [] translate_table+0x21a/0x1e80 net/ipv6/netfilter/ip6_tables.c:730 [] ? 0xffffffff810002b8 [] do_replace net/ipv6/netfilter/ip6_tables.c:1182 [inline] [] do_ip6t_set_ctl+0x2be/0x470 net/ipv6/netfilter/ip6_tables.c:1708 [] nf_sockopt net/netfilter/nf_sockopt.c:105 [inline] [] nf_setsockopt+0x67/0xc0 net/netfilter/nf_sockopt.c:114 [] ipv6_setsockopt+0x115/0x150 net/ipv6/ipv6_sockglue.c:903 [] tcp_setsockopt+0x82/0xd0 net/ipv4/tcp.c:2705 [] sock_common_setsockopt+0x95/0xd0 net/core/sock.c:2707 [] SYSC_setsockopt net/socket.c:1771 [inline] [] SyS_setsockopt+0x160/0x250 net/socket.c:1750 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Mem-Info: active_anon:82012 inactive_anon:2913 isolated_anon:0 active_file:3806 inactive_file:5985 isolated_file:0 unevictable:0 dirty:79 writeback:0 unstable:0 slab_reclaimable:6707 slab_unreclaimable:56574 mapped:25033 shmem:3070 pagetables:650 bounce:0 free:1450639 free_pcp:437 free_cma:0 Node 0 active_anon:328048kB inactive_anon:11652kB active_file:15224kB inactive_file:23940kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:100132kB dirty:316kB writeback:0kB shmem:12280kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 2048kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no DMA free:15908kB min:160kB low:200kB high:240kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2910 6411 6411 DMA32 free:2981148kB min:30600kB low:38248kB high:45896kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:3129332kB managed:2981844kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:696kB local_pcp:648kB free_cma:0kB lowmem_reserve[]: 0 0 3501 3501 Normal free:2805452kB min:36816kB low:46020kB high:55224kB active_anon:328048kB inactive_anon:11652kB active_file:15224kB inactive_file:23940kB unevictable:0kB writepending:320kB present:4718592kB managed:3585220kB mlocked:0kB slab_reclaimable:26832kB slab_unreclaimable:226356kB kernel_stack:5792kB pagetables:2600kB bounce:0kB free_pcp:1032kB local_pcp:288kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 DMA: 1*4kB (U) 0*8kB 0*16kB 1*32kB (U) 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15908kB DMA32: 3*4kB (M) 2*8kB (M) 4*16kB (M) 2*32kB (M) 4*64kB (M) 3*128kB (M) 2*256kB (M) 2*512kB (M) 1*1024kB (M) 2*2048kB (M) 726*4096kB (M) = 2981148kB Normal: 393*4kB (UME) 141*8kB (UME) 140*16kB (ME) 642*32kB (UME) 607*64kB (ME) 290*128kB (UME) 95*256kB (UME) 65*512kB (UM) 56*1024kB (UM) 54*2048kB (UM) 608*4096kB (UM) = 2817356kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 9992 total pagecache pages 0 pages in swap cache Swap cache stats: add 0, delete 0, find 0/0 Free swap = 0kB Total swap = 0kB 1965979 pages RAM 0 pages HighMem/MovableOnly 320236 pages reserved PF_BRIDGE: RTM_SETLINK with unknown ifindex PF_BRIDGE: RTM_SETLINK with unknown ifindex device lo entered promiscuous mode device lo left promiscuous mode binder: 20636:20652 ioctl 4c82 0 returned -22 device lo entered promiscuous mode device lo left promiscuous mode binder: 20636:20652 ioctl 4c82 0 returned -22 device lo entered promiscuous mode device lo left promiscuous mode binder: 20712:20713 ioctl 4c82 0 returned -22 device lo entered promiscuous mode device lo left promiscuous mode binder: 20712:20716 ioctl 4c82 0 returned -22 device gre0 entered promiscuous mode kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 20757 Comm: syz-executor2 Tainted: G B 4.9.56-g5c73594 #66 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff880192c1e000 task.stack: ffff88019b0a0000 RIP: 0010:[] [] __read_once_size include/linux/compiler.h:243 [inline] RIP: 0010:[] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] RIP: 0010:[] [] page_ref_count include/linux/page_ref.h:66 [inline] RIP: 0010:[] [] put_page_testzero include/linux/mm.h:445 [inline] RIP: 0010:[] [] __free_pages+0x21/0x80 mm/page_alloc.c:3901 RSP: 0018:ffff88019b0a7ab0 EFLAGS: 00010a07 RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffc90002917000 RDX: 1bd5a9d5a0000003 RSI: 0000000000000001 RDI: dead4ead0000001c RBP: ffff88019b0a7ac0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 1ffff10033614f38 R12: 0000000000000004 R13: 0000000000000020 R14: ffff88019ea82100 R15: dffffc0000000000 FS: 00007f9a6e6bd700(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002087bffc CR3: 000000018ee08000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff880192c1e000 ffff88019ea82258 ffff88019b0a7b20 ffffffff82662871 ffff88019ea82270 ffffed0033d5044b ffffed0033d5044e ffff88019ea82268 dead4ead00000000 ffff88019ea82240 0000000000000000 0000000000000000 Call Trace: [] sg_remove_scat.isra.20+0x1c1/0x2d0 drivers/scsi/sg.c:1954 [] sg_finish_rem_req+0x2b5/0x340 drivers/scsi/sg.c:1836 [] sg_new_read.isra.21+0x39/0x3e0 drivers/scsi/sg.c:567 [] sg_read+0x8a6/0x1400 drivers/scsi/sg.c:456 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] vfs_read+0x107/0x330 fs/read_write.c:475 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] entry_SYSCALL_64_fastpath+0x23/0xc6 Code: ff 66 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 53 48 89 fb 48 83 c7 1c 48 89 fa 48 83 ec 08 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 3d RIP [] __read_once_size include/linux/compiler.h:243 [inline] RIP [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] RIP [] page_ref_count include/linux/page_ref.h:66 [inline] RIP [] put_page_testzero include/linux/mm.h:445 [inline] RIP [] __free_pages+0x21/0x80 mm/page_alloc.c:3901 RSP ---[ end trace a53efd7ad40569e1 ]---