binder: BINDER_SET_CONTEXT_MGR already set binder: 5537:5546 ioctl 40046207 0 returned -16 binder_alloc: 5537: binder_alloc_buf, no vma binder: 5537:5546 transaction failed 29189/-3, size 40-8 line 2960 ================================================================== BUG: KASAN: use-after-free in mon_bin_vma_fault+0x247/0x250 drivers/usb/mon/mon_bin.c:1238 Read of size 8 at addr ffff8801c30ce280 by task syz-executor2/5566 CPU: 0 PID: 5566 Comm: syz-executor2 Not tainted 4.15.0-rc6-next-20180105+ #89 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+0x137/0x198 lib/dump_stack.c:53 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 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 mon_bin_vma_fault+0x247/0x250 drivers/usb/mon/mon_bin.c:1238 __do_fault+0x8a/0x1d0 mm/memory.c:3224 do_read_fault mm/memory.c:3634 [inline] do_fault mm/memory.c:3734 [inline] handle_pte_fault mm/memory.c:3965 [inline] __handle_mm_fault+0x1c96/0x3210 mm/memory.c:4089 handle_mm_fault+0x305/0x840 mm/memory.c:4126 faultin_page mm/gup.c:502 [inline] __get_user_pages+0x37e/0x1140 mm/gup.c:699 populate_vma_page_range+0x18e/0x230 mm/gup.c:1200 __mm_populate+0x204/0x350 mm/gup.c:1250 mm_populate include/linux/mm.h:2233 [inline] vm_mmap_pgoff+0x1e1/0x1f0 mm/util.c:338 SYSC_mmap_pgoff mm/mmap.c:1544 [inline] SyS_mmap_pgoff+0x423/0x580 mm/mmap.c:1502 SYSC_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] SyS_mmap+0x16/0x20 arch/x86/kernel/sys_x86_64.c:91 entry_SYSCALL_64_fastpath+0x23/0x9a RIP: 0033:0x452ac9 RSP: 002b:00007f65f4f52c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9 RDX: 0000000001000004 RSI: 0000000000004000 RDI: 0000000020ac6000 RBP: 000000000000056d R08: 0000000000000013 R09: 0000000000000000 R10: 0000000000008011 R11: 0000000000000212 R12: 00000000006f62d8 R13: 00000000ffffffff R14: 00007f65f4f536d4 R15: 0000000000000000 Allocated by task 5566: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 __do_kmalloc mm/slab.c:3705 [inline] __kmalloc+0x162/0x760 mm/slab.c:3714 kmalloc include/linux/slab.h:520 [inline] kzalloc include/linux/slab.h:704 [inline] mon_bin_ioctl+0x6b3/0xb20 drivers/usb/mon/mon_bin.c:1025 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0x190/0xfe0 fs/ioctl.c:686 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 entry_SYSCALL_64_fastpath+0x23/0x9a Freed by task 5570: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3485 [inline] kfree+0xd9/0x260 mm/slab.c:3800 mon_bin_ioctl+0x7e9/0xb20 drivers/usb/mon/mon_bin.c:1040 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0x190/0xfe0 fs/ioctl.c:686 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 entry_SYSCALL_64_fastpath+0x23/0x9a The buggy address belongs to the object at ffff8801c30ce280 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 0 bytes inside of 256-byte region [ffff8801c30ce280, ffff8801c30ce380) The buggy address belongs to the page: page:ffffea00070c3380 count:1 mapcount:0 mapping:ffff8801c30ce000 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801c30ce000 0000000000000000 000000010000000c raw: ffffea00070d08e0 ffffea00070c39a0 ffff8801db0007c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c30ce180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c30ce200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8801c30ce280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801c30ce300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c30ce380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================