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-next-kasan-gce-3,10.128.0.31' (ECDSA) to the list of known hosts. 2017/11/12 03:00:44 parsed 1 programs 2017/11/12 03:00:44 executed programs: 0 2017/11/12 03:00:49 executed programs: 101 syzkaller login: [ 43.356555] ================================================================== [ 43.357631] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4b4/0x500 [ 43.358664] Write of size 8 at addr ffff8801c51769c0 by task syz-executor0/3698 [ 43.359641] [ 43.359876] CPU: 0 PID: 3698 Comm: syz-executor0 Not tainted 4.14.0-rc8-next-20171110+ #40 [ 43.360975] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.362196] Call Trace: [ 43.362555] dump_stack+0x194/0x257 [ 43.363054] ? arch_local_irq_restore+0x53/0x53 [ 43.363680] ? show_regs_print_info+0x65/0x65 [ 43.364314] ? irq_bypass_register_consumer+0x4b4/0x500 [ 43.365033] print_address_description+0x73/0x250 [ 43.365681] ? irq_bypass_register_consumer+0x4b4/0x500 [ 43.366399] kasan_report+0x25b/0x340 [ 43.366948] __asan_report_store8_noabort+0x17/0x20 [ 43.367636] irq_bypass_register_consumer+0x4b4/0x500 [ 43.368331] ? __disconnect+0x1a0/0x1a0 [ 43.368868] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.369541] ? trace_hardirqs_on+0xd/0x10 [ 43.370101] ? queue_work_on+0x106/0x1c0 [ 43.370659] kvm_irqfd+0x137a/0x1d50 [ 43.371161] ? check_noncircular+0x20/0x20 [ 43.371779] ? kvm_eventfd_init+0x2a0/0x2a0 [ 43.372379] ? find_held_lock+0x39/0x1d0 [ 43.372948] ? lock_downgrade+0x990/0x990 [ 43.373528] ? __might_fault+0xe0/0x1d0 [ 43.374077] ? lock_release+0xd90/0xd90 [ 43.374614] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 43.375423] ? kernel_text_address+0x102/0x140 [ 43.376055] ? perf_trace_run_bpf_submit+0x206/0x330 [ 43.376786] ? __might_sleep+0x95/0x190 [ 43.380743] ? kasan_check_write+0x14/0x20 [ 43.384948] ? _copy_from_user+0x99/0x110 [ 43.389075] kvm_vm_ioctl+0x1079/0x1c40 [ 43.393028] ? perf_trace_lock+0x4d6/0x900 [ 43.397236] ? kvm_set_memory_region+0x50/0x50 [ 43.401786] ? alloc_file+0x26/0x3a0 [ 43.405479] ? trace_event_raw_event_lock+0x340/0x340 [ 43.410649] ? check_noncircular+0x20/0x20 [ 43.414857] ? memset+0x31/0x40 [ 43.418118] ? do_futex+0x85b/0x2280 [ 43.421802] ? perf_trace_lock+0x4d6/0x900 [ 43.426033] ? find_held_lock+0x39/0x1d0 [ 43.430088] ? lock_downgrade+0x990/0x990 [ 43.434208] ? __fget+0xbb/0x580 [ 43.437547] ? __raw_spin_lock_init+0x1c/0x100 [ 43.442105] ? lock_release+0xd90/0xd90 [ 43.446055] ? __lock_is_held+0xbc/0x140 [ 43.450111] ? __fget+0x362/0x580 [ 43.453550] ? iterate_fd+0x3f0/0x3f0 [ 43.457323] ? __lock_is_held+0xbc/0x140 [ 43.461376] ? kvm_set_memory_region+0x50/0x50 [ 43.465930] do_vfs_ioctl+0x1b1/0x1530 [ 43.469786] ? __fd_install+0x288/0x740 [ 43.473726] ? anon_inode_getfile+0x349/0x490 [ 43.478201] ? ioctl_preallocate+0x2b0/0x2b0 [ 43.482583] ? selinux_capable+0x40/0x40 [ 43.486624] ? SyS_futex+0x269/0x390 [ 43.490329] ? security_file_ioctl+0x89/0xb0 [ 43.494723] SyS_ioctl+0x8f/0xc0 [ 43.498076] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 43.502803] RIP: 0033:0x452879 [ 43.505961] RSP: 002b:00007f7875285be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 43.513639] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452879 [ 43.520897] RDX: 0000000020227000 RSI: 000000004020ae76 RDI: 0000000000000012 [ 43.528141] RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 [ 43.535379] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f4478 [ 43.542617] R13: 00000000ffffffff R14: 00007f78752866d4 R15: 0000000000000000 [ 43.549891] [ 43.551489] Allocated by task 3698: [ 43.555091] save_stack+0x43/0xd0 [ 43.558511] kasan_kmalloc+0xad/0xe0 [ 43.562198] kmem_cache_alloc_trace+0x136/0x750 [ 43.566838] kvm_irqfd+0x16c/0x1d50 [ 43.570431] kvm_vm_ioctl+0x1079/0x1c40 [ 43.574383] do_vfs_ioctl+0x1b1/0x1530 [ 43.578255] SyS_ioctl+0x8f/0xc0 [ 43.581602] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 43.586329] [ 43.587932] Freed by task 24: [ 43.591012] save_stack+0x43/0xd0 [ 43.594437] kasan_slab_free+0x71/0xc0 [ 43.598299] kfree+0xca/0x250 [ 43.601382] irqfd_shutdown+0x13c/0x1a0 [ 43.605342] process_one_work+0xbfa/0x1bc0 [ 43.609558] worker_thread+0x223/0x1990 [ 43.613503] kthread+0x37a/0x440 [ 43.616844] ret_from_fork+0x24/0x30 [ 43.620527] [ 43.622128] The buggy address belongs to the object at ffff8801c5176840 [ 43.622128] which belongs to the cache kmalloc-512 of size 512 [ 43.634764] The buggy address is located 384 bytes inside of [ 43.634764] 512-byte region [ffff8801c5176840, ffff8801c5176a40) [ 43.646621] The buggy address belongs to the page: [ 43.651539] page:ffffea0007145d80 count:1 mapcount:0 mapping:ffff8801c51760c0 index:0x0 [ 43.659668] flags: 0x2fffc0000000100(slab) [ 43.663886] raw: 02fffc0000000100 ffff8801c51760c0 0000000000000000 0000000100000006 [ 43.671756] raw: ffffea0007145a20 ffffea0007141f60 ffff8801db000940 0000000000000000 [ 43.679619] page dumped because: kasan: bad access detected [ 43.685312] [ 43.686922] Memory state around the buggy address: [ 43.691826] ffff8801c5176880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.699166] ffff8801c5176900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.706503] >ffff8801c5176980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.713839] ^ [ 43.719264] ffff8801c5176a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 43.726607] ffff8801c5176a80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 43.733946] ================================================================== [ 43.741276] Disabling lock debugging due to kernel taint [ 43.746798] Kernel panic - not syncing: panic_on_warn set ... [ 43.746798] [ 43.754139] CPU: 0 PID: 3698 Comm: syz-executor0 Tainted: G B 4.14.0-rc8-next-20171110+ #40 [ 43.763812] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.773140] Call Trace: [ 43.775713] dump_stack+0x194/0x257 [ 43.779326] ? arch_local_irq_restore+0x53/0x53 [ 43.783976] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.788708] ? vsnprintf+0x1ed/0x1900 [ 43.792486] ? irq_bypass_register_consumer+0x470/0x500 [ 43.797827] panic+0x1e4/0x41c [ 43.800994] ? refcount_error_report+0x214/0x214 [ 43.805751] ? irq_bypass_register_consumer+0x4b4/0x500 [ 43.811096] kasan_end_report+0x50/0x50 [ 43.815049] kasan_report+0x144/0x340 [ 43.818831] __asan_report_store8_noabort+0x17/0x20 [ 43.823823] irq_bypass_register_consumer+0x4b4/0x500 [ 43.828994] ? __disconnect+0x1a0/0x1a0 [ 43.832947] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 43.837942] ? trace_hardirqs_on+0xd/0x10 [ 43.842066] ? queue_work_on+0x106/0x1c0 [ 43.846108] kvm_irqfd+0x137a/0x1d50 [ 43.849796] ? check_noncircular+0x20/0x20 [ 43.854029] ? kvm_eventfd_init+0x2a0/0x2a0 [ 43.858353] ? find_held_lock+0x39/0x1d0 [ 43.862416] ? lock_downgrade+0x990/0x990 [ 43.866547] ? __might_fault+0xe0/0x1d0 [ 43.870510] ? lock_release+0xd90/0xd90 [ 43.874471] ? trace_event_raw_event_sched_switch+0x8a0/0x8a0 [ 43.880352] ? kernel_text_address+0x102/0x140 [ 43.884927] ? perf_trace_run_bpf_submit+0x206/0x330 [ 43.890019] ? __might_sleep+0x95/0x190 [ 43.893989] ? kasan_check_write+0x14/0x20 [ 43.898207] ? _copy_from_user+0x99/0x110 [ 43.902356] kvm_vm_ioctl+0x1079/0x1c40 [ 43.906329] ? perf_trace_lock+0x4d6/0x900 [ 43.910547] ? kvm_set_memory_region+0x50/0x50 [ 43.915100] ? alloc_file+0x26/0x3a0 [ 43.918801] ? trace_event_raw_event_lock+0x340/0x340 [ 43.923982] ? check_noncircular+0x20/0x20 [ 43.928204] ? memset+0x31/0x40 [ 43.931474] ? do_futex+0x85b/0x2280 [ 43.935171] ? perf_trace_lock+0x4d6/0x900 [ 43.939416] ? find_held_lock+0x39/0x1d0 [ 43.943565] ? lock_downgrade+0x990/0x990 [ 43.947701] ? __fget+0xbb/0x580 [ 43.951051] ? __raw_spin_lock_init+0x1c/0x100 [ 43.955611] ? lock_release+0xd90/0xd90 [ 43.959561] ? __lock_is_held+0xbc/0x140 [ 43.963615] ? __fget+0x362/0x580 [ 43.967054] ? iterate_fd+0x3f0/0x3f0 [ 43.970829] ? __lock_is_held+0xbc/0x140 [ 43.974882] ? kvm_set_memory_region+0x50/0x50 [ 43.979437] do_vfs_ioctl+0x1b1/0x1530 [ 43.983295] ? __fd_install+0x288/0x740 [ 43.987245] ? anon_inode_getfile+0x349/0x490 [ 43.991720] ? ioctl_preallocate+0x2b0/0x2b0 [ 43.996107] ? selinux_capable+0x40/0x40 [ 44.000151] ? SyS_futex+0x269/0x390 [ 44.003877] ? security_file_ioctl+0x89/0xb0 [ 44.008273] SyS_ioctl+0x8f/0xc0 [ 44.011628] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 44.016357] RIP: 0033:0x452879 [ 44.019517] RSP: 002b:00007f7875285be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 44.027201] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452879 [ 44.034447] RDX: 0000000020227000 RSI: 000000004020ae76 RDI: 0000000000000012 [ 44.041687] RBP: 0000000000000086 R08: 0000000000000000 R09: 0000000000000000 [ 44.048926] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f4478 [ 44.056165] R13: 00000000ffffffff R14: 00007f78752866d4 R15: 0000000000000000 [ 44.063491] Dumping ftrace buffer: [ 44.067004] (ftrace buffer empty) [ 44.070687] Kernel Offset: disabled [ 44.074293] Rebooting in 86400 seconds..