Debian GNU/Linux 7 syzkaller ttyS0 2017/11/12 03:13:40 parsed 1 programs 2017/11/12 03:13:40 executed programs: 0 syzkaller login: [ 21.831754] ================================================================== [ 21.832553] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4f0/0x500 [ 21.833353] Read of size 8 at addr ffff88007a120c50 by task syz-executor2/3570 [ 21.834080] [ 21.838789] CPU: 3 PID: 3570 Comm: syz-executor2 Not tainted 4.14.0-rc8-next-20171110+ #12 [ 21.844943] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 21.852238] Call Trace: [ 21.852509] dump_stack+0x194/0x257 [ 21.852956] ? arch_local_irq_restore+0x53/0x53 [ 21.853507] ? show_regs_print_info+0x65/0x65 [ 21.854068] ? irq_bypass_register_consumer+0x4f0/0x500 [ 21.854798] print_address_description+0x73/0x250 [ 21.855333] ? irq_bypass_register_consumer+0x4f0/0x500 [ 21.855875] kasan_report+0x25b/0x340 [ 21.856275] __asan_report_load8_noabort+0x14/0x20 [ 21.857260] irq_bypass_register_consumer+0x4f0/0x500 [ 21.857826] ? __disconnect+0x1a0/0x1a0 [ 21.858244] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.858752] ? trace_hardirqs_on+0xd/0x10 [ 21.859183] ? queue_work_on+0x106/0x1c0 [ 21.859588] kvm_irqfd+0x137a/0x1d50 [ 21.859986] ? kvm_eventfd_init+0x2a0/0x2a0 [ 21.860412] ? find_held_lock+0x39/0x1d0 [ 21.860830] ? lock_downgrade+0x990/0x990 [ 21.864478] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 21.864997] ? __might_fault+0xe0/0x1d0 [ 21.865397] ? perf_trace_run_bpf_submit+0x206/0x330 [ 21.865902] ? lock_release+0xd70/0xd70 [ 21.866317] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.866966] ? __might_sleep+0x95/0x190 [ 21.867371] ? kasan_check_write+0x14/0x20 [ 21.867778] ? _copy_from_user+0x99/0x110 [ 21.868191] kvm_vm_ioctl+0x1079/0x1c40 [ 21.868590] ? kvm_set_memory_region+0x50/0x50 [ 21.869034] ? trace_event_raw_event_lock+0x340/0x340 [ 21.877183] ? check_noncircular+0x20/0x20 [ 21.877630] ? do_futex+0x85b/0x2280 [ 21.878014] ? find_held_lock+0x39/0x1d0 [ 21.878442] ? lock_downgrade+0x990/0x990 [ 21.878845] ? __mutex_init+0x1c7/0x2a0 [ 21.879250] ? __fget+0xbb/0x580 [ 21.879595] ? lock_release+0xd70/0xd70 [ 21.879990] ? __lock_is_held+0xbc/0x140 [ 21.880437] ? __fget+0x362/0x580 [ 21.880803] ? iterate_fd+0x3f0/0x3f0 [ 21.881192] ? __lock_is_held+0xbc/0x140 [ 21.881623] ? kvm_set_memory_region+0x50/0x50 [ 21.882082] do_vfs_ioctl+0x1b1/0x1530 [ 21.890740] ? __fd_install+0x288/0x740 [ 21.891138] ? anon_inode_getfile+0x349/0x490 [ 21.891587] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.892028] ? selinux_capable+0x40/0x40 [ 21.892438] ? SyS_futex+0x269/0x390 [ 21.898339] ? security_file_ioctl+0x89/0xb0 [ 21.898778] SyS_ioctl+0x8f/0xc0 [ 21.899126] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.899585] RIP: 0033:0x447c99 [ 21.899895] RSP: 002b:00007ff23cb21bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 21.900638] RAX: ffffffffffffffda RBX: 00007ff23cb226cc RCX: 0000000000447c99 [ 21.901337] RDX: 0000000020227000 RSI: 000000004020ae76 RDI: 0000000000000008 [ 21.902035] RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 [ 21.902787] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 21.904898] R13: 0000000000008568 R14: 00000000006ec608 R15: 00007ff23cb22700 [ 21.905640] [ 21.905804] Allocated by task 3570: [ 21.906185] save_stack+0x43/0xd0 [ 21.906865] kasan_kmalloc+0xad/0xe0 [ 21.908212] kmem_cache_alloc_trace+0x136/0x750 [ 21.909026] kvm_irqfd+0x16c/0x1d50 [ 21.909683] kvm_vm_ioctl+0x1079/0x1c40 [ 21.910077] do_vfs_ioctl+0x1b1/0x1530 [ 21.910472] SyS_ioctl+0x8f/0xc0 [ 21.911284] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.911739] [ 21.911902] Freed by task 1216: [ 21.912231] save_stack+0x43/0xd0 [ 21.912567] kasan_slab_free+0x71/0xc0 [ 21.912942] kfree+0xca/0x250 [ 21.913268] irqfd_shutdown+0x13c/0x1a0 [ 21.913666] process_one_work+0xbfa/0x1bc0 [ 21.914092] worker_thread+0x223/0x1990 [ 21.916198] kthread+0x37a/0x440 [ 21.916538] ret_from_fork+0x24/0x30 [ 21.916905] [ 21.917078] The buggy address belongs to the object at ffff88007a120ac0 [ 21.917078] which belongs to the cache kmalloc-512 of size 512 [ 21.918332] The buggy address is located 400 bytes inside of [ 21.918332] 512-byte region [ffff88007a120ac0, ffff88007a120cc0) [ 21.919461] The buggy address belongs to the page: [ 21.919995] page:ffffea0001e84800 count:1 mapcount:0 mapping:ffff88007a1200c0 index:0x0 [ 21.920779] flags: 0x500000000000100(slab) [ 21.921194] raw: 0500000000000100 ffff88007a1200c0 0000000000000000 0000000100000006 [ 21.921943] raw: ffffea0001e823e0 ffffea0001ea0de0 ffff88002dc00940 0000000000000000 [ 21.922900] page dumped because: kasan: bad access detected [ 21.923585] [ 21.923795] Memory state around the buggy address: [ 21.924399] ffff88007a120b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.925573] ffff88007a120b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.926303] >ffff88007a120c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.927010] ^ [ 21.927587] ffff88007a120c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 21.928300] ffff88007a120d00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 21.929007] ================================================================== [ 21.929715] Disabling lock debugging due to kernel taint [ 21.931000] Kernel panic - not syncing: panic_on_warn set ... [ 21.931000] [ 21.931919] CPU: 3 PID: 3570 Comm: syz-executor2 Tainted: G B 4.14.0-rc8-next-20171110+ #12 [ 21.933105] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 21.933942] Call Trace: [ 21.934372] dump_stack+0x194/0x257 [ 21.934745] ? arch_local_irq_restore+0x53/0x53 [ 21.935304] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 21.935780] ? vsnprintf+0x1ed/0x1900 [ 21.936251] ? irq_bypass_register_consumer+0x4e0/0x500 [ 21.936922] panic+0x1e4/0x41c [ 21.937318] ? refcount_error_report+0x214/0x214 [ 21.937954] ? irq_bypass_register_consumer+0x4f0/0x500 [ 21.938641] kasan_end_report+0x50/0x50 [ 21.939142] kasan_report+0x144/0x340 [ 21.939630] __asan_report_load8_noabort+0x14/0x20 [ 21.940240] irq_bypass_register_consumer+0x4f0/0x500 [ 21.940877] ? __disconnect+0x1a0/0x1a0 [ 21.941369] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 21.941982] ? trace_hardirqs_on+0xd/0x10 [ 21.942500] ? queue_work_on+0x106/0x1c0 [ 21.942914] kvm_irqfd+0x137a/0x1d50 [ 21.943320] ? kvm_eventfd_init+0x2a0/0x2a0 [ 21.943757] ? find_held_lock+0x39/0x1d0 [ 21.944188] ? lock_downgrade+0x990/0x990 [ 21.944601] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 21.945142] ? __might_fault+0xe0/0x1d0 [ 21.945569] ? perf_trace_run_bpf_submit+0x206/0x330 [ 21.946533] ? lock_release+0xd70/0xd70 [ 21.947279] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 21.947945] ? __might_sleep+0x95/0x190 [ 21.948438] ? kasan_check_write+0x14/0x20 [ 21.948946] ? _copy_from_user+0x99/0x110 [ 21.949480] kvm_vm_ioctl+0x1079/0x1c40 [ 21.949963] ? kvm_set_memory_region+0x50/0x50 [ 21.950707] ? trace_event_raw_event_lock+0x340/0x340 [ 21.951348] ? check_noncircular+0x20/0x20 [ 21.951801] ? do_futex+0x85b/0x2280 [ 21.952178] ? find_held_lock+0x39/0x1d0 [ 21.952590] ? lock_downgrade+0x990/0x990 [ 21.952995] ? __mutex_init+0x1c7/0x2a0 [ 21.953394] ? __fget+0xbb/0x580 [ 21.953733] ? lock_release+0xd70/0xd70 [ 21.954286] ? __lock_is_held+0xbc/0x140 [ 21.954710] ? __fget+0x362/0x580 [ 21.955064] ? iterate_fd+0x3f0/0x3f0 [ 21.955435] ? __lock_is_held+0xbc/0x140 [ 21.955847] ? kvm_set_memory_region+0x50/0x50 [ 21.956292] do_vfs_ioctl+0x1b1/0x1530 [ 21.956667] ? __fd_install+0x288/0x740 [ 21.957054] ? anon_inode_getfile+0x349/0x490 [ 21.957498] ? ioctl_preallocate+0x2b0/0x2b0 [ 21.957932] ? selinux_capable+0x40/0x40 [ 21.958431] ? SyS_futex+0x269/0x390 [ 21.958904] ? security_file_ioctl+0x89/0xb0 [ 21.959442] SyS_ioctl+0x8f/0xc0 [ 21.959828] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 21.960354] RIP: 0033:0x447c99 [ 21.960713] RSP: 002b:00007ff23cb21bd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 21.961567] RAX: ffffffffffffffda RBX: 00007ff23cb226cc RCX: 0000000000447c99 [ 21.962690] RDX: 0000000020227000 RSI: 000000004020ae76 RDI: 0000000000000008 [ 21.963489] RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 [ 21.964292] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff [ 21.965097] R13: 0000000000008568 R14: 00000000006ec608 R15: 00007ff23cb22700 [ 21.966023] Dumping ftrace buffer: [ 21.966554] (ftrace buffer empty) [ 21.966876] Kernel Offset: disabled [ 21.967199] Rebooting in 86400 seconds..