================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:243 [inline] at addr ffff8801a9ef3a00 BUG: KASAN: use-after-free in atomic_read arch/x86/include/asm/atomic.h:26 [inline] at addr ffff8801a9ef3a00 BUG: KASAN: use-after-free in static_key_count include/linux/jump_label.h:174 [inline] at addr ffff8801a9ef3a00 BUG: KASAN: use-after-free in static_key_false include/linux/jump_label.h:184 [inline] at addr ffff8801a9ef3a00 BUG: KASAN: use-after-free in perf_sw_event include/linux/perf_event.h:1039 [inline] at addr ffff8801a9ef3a00 BUG: KASAN: use-after-free in __do_page_fault+0xc80/0xd70 arch/x86/mm/fault.c:1438 at addr ffff8801a9ef3a00 Read of size 8 by task syz-executor2/22560 CPU: 1 PID: 22560 Comm: syz-executor2 Not tainted 4.9.64-gfbb7468 #94 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c9627d88 ffffffff81d90429 ffff8801da155140 ffff8801a9ef39b0 ffff8801a9ef3a68 ffffed00353de740 ffff8801a9ef3a00 ffff8801c9627db0 ffffffff8153a3ac ffffed00353de740 ffff8801da155140 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] static_key_count include/linux/jump_label.h:174 [inline] [] static_key_false include/linux/jump_label.h:184 [inline] [] perf_sw_event include/linux/perf_event.h:1039 [inline] [] __do_page_fault+0xc80/0xd70 arch/x86/mm/fault.c:1438 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1460 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 Object at ffff8801a9ef39b0, in cache vm_area_struct size: 184 Allocated: PID = 22560 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_zalloc include/linux/slab.h:626 [inline] mmap_region+0x587/0xfd0 mm/mmap.c:1662 do_mmap+0x57b/0xbe0 mm/mmap.c:1473 do_mmap_pgoff include/linux/mm.h:2018 [inline] vm_mmap_pgoff+0x16b/0x1b0 mm/util.c:305 SYSC_mmap_pgoff mm/mmap.c:1523 [inline] SyS_mmap_pgoff+0xd0/0x560 mm/mmap.c:1481 SYSC_mmap arch/x86/kernel/sys_x86_64.c:95 [inline] SyS_mmap+0x16/0x20 arch/x86/kernel/sys_x86_64.c:86 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 22578 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 remove_vma+0x11d/0x160 mm/mmap.c:175 remove_vma_list mm/mmap.c:2482 [inline] do_munmap+0x7ff/0xeb0 mm/mmap.c:2705 mmap_region+0x14d/0xfd0 mm/mmap.c:1635 do_mmap+0x57b/0xbe0 mm/mmap.c:1473 do_mmap_pgoff include/linux/mm.h:2018 [inline] vm_mmap_pgoff+0x16b/0x1b0 mm/util.c:305 SYSC_mmap_pgoff mm/mmap.c:1523 [inline] SyS_mmap_pgoff+0xd0/0x560 mm/mmap.c:1481 SYSC_mmap arch/x86/kernel/sys_x86_64.c:95 [inline] SyS_mmap+0x16/0x20 arch/x86/kernel/sys_x86_64.c:86 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff8801a9ef3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8801a9ef3980: fc fc fc fc fc fc fb fb fb fb fb fb fb fb fb fb >ffff8801a9ef3a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ^ ffff8801a9ef3a80: fc fc fc fc fc fb fb fb fb fb fb fb fb fb fb fb ffff8801a9ef3b00: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ================================================================== CPU: 0 PID: 22498 Comm: syz-executor1 Tainted: G B 4.9.64-gfbb7468 #94 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cbce79a0 ffffffff81d90429 ffff8801cbce7c80 0000000000000000 ffff8801a9742a10 ffff8801cbce7b70 ffff8801a9742900 ffff8801cbce7b98 ffffffff8165e3c7 0000000000006e92 ffff8801a589e8f0 ffff8801a589e8a0 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] __do_page_fault+0x5b7/0xd70 arch/x86/mm/fault.c:1396 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1460 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 [] entry_SYSCALL_64_fastpath+0x23/0xc6 nla_parse: 22 callbacks suppressed netlink: 1 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor4'. binder: 22635:22636 ioctl c08c5335 209dcf74 returned -22 binder: 22635:22636 ioctl 4b6c 203c7f3b returned -22 9pnet_virtio: no channels available for device ./file0 binder: 22635:22657 ioctl 54a2 0 returned -22 binder: 22635:22657 ioctl c08c5335 209dcf74 returned -22 binder: 22635:22657 ioctl 4b6c 203c7f3b returned -22 binder: 22635:22657 ioctl 54a2 0 returned -22 9pnet_virtio: no channels available for device ./file0 netlink: 73 bytes leftover after parsing attributes in process `syz-executor6'. netlink: 73 bytes leftover after parsing attributes in process `syz-executor6'. device lo entered promiscuous mode SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=22754 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=22754 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=22779 comm=syz-executor5 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=22779 comm=syz-executor5 device lo left promiscuous mode netlink: 1 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 1 bytes leftover after parsing attributes in process `syz-executor3'. IPVS: Creating netns size=2536 id=47 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads SELinux: unrecognized netlink message: protocol=0 nlmsg_type=770 sclass=netlink_route_socket pig=23001 comm=syz-executor1 Option 'Þ¾š„'' to dns_resolver key: bad/missing value netlink: 1 bytes leftover after parsing attributes in process `syz-executor3'. device gre0 entered promiscuous mode binder: 23000:23001 ioctl 40082404 20000ff8 returned -22 netlink: 1 bytes leftover after parsing attributes in process `syz-executor3'. binder: 23000:23025 ioctl 4b48 20000000 returned -22 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=770 sclass=netlink_route_socket pig=23001 comm=syz-executor1 Option 'Þ¾š„'' to dns_resolver key: bad/missing value FAULT_FLAG_ALLOW_RETRY missing 30 binder: 23000:23001 ioctl 40082404 20000ff8 returned -22 binder: 23000:23025 ioctl 4b48 20000000 returned -22 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 23010 Comm: syz-executor6 Tainted: G B 4.9.64-gfbb7468 #94 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d849f8a0 ffffffff81d90429 ffff8801d849fb80 0000000000000000 ffff8801a9743610 ffff8801d849fa70 ffff8801a9743500 ffff8801d849fa98 ffffffff8165e3c7 ffff8801c8df79c0 ffff8801d849f9f0 00000001cbfb1067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] __do_page_fault+0x5b7/0xd70 arch/x86/mm/fault.c:1396 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1460 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 [] entry_SYSCALL_64_fastpath+0x23/0xc6 IPVS: Creating netns size=2536 id=48 selinux_nlmsg_perm: 4 callbacks suppressed SELinux: unrecognized netlink message: protocol=0 nlmsg_type=255 sclass=netlink_route_socket pig=23104 comm=syz-executor4 IPVS: Creating netns size=2536 id=49 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=255 sclass=netlink_route_socket pig=23127 comm=syz-executor4 CPU: 0 PID: 23020 Comm: syz-executor6 Tainted: G B 4.9.64-gfbb7468 #94 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801cd957970 ffffffff81d90429 ffff8801cd957c50 0000000000000000 ffff8801a9743610 ffff8801cd957b40 ffff8801a9743500 ffff8801cd957b68 ffffffff8165e3c7 ffffffff84186db4 ffff8801cd957ac0 00000001cbfb1067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] __do_page_fault+0x5b7/0xd70 arch/x86/mm/fault.c:1396 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1460 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 [] entry_SYSCALL_64_fastpath+0x23/0xc6 binder: 23143:23156 ioctl 400454d4 20de4000 returned -22 binder: 23153:23159 ioctl 4b44 20ad2000 returned -22 binder: 23153:23159 ioctl 4b44 20ad2000 returned -22 device lo left promiscuous mode binder: 23143:23195 ioctl 400454d4 20de4000 returned -22 device lo entered promiscuous mode device lo left promiscuous mode device lo entered promiscuous mode netlink: 17 bytes leftover after parsing attributes in process `syz-executor5'. binder: 23238:23239 ioctl c08c5335 209dcf74 returned -22 device lo left promiscuous mode binder: 23242:23245 ioctl 4b44 20ad2000 returned -22 binder: 23238:23248 ioctl 2403 8 returned -22 binder: 23242:23251 ioctl 4b44 20ad2000 returned -22 netlink: 17 bytes leftover after parsing attributes in process `syz-executor5'. binder: 23238:23248 ioctl c08c5335 209dcf74 returned -22 device lo entered promiscuous mode device lo left promiscuous mode binder: 23238:23248 ioctl 2403 8 returned -22 device gre0 entered promiscuous mode device gre0 entered promiscuous mode binder: 23375:23390 ioctl c08c5335 209dcf74 returned -22 binder: 23375:23390 ioctl 4b6c 203c7f3b returned -22 binder: 23375:23408 ioctl c08c5335 209dcf74 returned -22 binder: 23375:23408 ioctl 4b6c 203c7f3b returned -22 IPVS: Creating netns size=2536 id=50 IPVS: Creating netns size=2536 id=51 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads device gre0 entered promiscuous mode device gre0 entered promiscuous mode binder: 23791:23792 ioctl c0086420 20739ff8 returned -22 binder: 23791:23792 ioctl 40086425 203c4000 returned -22 pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads pktgen: kernel_thread() failed for cpu 0 pktgen: Cannot create thread for cpu 0 (-4) pktgen: kernel_thread() failed for cpu 1 pktgen: Cannot create thread for cpu 1 (-4) pktgen: Initialization failed for all threads sg_write: data in/out 822404280/197 bytes for SCSI command 0x12-- guessing data in; program syz-executor4 not setting count and/or reply_len properly device gre0 entered promiscuous mode sg_write: data in/out 262364/161 bytes for SCSI command 0xff-- guessing data in; program syz-executor4 not setting count and/or reply_len properly IPVS: Creating netns size=2536 id=52 IPVS: Creating netns size=2536 id=53 binder: 24058:24070 ioctl 40304580 20663000 returned -22 binder: 24058:24088 ioctl 40304580 20663000 returned -22 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=257 sclass=netlink_xfrm_socket pig=24141 comm=syz-executor1 nla_parse: 4 callbacks suppressed netlink: 3 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 3 bytes leftover after parsing attributes in process `syz-executor2'. SELinux: unrecognized netlink message: protocol=6 nlmsg_type=257 sclass=netlink_xfrm_socket pig=24141 comm=syz-executor1 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=256 sclass=netlink_route_socket pig=24169 comm=syz-executor5 FAULT_FLAG_ALLOW_RETRY missing 30 FAULT_FLAG_ALLOW_RETRY missing 30 CPU: 0 PID: 24215 Comm: syz-executor6 Tainted: G B 4.9.64-gfbb7468 #94 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ac52f930 ffffffff81d90429 ffff8801ac52fc10 0000000000000000 ffff8801d9193f10 ffff8801ac52fb00 ffff8801d9193e00 ffff8801ac52fb28 ffffffff8165e3c7 0000000000000001 ffff8801ac52fa80 00000001c58b9067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] __do_page_fault+0x5b7/0xd70 arch/x86/mm/fault.c:1396 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1460 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 [] entry_SYSCALL_64_fastpath+0x23/0xc6 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=256 sclass=netlink_route_socket pig=24169 comm=syz-executor5 netlink: 73 bytes leftover after parsing attributes in process `syz-executor1'. binder: 24300:24302 ioctl 4b44 20ad2000 returned -22 binder: 24300:24302 ioctl 4b44 20ad2000 returned -22 binder: 24312:24314 ioctl 80605414 2011e000 returned -22 binder: 24312:24314 ioctl 890c 20d82000 returned -22 binder: 24312:24314 ioctl 80605414 2011e000 returned -22 binder: 24312:24314 ioctl 890c 20d82000 returned -22 CPU: 0 PID: 24233 Comm: syz-executor6 Tainted: G B 4.9.64-gfbb7468 #94 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ca78f930 ffffffff81d90429 ffff8801ca78fc10 0000000000000000 ffff8801d9193f10 ffff8801ca78fb00 ffff8801d9193e00 ffff8801ca78fb28 ffffffff8165e3c7 ffff8801ca78fac8 ffff8801ca78fa80 00000001c58b9067 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] handle_userfault+0xa37/0x1300 fs/userfaultfd.c:323 [] do_anonymous_page mm/memory.c:2747 [inline] [] handle_pte_fault mm/memory.c:3488 [inline] [] __handle_mm_fault mm/memory.c:3577 [inline] [] handle_mm_fault+0x1fd1/0x2530 mm/memory.c:3614 [] __do_page_fault+0x5b7/0xd70 arch/x86/mm/fault.c:1396 [] do_page_fault+0x27/0x30 arch/x86/mm/fault.c:1460 [] page_fault+0x28/0x30 arch/x86/entry/entry_64.S:1012 [] entry_SYSCALL_64_fastpath+0x23/0xc6 IPVS: Creating netns size=2536 id=54 netlink: 17 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 17 bytes leftover after parsing attributes in process `syz-executor4'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7 sclass=netlink_route_socket pig=24403 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=24403 comm=syz-executor0 device gre0 entered promiscuous mode SELinux: unrecognized netlink message: protocol=0 nlmsg_type=7 sclass=netlink_route_socket pig=24403 comm=syz-executor0 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=24414 comm=syz-executor0 IPVS: Creating netns size=2536 id=55 device gre0 entered promiscuous mode cgroup: cgroup2: unknown option "" cgroup: cgroup2: unknown option "" device lo left promiscuous mode device lo entered promiscuous mode device lo left promiscuous mode binder: 24658:24659 ioctl c08c5335 209dcf74 returned -22 binder: 24658:24659 ioctl 40284504 200abfd8 returned -22 binder: 24658:24659 ioctl 80084502 2099ffaa returned -22 binder: 24658:24659 ioctl 891c 2043a000 returned -22 binder: 24658:24674 ioctl c08c5335 209dcf74 returned -22 binder: 24658:24659 ioctl 40284504 200abfd8 returned -22 binder: 24658:24659 ioctl 80084502 2099ffaa returned -22 binder: 24658:24659 ioctl 891c 2043a000 returned -22 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=770 sclass=netlink_route_socket pig=24692 comm=syz-executor1 Option 'Þ¾š„'' to dns_resolver key: bad/missing value device gre0 entered promiscuous mode device gre0 left promiscuous mode binder: 24691:24692 ioctl 40082404 20000ff8 returned -22 binder: 24691:24692 ioctl 4b48 20000000 returned -22 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=770 sclass=netlink_route_socket pig=24692 comm=syz-executor1 Option 'Þ¾š„'' to dns_resolver key: bad/missing value