INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-kasan-gce-386-2,10.128.0.54' (ECDSA) to the list of known hosts. 2017/11/12 03:22:55 parsed 1 programs 2017/11/12 03:22:55 executed programs: 0 syzkaller login: [ 34.437926] ================================================================== [ 34.439230] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4b4/0x500 [ 34.440472] Write of size 8 at addr ffff8801ce954ba8 by task syz-executor2/3724 [ 34.441824] [ 34.442071] CPU: 1 PID: 3724 Comm: syz-executor2 Not tainted 4.14.0-rc8+ #83 [ 34.443020] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.444353] Call Trace: [ 34.444744] dump_stack+0x194/0x257 [ 34.445304] ? arch_local_irq_restore+0x53/0x53 [ 34.446000] ? show_regs_print_info+0x65/0x65 [ 34.446732] ? irq_bypass_register_consumer+0x4b4/0x500 [ 34.447903] print_address_description+0x73/0x250 [ 34.448579] ? irq_bypass_register_consumer+0x4b4/0x500 [ 34.449309] kasan_report+0x25b/0x340 [ 34.449948] __asan_report_store8_noabort+0x17/0x20 [ 34.451078] irq_bypass_register_consumer+0x4b4/0x500 [ 34.451984] ? __disconnect+0x1a0/0x1a0 [ 34.452539] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.453603] ? trace_hardirqs_on+0xd/0x10 [ 34.454378] ? queue_work_on+0x106/0x1c0 [ 34.454956] kvm_irqfd+0x137a/0x1d50 [ 34.455515] ? kvm_eventfd_init+0x2a0/0x2a0 [ 34.456143] ? find_held_lock+0x35/0x1d0 [ 34.456712] ? __might_fault+0x110/0x1d0 [ 34.457288] ? lock_downgrade+0x990/0x990 [ 34.457897] ? lock_release+0xa40/0xa40 [ 34.460804] ? check_same_owner+0x320/0x320 [ 34.465126] ? __might_sleep+0x95/0x190 [ 34.469091] ? kasan_check_write+0x14/0x20 [ 34.473486] ? _copy_from_user+0x99/0x110 [ 34.477633] kvm_vm_ioctl+0x1079/0x1c40 [ 34.481636] ? kvm_set_memory_region+0x50/0x50 [ 34.486209] ? check_noncircular+0x20/0x20 [ 34.490461] ? find_held_lock+0x35/0x1d0 [ 34.494530] ? __fget+0x333/0x570 [ 34.497973] ? lock_downgrade+0x990/0x990 [ 34.502112] ? lock_release+0xa40/0xa40 [ 34.506082] ? __lock_is_held+0xb6/0x140 [ 34.510157] ? __fget+0x35c/0x570 [ 34.513615] ? iterate_fd+0x3f0/0x3f0 [ 34.517443] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 34.522383] ? selinux_file_ioctl+0x444/0x690 [ 34.526870] ? __fget_light+0x297/0x380 [ 34.530841] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 34.535250] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 34.539392] ? __perf_event_task_sched_in+0x200/0xc20 [ 34.544586] ? security_file_ioctl+0x89/0xb0 [ 34.548997] compat_SyS_ioctl+0x1d7/0x3290 [ 34.553230] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 34.557383] ? do_ioctl+0x60/0x60 [ 34.560830] ? lock_downgrade+0x990/0x990 [ 34.564961] ? do_fast_syscall_32+0x158/0xf05 [ 34.569443] ? do_ioctl+0x60/0x60 [ 34.572881] do_fast_syscall_32+0x3f2/0xf05 [ 34.577190] ? do_raw_spin_trylock+0x190/0x190 [ 34.581778] ? do_int80_syscall_32+0x940/0x940 [ 34.586384] ? syscall_return_slowpath+0x2b3/0x510 [ 34.591301] ? finish_task_switch+0x1aa/0x740 [ 34.595790] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 34.600800] ? sysret32_from_system_call+0x5/0x3b [ 34.605646] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.610484] entry_SYSENTER_compat+0x51/0x60 [ 34.614872] RIP: 0023:0xf7f69c79 [ 34.618215] RSP: 002b:00000000f7f4401c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 [ 34.625909] RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 000000004020ae76 [ 34.633167] RDX: 0000000020227000 RSI: 0000000000000000 RDI: 0000000000000000 [ 34.640424] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 34.647686] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 34.654943] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 34.662228] [ 34.663841] Allocated by task 3724: [ 34.667457] save_stack_trace+0x16/0x20 [ 34.671423] save_stack+0x43/0xd0 [ 34.674868] kasan_kmalloc+0xad/0xe0 [ 34.678577] kmem_cache_alloc_trace+0x136/0x750 [ 34.683239] kvm_irqfd+0x16c/0x1d50 [ 34.686860] kvm_vm_ioctl+0x1079/0x1c40 [ 34.690826] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 34.695225] compat_SyS_ioctl+0x1d7/0x3290 [ 34.699453] do_fast_syscall_32+0x3f2/0xf05 [ 34.703769] entry_SYSENTER_compat+0x51/0x60 [ 34.708162] [ 34.709776] Freed by task 3246: [ 34.713047] save_stack_trace+0x16/0x20 [ 34.717008] save_stack+0x43/0xd0 [ 34.720476] kasan_slab_free+0x71/0xc0 [ 34.724356] kfree+0xca/0x250 [ 34.727453] irqfd_shutdown+0x13c/0x1a0 [ 34.731421] process_one_work+0xbf0/0x1bc0 [ 34.735646] worker_thread+0x223/0x1990 [ 34.739610] kthread+0x35e/0x430 [ 34.742965] ret_from_fork+0x2a/0x40 [ 34.746660] [ 34.748272] The buggy address belongs to the object at ffff8801ce954a40 [ 34.748272] which belongs to the cache kmalloc-512 of size 512 [ 34.761001] The buggy address is located 360 bytes inside of [ 34.761001] 512-byte region [ffff8801ce954a40, ffff8801ce954c40) [ 34.772859] The buggy address belongs to the page: [ 34.777778] page:ffffea00073a5500 count:1 mapcount:0 mapping:ffff8801ce954040 index:0x0 [ 34.785912] flags: 0x2fffc0000000100(slab) [ 34.790140] raw: 02fffc0000000100 ffff8801ce954040 0000000000000000 0000000100000006 [ 34.798009] raw: ffffea00073a70e0 ffffea00074b95e0 ffff8801dac00940 0000000000000000 [ 34.805876] page dumped because: kasan: bad access detected [ 34.811569] [ 34.813179] Memory state around the buggy address: [ 34.818092] ffff8801ce954a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.825451] ffff8801ce954b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.832799] >ffff8801ce954b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.840138] ^ [ 34.844793] ffff8801ce954c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 34.852140] ffff8801ce954c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.859483] ================================================================== [ 34.866825] Disabling lock debugging due to kernel taint [ 34.872416] Kernel panic - not syncing: panic_on_warn set ... [ 34.872416] [ 34.879769] CPU: 1 PID: 3724 Comm: syz-executor2 Tainted: G B 4.14.0-rc8+ #83 [ 34.888171] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.897507] Call Trace: [ 34.900086] dump_stack+0x194/0x257 [ 34.903705] ? arch_local_irq_restore+0x53/0x53 [ 34.908364] ? kasan_end_report+0x32/0x50 [ 34.912504] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.917254] ? irq_bypass_register_consumer+0x3c0/0x500 [ 34.922636] panic+0x1e4/0x417 [ 34.925816] ? __warn+0x1d9/0x1d9 [ 34.929265] ? irq_bypass_register_consumer+0x4b4/0x500 [ 34.934618] kasan_end_report+0x50/0x50 [ 34.938580] kasan_report+0x144/0x340 [ 34.942379] __asan_report_store8_noabort+0x17/0x20 [ 34.947395] irq_bypass_register_consumer+0x4b4/0x500 [ 34.952581] ? __disconnect+0x1a0/0x1a0 [ 34.956552] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.961560] ? trace_hardirqs_on+0xd/0x10 [ 34.965698] ? queue_work_on+0x106/0x1c0 [ 34.969755] kvm_irqfd+0x137a/0x1d50 [ 34.973468] ? kvm_eventfd_init+0x2a0/0x2a0 [ 34.977790] ? find_held_lock+0x35/0x1d0 [ 34.981847] ? __might_fault+0x110/0x1d0 [ 34.985895] ? lock_downgrade+0x990/0x990 [ 34.990034] ? lock_release+0xa40/0xa40 [ 34.993995] ? check_same_owner+0x320/0x320 [ 34.998317] ? __might_sleep+0x95/0x190 [ 35.002284] ? kasan_check_write+0x14/0x20 [ 35.006516] ? _copy_from_user+0x99/0x110 [ 35.010660] kvm_vm_ioctl+0x1079/0x1c40 [ 35.014630] ? kvm_set_memory_region+0x50/0x50 [ 35.019207] ? check_noncircular+0x20/0x20 [ 35.023445] ? find_held_lock+0x35/0x1d0 [ 35.027500] ? __fget+0x333/0x570 [ 35.030941] ? lock_downgrade+0x990/0x990 [ 35.035075] ? lock_release+0xa40/0xa40 [ 35.039035] ? __lock_is_held+0xb6/0x140 [ 35.043091] ? __fget+0x35c/0x570 [ 35.046534] ? iterate_fd+0x3f0/0x3f0 [ 35.050339] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 35.055256] ? selinux_file_ioctl+0x444/0x690 [ 35.059738] ? __fget_light+0x297/0x380 [ 35.063708] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 35.068107] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 35.072242] ? __perf_event_task_sched_in+0x200/0xc20 [ 35.077424] ? security_file_ioctl+0x89/0xb0 [ 35.081822] compat_SyS_ioctl+0x1d7/0x3290 [ 35.086044] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 35.090178] ? do_ioctl+0x60/0x60 [ 35.093617] ? lock_downgrade+0x990/0x990 [ 35.097754] ? do_fast_syscall_32+0x158/0xf05 [ 35.102238] ? do_ioctl+0x60/0x60 [ 35.105678] do_fast_syscall_32+0x3f2/0xf05 [ 35.109988] ? do_raw_spin_trylock+0x190/0x190 [ 35.114569] ? do_int80_syscall_32+0x940/0x940 [ 35.119148] ? syscall_return_slowpath+0x2b3/0x510 [ 35.124049] ? finish_task_switch+0x1aa/0x740 [ 35.128515] ? prepare_exit_to_usermode+0x2d0/0x2d0 [ 35.133499] ? sysret32_from_system_call+0x5/0x3b [ 35.138312] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.143126] entry_SYSENTER_compat+0x51/0x60 [ 35.147499] RIP: 0023:0xf7f69c79 [ 35.150836] RSP: 002b:00000000f7f4401c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 [ 35.158509] RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 000000004020ae76 [ 35.165748] RDX: 0000000020227000 RSI: 0000000000000000 RDI: 0000000000000000 [ 35.172988] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 35.180224] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.187464] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.195124] Dumping ftrace buffer: [ 35.198633] (ftrace buffer empty) [ 35.202307] Kernel Offset: disabled [ 35.205901] Rebooting in 86400 seconds..