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-8,10.128.15.217' (ECDSA) to the list of known hosts. 2017/11/12 03:25:20 parsed 1 programs 2017/11/12 03:25:20 executed programs: 0 syzkaller login: [ 34.117682] ================================================================== [ 34.118941] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4f0/0x500 [ 34.120028] Read of size 8 at addr ffff8801ce524df8 by task syz-executor5/3915 [ 34.121004] [ 34.121288] CPU: 1 PID: 3915 Comm: syz-executor5 Not tainted 4.14.0-rc8+ #173 [ 34.122563] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.124044] Call Trace: [ 34.124518] dump_stack+0x194/0x257 [ 34.125025] ? arch_local_irq_restore+0x53/0x53 [ 34.125671] ? show_regs_print_info+0x65/0x65 [ 34.126292] ? irq_bypass_register_consumer+0x4f0/0x500 [ 34.127125] print_address_description+0x73/0x250 [ 34.127805] ? irq_bypass_register_consumer+0x4f0/0x500 [ 34.128852] kasan_report+0x25b/0x340 [ 34.129474] __asan_report_load8_noabort+0x14/0x20 [ 34.130188] irq_bypass_register_consumer+0x4f0/0x500 [ 34.130912] ? __disconnect+0x1a0/0x1a0 [ 34.131879] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.132630] ? trace_hardirqs_on+0xd/0x10 [ 34.133191] ? queue_work_on+0x106/0x1c0 [ 34.133774] kvm_irqfd+0x137a/0x1d50 [ 34.134309] ? kvm_eventfd_init+0x2a0/0x2a0 [ 34.134934] ? print_irqtrace_events+0x270/0x270 [ 34.135657] ? get_futex_value_locked+0xc3/0xf0 [ 34.136329] ? find_held_lock+0x35/0x1d0 [ 34.136941] ? __might_fault+0x110/0x1d0 [ 34.137556] ? lock_downgrade+0x990/0x990 [ 34.139491] ? lock_release+0xa40/0xa40 [ 34.143448] ? check_same_owner+0x320/0x320 [ 34.147752] ? futex_wait+0x69e/0x990 [ 34.151534] ? kernel_text_address+0x102/0x140 [ 34.156119] ? __might_sleep+0x95/0x190 [ 34.160097] ? kasan_check_write+0x14/0x20 [ 34.164327] ? _copy_from_user+0x99/0x110 [ 34.168477] kvm_vm_ioctl+0x1079/0x1c40 [ 34.172451] ? save_stack_trace+0x16/0x20 [ 34.176596] ? kvm_set_memory_region+0x50/0x50 [ 34.181196] ? check_noncircular+0x20/0x20 [ 34.185423] ? do_futex+0x85b/0x2280 [ 34.189129] ? debug_mutex_init+0x1c/0x60 [ 34.193268] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.198291] ? find_held_lock+0x35/0x1d0 [ 34.202351] ? __fget+0x333/0x570 [ 34.205792] ? lock_downgrade+0x990/0x990 [ 34.209925] ? lock_release+0xa40/0xa40 [ 34.213888] ? __lock_is_held+0xb6/0x140 [ 34.217956] ? __fget+0x35c/0x570 [ 34.221410] ? iterate_fd+0x3f0/0x3f0 [ 34.225207] ? __lock_is_held+0xb6/0x140 [ 34.229274] ? kvm_set_memory_region+0x50/0x50 [ 34.233844] do_vfs_ioctl+0x1b1/0x1520 [ 34.237725] ? __fd_install+0x2f7/0x6a0 [ 34.241691] ? anon_inode_getfile+0x343/0x480 [ 34.246181] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.250578] ? selinux_capable+0x40/0x40 [ 34.254633] ? SyS_futex+0x269/0x390 [ 34.258528] ? security_file_ioctl+0x89/0xb0 [ 34.262929] SyS_ioctl+0x8f/0xc0 [ 34.266292] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.271030] RIP: 0033:0x452879 [ 34.274203] RSP: 002b:00007fd510fe4be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 34.281908] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452879 [ 34.289160] RDX: 0000000020227000 RSI: 000000004020ae76 RDI: 0000000000000011 [ 34.296412] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 34.303664] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f4430 [ 34.310919] R13: 00000000ffffffff R14: 00007fd510fe56d4 R15: 0000000000000000 [ 34.318200] [ 34.319808] Allocated by task 3915: [ 34.323422] save_stack_trace+0x16/0x20 [ 34.327383] save_stack+0x43/0xd0 [ 34.330823] kasan_kmalloc+0xad/0xe0 [ 34.334521] kmem_cache_alloc_trace+0x136/0x750 [ 34.339177] kvm_irqfd+0x16c/0x1d50 [ 34.342788] kvm_vm_ioctl+0x1079/0x1c40 [ 34.346750] do_vfs_ioctl+0x1b1/0x1520 [ 34.350624] SyS_ioctl+0x8f/0xc0 [ 34.353977] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.358710] [ 34.360319] Freed by task 1363: [ 34.363587] save_stack_trace+0x16/0x20 [ 34.367544] save_stack+0x43/0xd0 [ 34.370983] kasan_slab_free+0x71/0xc0 [ 34.374850] kfree+0xca/0x250 [ 34.377942] irqfd_shutdown+0x13c/0x1a0 [ 34.381900] process_one_work+0xbf0/0x1bc0 [ 34.386123] worker_thread+0x223/0x1990 [ 34.390084] kthread+0x35e/0x430 [ 34.393435] ret_from_fork+0x2a/0x40 [ 34.397125] [ 34.398736] The buggy address belongs to the object at ffff8801ce524c80 [ 34.398736] which belongs to the cache kmalloc-512 of size 512 [ 34.411375] The buggy address is located 376 bytes inside of [ 34.411375] 512-byte region [ffff8801ce524c80, ffff8801ce524e80) [ 34.423231] The buggy address belongs to the page: [ 34.428147] page:ffffea0007394900 count:1 mapcount:0 mapping:ffff8801ce524000 index:0x0 [ 34.436279] flags: 0x2fffc0000000100(slab) [ 34.440501] raw: 02fffc0000000100 ffff8801ce524000 0000000000000000 0000000100000006 [ 34.448366] raw: ffffea0007397aa0 ffffea0007397ba0 ffff8801dac00940 0000000000000000 [ 34.456225] page dumped because: kasan: bad access detected [ 34.461913] [ 34.463520] Memory state around the buggy address: [ 34.468434] ffff8801ce524c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.475779] ffff8801ce524d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.483209] >ffff8801ce524d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.490552] ^ [ 34.497808] ffff8801ce524e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.505152] ffff8801ce524e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.512493] ================================================================== [ 34.519832] Disabling lock debugging due to kernel taint [ 34.525348] Kernel panic - not syncing: panic_on_warn set ... [ 34.525348] [ 34.532695] CPU: 1 PID: 3915 Comm: syz-executor5 Tainted: G B 4.14.0-rc8+ #173 [ 34.541161] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.550497] Call Trace: [ 34.553076] dump_stack+0x194/0x257 [ 34.556695] ? arch_local_irq_restore+0x53/0x53 [ 34.561346] ? kasan_end_report+0x32/0x50 [ 34.565478] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.570221] ? irq_bypass_register_consumer+0x4c0/0x500 [ 34.575572] panic+0x1e4/0x417 [ 34.578748] ? __warn+0x1d9/0x1d9 [ 34.582196] ? irq_bypass_register_consumer+0x4f0/0x500 [ 34.592851] kasan_end_report+0x50/0x50 [ 34.596811] kasan_report+0x144/0x340 [ 34.600602] __asan_report_load8_noabort+0x14/0x20 [ 34.605519] irq_bypass_register_consumer+0x4f0/0x500 [ 34.610693] ? __disconnect+0x1a0/0x1a0 [ 34.614648] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.619648] ? trace_hardirqs_on+0xd/0x10 [ 34.623782] ? queue_work_on+0x106/0x1c0 [ 34.627830] kvm_irqfd+0x137a/0x1d50 [ 34.631539] ? kvm_eventfd_init+0x2a0/0x2a0 [ 34.635845] ? print_irqtrace_events+0x270/0x270 [ 34.640589] ? get_futex_value_locked+0xc3/0xf0 [ 34.645331] ? find_held_lock+0x35/0x1d0 [ 34.649409] ? __might_fault+0x110/0x1d0 [ 34.653452] ? lock_downgrade+0x990/0x990 [ 34.657583] ? lock_release+0xa40/0xa40 [ 34.661541] ? check_same_owner+0x320/0x320 [ 34.665843] ? futex_wait+0x69e/0x990 [ 34.669626] ? kernel_text_address+0x102/0x140 [ 34.674198] ? __might_sleep+0x95/0x190 [ 34.678163] ? kasan_check_write+0x14/0x20 [ 34.682382] ? _copy_from_user+0x99/0x110 [ 34.686778] kvm_vm_ioctl+0x1079/0x1c40 [ 34.690734] ? save_stack_trace+0x16/0x20 [ 34.694868] ? kvm_set_memory_region+0x50/0x50 [ 34.699451] ? check_noncircular+0x20/0x20 [ 34.703673] ? do_futex+0x85b/0x2280 [ 34.707371] ? debug_mutex_init+0x1c/0x60 [ 34.711508] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.716516] ? find_held_lock+0x35/0x1d0 [ 34.720572] ? __fget+0x333/0x570 [ 34.724010] ? lock_downgrade+0x990/0x990 [ 34.728142] ? lock_release+0xa40/0xa40 [ 34.732103] ? __lock_is_held+0xb6/0x140 [ 34.736158] ? __fget+0x35c/0x570 [ 34.739600] ? iterate_fd+0x3f0/0x3f0 [ 34.743384] ? __lock_is_held+0xb6/0x140 [ 34.747440] ? kvm_set_memory_region+0x50/0x50 [ 34.752004] do_vfs_ioctl+0x1b1/0x1520 [ 34.755871] ? __fd_install+0x2f7/0x6a0 [ 34.759825] ? anon_inode_getfile+0x343/0x480 [ 34.764312] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.768702] ? selinux_capable+0x40/0x40 [ 34.772746] ? SyS_futex+0x269/0x390 [ 34.776451] ? security_file_ioctl+0x89/0xb0 [ 34.780845] SyS_ioctl+0x8f/0xc0 [ 34.784200] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 34.788940] RIP: 0033:0x452879 [ 34.792109] RSP: 002b:00007fd510fe4be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 34.799798] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452879 [ 34.807055] RDX: 0000000020227000 RSI: 000000004020ae76 RDI: 0000000000000011 [ 34.814307] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 34.821566] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f4430 [ 34.828820] R13: 00000000ffffffff R14: 00007fd510fe56d4 R15: 0000000000000000 [ 34.836548] Dumping ftrace buffer: [ 34.840055] (ftrace buffer empty) [ 34.843729] Kernel Offset: disabled [ 34.847322] Rebooting in 86400 seconds..