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-4,10.128.15.231' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 44.306397] ================================================================== [ 44.313885] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4f0/0x500 [ 44.321579] Read of size 8 at addr ffff8801d8793450 by task syzkaller323796/5014 [ 44.329103] [ 44.330721] CPU: 0 PID: 5014 Comm: syzkaller323796 Not tainted 4.14.0-rc2+ #103 [ 44.338140] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.347469] Call Trace: [ 44.350050] dump_stack+0x194/0x257 [ 44.353665] ? arch_local_irq_restore+0x53/0x53 [ 44.358319] ? show_regs_print_info+0x65/0x65 [ 44.362810] ? irq_bypass_register_consumer+0x4f0/0x500 [ 44.368152] print_address_description+0x73/0x250 [ 44.372980] ? irq_bypass_register_consumer+0x4f0/0x500 [ 44.378327] kasan_report+0x25b/0x340 [ 44.382114] __asan_report_load8_noabort+0x14/0x20 [ 44.387040] irq_bypass_register_consumer+0x4f0/0x500 [ 44.392230] ? __disconnect+0x1a0/0x1a0 [ 44.396184] ? queue_work_on+0xfc/0x1c0 [ 44.400147] ? queue_work_on+0x106/0x1c0 [ 44.404194] kvm_irqfd+0x137a/0x1d50 [ 44.407904] ? kvm_eventfd_init+0x2a0/0x2a0 [ 44.412203] ? find_held_lock+0x39/0x1d0 [ 44.416252] ? lock_downgrade+0x990/0x990 [ 44.420372] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.425543] ? __might_fault+0xe0/0x1d0 [ 44.429495] ? unwind_get_return_address+0x61/0xa0 [ 44.434401] ? lock_release+0xd70/0xd70 [ 44.438347] ? check_same_owner+0x320/0x320 [ 44.442659] ? __might_sleep+0x95/0x190 [ 44.446618] ? kasan_check_write+0x14/0x20 [ 44.450826] ? _copy_from_user+0x99/0x110 [ 44.454954] kvm_vm_ioctl+0x1079/0x1c40 [ 44.458906] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.464077] ? kvm_set_memory_region+0x50/0x50 [ 44.468639] ? check_noncircular+0x20/0x20 [ 44.472875] ? find_held_lock+0x39/0x1d0 [ 44.476927] ? lock_downgrade+0x990/0x990 [ 44.481073] ? __fget+0xbb/0x580 [ 44.484414] ? find_held_lock+0x39/0x1d0 [ 44.488453] ? lock_release+0xd70/0xd70 [ 44.492402] ? __lock_is_held+0xbc/0x140 [ 44.496447] ? __fget+0x362/0x580 [ 44.499885] ? iterate_fd+0x3f0/0x3f0 [ 44.503666] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 44.508749] ? kvm_set_memory_region+0x50/0x50 [ 44.513303] do_vfs_ioctl+0x1b1/0x1530 [ 44.517172] ? ioctl_preallocate+0x2b0/0x2b0 [ 44.521559] ? selinux_capable+0x40/0x40 [ 44.525600] ? lockdep_invariant_state+0xcb/0x120 [ 44.530418] ? syscall_return_slowpath+0x2b3/0x510 [ 44.535317] ? finish_task_switch+0x4c9/0x740 [ 44.539794] ? security_file_ioctl+0x89/0xb0 [ 44.544180] SyS_ioctl+0x8f/0xc0 [ 44.547522] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.552251] RIP: 0033:0x445e29 [ 44.555412] RSP: 002b:00007f805c810dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 44.563095] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445e29 [ 44.570334] RDX: 0000000020025fe0 RSI: 000000004020ae76 RDI: 0000000000000005 [ 44.577574] RBP: 0000000000000086 R08: 00007f805c811700 R09: 00007f805c811700 [ 44.584816] R10: 00007f805c811700 R11: 0000000000000202 R12: 0000000000000000 [ 44.592058] R13: 00007ffd3612ad0f R14: 00007f805c8119c0 R15: 0000000000000000 [ 44.599318] [ 44.600919] Allocated by task 5014: [ 44.604518] save_stack_trace+0x16/0x20 [ 44.608464] save_stack+0x43/0xd0 [ 44.611889] kasan_kmalloc+0xad/0xe0 [ 44.615573] kmem_cache_alloc_trace+0x136/0x750 [ 44.620212] kvm_irqfd+0x16c/0x1d50 [ 44.623808] kvm_vm_ioctl+0x1079/0x1c40 [ 44.627754] do_vfs_ioctl+0x1b1/0x1530 [ 44.631612] SyS_ioctl+0x8f/0xc0 [ 44.634951] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 44.639686] [ 44.641285] Freed by task 3076: [ 44.644537] save_stack_trace+0x16/0x20 [ 44.648481] save_stack+0x43/0xd0 [ 44.651907] kasan_slab_free+0x71/0xc0 [ 44.655764] kfree+0xca/0x250 [ 44.658851] irqfd_shutdown+0x13c/0x1a0 [ 44.662801] process_one_work+0xbfa/0x1bd0 [ 44.667007] worker_thread+0x223/0x1860 [ 44.670969] kthread+0x39c/0x470 [ 44.674306] ret_from_fork+0x2a/0x40 [ 44.677986] [ 44.679585] The buggy address belongs to the object at ffff8801d87932c0 [ 44.679585] which belongs to the cache kmalloc-512 of size 512 [ 44.692211] The buggy address is located 400 bytes inside of [ 44.692211] 512-byte region [ffff8801d87932c0, ffff8801d87934c0) [ 44.704057] The buggy address belongs to the page: [ 44.708967] page:ffffea000761e4c0 count:1 mapcount:0 mapping:ffff8801d8793040 index:0x0 [ 44.717085] flags: 0x200000000000100(slab) [ 44.721293] raw: 0200000000000100 ffff8801d8793040 0000000000000000 0000000100000006 [ 44.729317] raw: ffffea00076085e0 ffffea00076034a0 ffff8801dac00940 0000000000000000 [ 44.737164] page dumped because: kasan: bad access detected [ 44.742843] [ 44.744443] Memory state around the buggy address: [ 44.749377] ffff8801d8793300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.756705] ffff8801d8793380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.764043] >ffff8801d8793400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.771374] ^ [ 44.777315] ffff8801d8793480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 44.784649] ffff8801d8793500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 44.791994] ================================================================== [ 44.799323] Disabling lock debugging due to kernel taint executing program [ 44.804859] Kernel panic - not syncing: panic_on_warn set ... [ 44.804859] [ 44.812214] CPU: 0 PID: 5014 Comm: syzkaller323796 Tainted: G B 4.14.0-rc2+ #103 [ 44.820852] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.830176] Call Trace: [ 44.832737] dump_stack+0x194/0x257 [ 44.836344] ? arch_local_irq_restore+0x53/0x53 [ 44.840997] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 44.845731] ? irq_bypass_register_consumer+0x450/0x500 [ 44.851069] panic+0x1e4/0x417 [ 44.854232] ? __warn+0x1d9/0x1d9 executing program [ 44.857664] ? irq_bypass_register_consumer+0x4f0/0x500 [ 44.863001] kasan_end_report+0x50/0x50 [ 44.866955] kasan_report+0x144/0x340 [ 44.870737] __asan_report_load8_noabort+0x14/0x20 [ 44.875637] irq_bypass_register_consumer+0x4f0/0x500 [ 44.880797] ? __disconnect+0x1a0/0x1a0 [ 44.884752] ? queue_work_on+0xfc/0x1c0 [ 44.888706] ? queue_work_on+0x106/0x1c0 [ 44.892744] kvm_irqfd+0x137a/0x1d50 [ 44.896446] ? kvm_eventfd_init+0x2a0/0x2a0 [ 44.900747] ? find_held_lock+0x39/0x1d0 [ 44.904789] ? lock_downgrade+0x990/0x990 [ 44.908907] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.914082] ? __might_fault+0xe0/0x1d0 [ 44.918032] ? unwind_get_return_address+0x61/0xa0 [ 44.922933] ? lock_release+0xd70/0xd70 [ 44.926877] ? check_same_owner+0x320/0x320 [ 44.931169] ? __might_sleep+0x95/0x190 [ 44.935118] ? kasan_check_write+0x14/0x20 [ 44.939323] ? _copy_from_user+0x99/0x110 [ 44.943441] kvm_vm_ioctl+0x1079/0x1c40 [ 44.947385] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 44.952544] ? kvm_set_memory_region+0x50/0x50 [ 44.957096] ? check_noncircular+0x20/0x20 [ 44.961310] ? find_held_lock+0x39/0x1d0 [ 44.965348] ? lock_downgrade+0x990/0x990 [ 44.969473] ? __fget+0xbb/0x580 [ 44.972805] ? find_held_lock+0x39/0x1d0 [ 44.976837] ? lock_release+0xd70/0xd70 [ 44.980783] ? __lock_is_held+0xbc/0x140 [ 44.984819] ? __fget+0x362/0x580 [ 44.988248] ? iterate_fd+0x3f0/0x3f0 [ 44.992025] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 44.997102] ? kvm_set_memory_region+0x50/0x50 [ 45.001651] do_vfs_ioctl+0x1b1/0x1530 [ 45.005512] ? ioctl_preallocate+0x2b0/0x2b0 [ 45.009891] ? selinux_capable+0x40/0x40 [ 45.013926] ? lockdep_invariant_state+0xcb/0x120 [ 45.018737] ? syscall_return_slowpath+0x2b3/0x510 [ 45.023633] ? finish_task_switch+0x4c9/0x740 [ 45.028102] ? security_file_ioctl+0x89/0xb0 [ 45.032481] SyS_ioctl+0x8f/0xc0 [ 45.035817] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 45.040540] RIP: 0033:0x445e29 [ 45.043695] RSP: 002b:00007f805c810dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 [ 45.051379] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445e29 [ 45.058614] RDX: 0000000020025fe0 RSI: 000000004020ae76 RDI: 0000000000000005 [ 45.065853] RBP: 0000000000000086 R08: 00007f805c811700 R09: 00007f805c811700 [ 45.073093] R10: 00007f805c811700 R11: 0000000000000202 R12: 0000000000000000 [ 45.080330] R13: 00007ffd3612ad0f R14: 00007f805c8119c0 R15: 0000000000000000 [ 45.088029] Dumping ftrace buffer: [ 45.091536] (ftrace buffer empty) [ 45.095211] Kernel Offset: disabled [ 45.098804] Rebooting in 86400 seconds..