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-0,10.128.0.44' (ECDSA) to the list of known hosts. 2017/09/24 15:42:29 parsed 1 programs 2017/09/24 15:42:29 executed programs: 0 syzkaller login: [ 41.534027] hrtimer: interrupt took 17923 ns [ 45.524001] ================================================================== [ 45.531468] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4b4/0x500 [ 45.539173] Write of size 8 at addr ffff8801d8426700 by task syz-executor6/3572 [ 45.546604] [ 45.548224] CPU: 1 PID: 3572 Comm: syz-executor6 Not tainted 4.14.0-rc1+ #8 [ 45.555311] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.564661] Call Trace: [ 45.567250] dump_stack+0x194/0x257 [ 45.570882] ? arch_local_irq_restore+0x53/0x53 [ 45.575550] ? show_regs_print_info+0x65/0x65 [ 45.580050] ? irq_bypass_register_consumer+0x4b4/0x500 [ 45.585412] print_address_description+0x73/0x250 [ 45.590253] ? irq_bypass_register_consumer+0x4b4/0x500 [ 45.595612] kasan_report+0x24e/0x340 [ 45.599416] __asan_report_store8_noabort+0x17/0x20 [ 45.604423] irq_bypass_register_consumer+0x4b4/0x500 [ 45.609608] ? __disconnect+0x1a0/0x1a0 [ 45.613582] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.618604] kvm_irqfd+0x137a/0x1d50 [ 45.622336] ? kvm_eventfd_init+0x2a0/0x2a0 [ 45.626657] ? find_held_lock+0x39/0x1d0 [ 45.630729] ? lock_downgrade+0x990/0x990 [ 45.634866] ? mark_held_locks+0xb2/0x100 [ 45.639008] ? retint_kernel+0x10/0x10 [ 45.642892] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.647904] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 45.652669] ? retint_kernel+0x10/0x10 [ 45.656567] ? do_fast_syscall_32+0x3f2/0xeed [ 45.661065] ? kasan_check_write+0x14/0x20 [ 45.665290] ? _copy_from_user+0x99/0x110 [ 45.669440] kvm_vm_ioctl+0x1079/0x1c40 [ 45.673418] ? kvm_set_memory_region+0x50/0x50 [ 45.678012] ? lock_acquire+0x1d5/0x580 [ 45.681986] ? find_held_lock+0x39/0x1d0 [ 45.686056] ? lock_downgrade+0x990/0x990 [ 45.690210] ? __fget+0xbb/0x580 [ 45.693570] ? finish_task_switch+0x1aa/0x740 [ 45.698067] ? lock_release+0xd70/0xd70 [ 45.702042] ? __lock_is_held+0xbc/0x140 [ 45.706119] ? __fget+0x362/0x580 [ 45.709639] ? iterate_fd+0x3f0/0x3f0 [ 45.713435] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 45.718467] ? __lock_is_held+0xbc/0x140 [ 45.722524] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 45.727443] ? selinux_file_ioctl+0x444/0x690 [ 45.731927] ? __fget_light+0x29d/0x390 [ 45.735905] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 45.740310] ? __schedule+0x2070/0x2070 [ 45.744284] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 45.748433] ? get_unused_fd_flags+0x190/0x190 [ 45.753012] ? __init_waitqueue_head+0x97/0x140 [ 45.757685] ? security_file_ioctl+0x7d/0xb0 [ 45.762080] ? security_file_ioctl+0x89/0xb0 [ 45.766490] compat_SyS_ioctl+0x1da/0x3300 [ 45.770716] ? trace_hardirqs_off+0xd/0x10 [ 45.774950] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 45.779095] ? do_ioctl+0x60/0x60 [ 45.782546] ? do_fast_syscall_32+0x158/0xeed [ 45.787045] ? do_ioctl+0x60/0x60 [ 45.790495] do_fast_syscall_32+0x3f2/0xeed [ 45.794822] ? do_int80_syscall_32+0x930/0x930 [ 45.799401] ? _raw_spin_unlock_irq+0x56/0x70 [ 45.803909] ? lockdep_sys_exit+0x47/0xf0 [ 45.808056] ? syscall_return_slowpath+0x2b3/0x500 [ 45.812987] ? finish_task_switch+0x1aa/0x740 [ 45.817483] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 45.822503] ? sysret32_from_system_call+0x5/0x3b [ 45.827347] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.832310] entry_SYSENTER_compat+0x51/0x60 [ 45.836703] RIP: 0023:0xf7f5ac79 [ 45.840043] RSP: 002b:00000000f7f5605c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 [ 45.847741] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000004020ae76 [ 45.854997] RDX: 0000000020025fe0 RSI: 0000000000000000 RDI: 0000000000000000 [ 45.862256] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 45.869511] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 45.876768] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.884047] [ 45.885651] Allocated by task 3572: [ 45.889267] save_stack_trace+0x16/0x20 [ 45.893223] save_stack+0x43/0xd0 [ 45.896649] kasan_kmalloc+0xad/0xe0 [ 45.900335] kmem_cache_alloc_trace+0x136/0x750 [ 45.904976] kvm_irqfd+0x16c/0x1d50 [ 45.908573] kvm_vm_ioctl+0x1079/0x1c40 [ 45.912519] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 45.916902] compat_SyS_ioctl+0x1da/0x3300 [ 45.921108] do_fast_syscall_32+0x3f2/0xeed [ 45.925418] entry_SYSENTER_compat+0x51/0x60 [ 45.929804] [ 45.931405] Freed by task 1336: [ 45.934664] save_stack_trace+0x16/0x20 [ 45.938610] save_stack+0x43/0xd0 [ 45.942039] kasan_slab_free+0x71/0xc0 [ 45.945898] kfree+0xca/0x250 [ 45.948982] irqfd_shutdown+0x13c/0x1a0 [ 45.952931] process_one_work+0xbfa/0x1bd0 [ 45.957135] worker_thread+0x223/0x1860 [ 45.961086] kthread+0x39c/0x470 [ 45.964437] ret_from_fork+0x2a/0x40 [ 45.968136] [ 45.969737] The buggy address belongs to the object at ffff8801d8426580 [ 45.969737] which belongs to the cache kmalloc-512 of size 512 [ 45.982365] The buggy address is located 384 bytes inside of [ 45.982365] 512-byte region [ffff8801d8426580, ffff8801d8426780) [ 45.994211] The buggy address belongs to the page: [ 45.999113] page:ffffea0007610980 count:1 mapcount:0 mapping:ffff8801d8426080 index:0x0 [ 46.007240] flags: 0x200000000000100(slab) [ 46.011473] raw: 0200000000000100 ffff8801d8426080 0000000000000000 0000000100000006 [ 46.019328] raw: ffffea000764c5a0 ffffea0007611ea0 ffff8801dac00940 0000000000000000 [ 46.027183] page dumped because: kasan: bad access detected [ 46.032867] [ 46.034469] Memory state around the buggy address: [ 46.039370] ffff8801d8426600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.046700] ffff8801d8426680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.054035] >ffff8801d8426700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.061363] ^ [ 46.064700] ffff8801d8426780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.072033] ffff8801d8426800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.079364] ================================================================== [ 46.086702] Disabling lock debugging due to kernel taint [ 46.092401] Kernel panic - not syncing: panic_on_warn set ... [ 46.092401] [ 46.099750] CPU: 1 PID: 3572 Comm: syz-executor6 Tainted: G B 4.14.0-rc1+ #8 [ 46.108043] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.117475] Call Trace: [ 46.120052] dump_stack+0x194/0x257 [ 46.123671] ? arch_local_irq_restore+0x53/0x53 [ 46.128336] ? irq_bypass_register_consumer+0x470/0x500 [ 46.133691] panic+0x1e4/0x417 [ 46.136872] ? __warn+0x1d9/0x1d9 [ 46.140327] ? irq_bypass_register_consumer+0x4b4/0x500 [ 46.145680] kasan_end_report+0x50/0x50 [ 46.149641] kasan_report+0x137/0x340 [ 46.153429] __asan_report_store8_noabort+0x17/0x20 [ 46.158434] irq_bypass_register_consumer+0x4b4/0x500 [ 46.163619] ? __disconnect+0x1a0/0x1a0 [ 46.167587] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.172604] kvm_irqfd+0x137a/0x1d50 [ 46.176314] ? kvm_eventfd_init+0x2a0/0x2a0 [ 46.180624] ? find_held_lock+0x39/0x1d0 [ 46.184680] ? lock_downgrade+0x990/0x990 [ 46.188811] ? mark_held_locks+0xb2/0x100 [ 46.192947] ? retint_kernel+0x10/0x10 [ 46.196823] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.201827] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 46.206577] ? retint_kernel+0x10/0x10 [ 46.210462] ? do_fast_syscall_32+0x3f2/0xeed [ 46.214947] ? kasan_check_write+0x14/0x20 [ 46.219166] ? _copy_from_user+0x99/0x110 [ 46.223306] kvm_vm_ioctl+0x1079/0x1c40 [ 46.227273] ? kvm_set_memory_region+0x50/0x50 [ 46.231847] ? lock_acquire+0x1d5/0x580 [ 46.235813] ? find_held_lock+0x39/0x1d0 [ 46.239873] ? lock_downgrade+0x990/0x990 [ 46.244015] ? __fget+0xbb/0x580 [ 46.247369] ? finish_task_switch+0x1aa/0x740 [ 46.251855] ? lock_release+0xd70/0xd70 [ 46.255826] ? __lock_is_held+0xbc/0x140 [ 46.259881] ? __fget+0x362/0x580 [ 46.263325] ? iterate_fd+0x3f0/0x3f0 [ 46.267111] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 46.272125] ? __lock_is_held+0xbc/0x140 [ 46.276176] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 46.281091] ? selinux_file_ioctl+0x444/0x690 [ 46.285573] ? __fget_light+0x29d/0x390 [ 46.289544] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 46.293938] ? __schedule+0x2070/0x2070 [ 46.297900] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 46.302034] ? get_unused_fd_flags+0x190/0x190 [ 46.306610] ? __init_waitqueue_head+0x97/0x140 [ 46.311268] ? security_file_ioctl+0x7d/0xb0 [ 46.315657] ? security_file_ioctl+0x89/0xb0 [ 46.320056] compat_SyS_ioctl+0x1da/0x3300 [ 46.324281] ? trace_hardirqs_off+0xd/0x10 [ 46.328503] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 46.332640] ? do_ioctl+0x60/0x60 [ 46.336081] ? do_fast_syscall_32+0x158/0xeed [ 46.340563] ? do_ioctl+0x60/0x60 [ 46.344007] do_fast_syscall_32+0x3f2/0xeed [ 46.348322] ? do_int80_syscall_32+0x930/0x930 [ 46.352891] ? _raw_spin_unlock_irq+0x56/0x70 [ 46.357767] ? lockdep_sys_exit+0x47/0xf0 [ 46.361901] ? syscall_return_slowpath+0x2b3/0x500 [ 46.366813] ? finish_task_switch+0x1aa/0x740 [ 46.371293] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 46.376298] ? sysret32_from_system_call+0x5/0x3b [ 46.381131] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.385963] entry_SYSENTER_compat+0x51/0x60 [ 46.390354] RIP: 0023:0xf7f5ac79 [ 46.393698] RSP: 002b:00000000f7f5605c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 [ 46.401390] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000004020ae76 [ 46.408642] RDX: 0000000020025fe0 RSI: 0000000000000000 RDI: 0000000000000000 [ 46.415890] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 46.423141] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 46.430392] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 46.438096] Dumping ftrace buffer: [ 46.441612] (ftrace buffer empty) [ 46.445289] Kernel Offset: disabled [ 46.448884] Rebooting in 86400 seconds..