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-3,10.128.0.5' (ECDSA) to the list of known hosts. 2017/09/24 13:31:26 parsed 1 programs 2017/09/24 13:31:26 executed programs: 0 2017/09/24 13:31:31 executed programs: 213 2017/09/24 13:31:36 executed programs: 433 syzkaller login: [ 56.390462] ================================================================== [ 56.397895] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4b4/0x500 [ 56.405572] Write of size 8 at addr ffff8801c994a240 by task syz-executor0/4607 [ 56.412983] [ 56.414583] CPU: 0 PID: 4607 Comm: syz-executor0 Not tainted 4.14.0-rc1+ #8 [ 56.421648] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.430969] Call Trace: [ 56.433529] dump_stack+0x194/0x257 [ 56.437130] ? arch_local_irq_restore+0x53/0x53 [ 56.441768] ? show_regs_print_info+0x65/0x65 [ 56.446242] ? irq_bypass_register_consumer+0x4b4/0x500 [ 56.451579] print_address_description+0x73/0x250 [ 56.456393] ? irq_bypass_register_consumer+0x4b4/0x500 [ 56.461729] kasan_report+0x24e/0x340 [ 56.465511] __asan_report_store8_noabort+0x17/0x20 [ 56.470496] irq_bypass_register_consumer+0x4b4/0x500 [ 56.475656] ? __disconnect+0x1a0/0x1a0 [ 56.479601] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 56.484591] ? trace_hardirqs_on+0xd/0x10 [ 56.488712] ? queue_work_on+0x106/0x1c0 [ 56.492748] kvm_irqfd+0x137a/0x1d50 [ 56.496449] ? kvm_eventfd_init+0x2a0/0x2a0 [ 56.500741] ? find_held_lock+0x39/0x1d0 [ 56.504783] ? lock_downgrade+0x990/0x990 [ 56.508908] ? __might_fault+0xe0/0x1d0 [ 56.512859] ? lock_release+0xd70/0xd70 [ 56.516802] ? check_same_owner+0x320/0x320 [ 56.521106] ? __might_sleep+0x95/0x190 [ 56.525058] ? kasan_check_write+0x14/0x20 [ 56.529262] ? _copy_from_user+0x99/0x110 [ 56.533387] kvm_vm_ioctl+0x1079/0x1c40 [ 56.537336] ? save_stack+0x43/0xd0 [ 56.540935] ? kvm_set_memory_region+0x50/0x50 [ 56.545484] ? alloc_file+0x26/0x3a0 [ 56.549170] ? anon_inode_getfile+0x26d/0x490 [ 56.553632] ? eventfd_file_create.part.3+0x193/0x250 [ 56.558803] ? find_held_lock+0x39/0x1d0 [ 56.562847] ? lock_downgrade+0x990/0x990 [ 56.566967] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 56.571952] ? __lockdep_init_map+0xe4/0x650 [ 56.576339] ? __fget+0xbb/0x580 [ 56.579682] ? lock_release+0xd70/0xd70 [ 56.583631] ? __lock_is_held+0xbc/0x140 [ 56.587673] ? __fget+0x362/0x580 [ 56.591106] ? iterate_fd+0x3f0/0x3f0 [ 56.594880] ? get_unused_fd_flags+0x190/0x190 [ 56.599445] ? __lock_is_held+0xbc/0x140 [ 56.603480] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 56.608377] ? selinux_file_ioctl+0x444/0x690 [ 56.612839] ? __fget_light+0x29d/0x390 [ 56.616790] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 56.621169] ? anon_inode_getfile+0x349/0x490 [ 56.625635] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 56.629756] ? get_unused_fd_flags+0x190/0x190 [ 56.634309] ? __init_waitqueue_head+0x97/0x140 [ 56.638961] ? security_file_ioctl+0x7d/0xb0 [ 56.643342] ? security_file_ioctl+0x89/0xb0 [ 56.647729] compat_SyS_ioctl+0x1da/0x3300 [ 56.651935] ? compat_SyS_get_robust_list+0x300/0x300 [ 56.657098] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 56.661218] ? do_ioctl+0x60/0x60 [ 56.664645] ? do_fast_syscall_32+0x158/0xeed [ 56.669113] ? do_ioctl+0x60/0x60 [ 56.672538] do_fast_syscall_32+0x3f2/0xeed [ 56.676829] ? compat_start_thread+0x80/0x80 [ 56.681212] ? do_int80_syscall_32+0x930/0x930 [ 56.685768] ? lockdep_sys_exit+0x47/0xf0 [ 56.689885] ? syscall_return_slowpath+0x2b3/0x500 [ 56.694783] ? finish_task_switch+0x1aa/0x740 [ 56.699250] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 56.704240] ? sysret32_from_system_call+0x5/0x3b [ 56.709059] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.713878] entry_SYSENTER_compat+0x51/0x60 [ 56.718256] RIP: 0023:0xf7f5ac79 [ 56.721589] RSP: 002b:00000000f7f5605c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 [ 56.729273] RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 000000004020ae76 [ 56.736516] RDX: 0000000020025fe0 RSI: 0000000000000000 RDI: 0000000000000000 [ 56.743755] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 56.750993] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 56.758241] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 56.765496] [ 56.767095] Allocated by task 4607: [ 56.770696] save_stack_trace+0x16/0x20 [ 56.774639] save_stack+0x43/0xd0 [ 56.778068] kasan_kmalloc+0xad/0xe0 [ 56.781754] kmem_cache_alloc_trace+0x136/0x750 [ 56.786391] kvm_irqfd+0x16c/0x1d50 [ 56.789984] kvm_vm_ioctl+0x1079/0x1c40 [ 56.793928] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 56.798305] compat_SyS_ioctl+0x1da/0x3300 [ 56.802511] do_fast_syscall_32+0x3f2/0xeed [ 56.806800] entry_SYSENTER_compat+0x51/0x60 [ 56.811173] [ 56.812770] Freed by task 23: [ 56.815846] save_stack_trace+0x16/0x20 [ 56.819788] save_stack+0x43/0xd0 [ 56.823219] kasan_slab_free+0x71/0xc0 [ 56.827082] kfree+0xca/0x250 [ 56.830160] irqfd_shutdown+0x13c/0x1a0 [ 56.834102] process_one_work+0xbfa/0x1bd0 [ 56.838305] worker_thread+0x223/0x1860 [ 56.842252] kthread+0x39c/0x470 [ 56.845591] ret_from_fork+0x2a/0x40 [ 56.849272] [ 56.850871] The buggy address belongs to the object at ffff8801c994a0c0 [ 56.850871] which belongs to the cache kmalloc-512 of size 512 [ 56.863495] The buggy address is located 384 bytes inside of [ 56.863495] 512-byte region [ffff8801c994a0c0, ffff8801c994a2c0) [ 56.875335] The buggy address belongs to the page: [ 56.880232] page:ffffea0007265280 count:1 mapcount:0 mapping:ffff8801c994a0c0 index:0xffff8801c994ad40 [ 56.889648] flags: 0x200000000000100(slab) [ 56.893941] raw: 0200000000000100 ffff8801c994a0c0 ffff8801c994ad40 0000000100000001 [ 56.901790] raw: ffffea0007265320 ffffea00072630e0 ffff8801dac00940 0000000000000000 [ 56.909642] page dumped because: kasan: bad access detected [ 56.915320] [ 56.916916] Memory state around the buggy address: [ 56.921813] ffff8801c994a100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.929143] ffff8801c994a180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.936473] >ffff8801c994a200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.943798] ^ [ 56.949218] ffff8801c994a280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 56.956547] ffff8801c994a300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 56.963871] ================================================================== [ 56.971202] Disabling lock debugging due to kernel taint [ 56.976706] Kernel panic - not syncing: panic_on_warn set ... [ 56.976706] [ 56.984043] CPU: 0 PID: 4607 Comm: syz-executor0 Tainted: G B 4.14.0-rc1+ #8 [ 56.992322] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.001637] Call Trace: [ 57.004193] dump_stack+0x194/0x257 [ 57.007785] ? arch_local_irq_restore+0x53/0x53 [ 57.012418] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 57.017141] ? irq_bypass_register_consumer+0x470/0x500 [ 57.022468] panic+0x1e4/0x417 [ 57.025624] ? __warn+0x1d9/0x1d9 [ 57.029050] ? irq_bypass_register_consumer+0x4b4/0x500 [ 57.034377] kasan_end_report+0x50/0x50 [ 57.038317] kasan_report+0x137/0x340 [ 57.042083] __asan_report_store8_noabort+0x17/0x20 [ 57.047064] irq_bypass_register_consumer+0x4b4/0x500 [ 57.052220] ? __disconnect+0x1a0/0x1a0 [ 57.056161] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 57.061153] ? trace_hardirqs_on+0xd/0x10 [ 57.065267] ? queue_work_on+0x106/0x1c0 [ 57.069301] kvm_irqfd+0x137a/0x1d50 [ 57.072985] ? kvm_eventfd_init+0x2a0/0x2a0 [ 57.077272] ? find_held_lock+0x39/0x1d0 [ 57.081307] ? lock_downgrade+0x990/0x990 [ 57.085427] ? __might_fault+0xe0/0x1d0 [ 57.089370] ? lock_release+0xd70/0xd70 [ 57.093307] ? check_same_owner+0x320/0x320 [ 57.097596] ? __might_sleep+0x95/0x190 [ 57.101538] ? kasan_check_write+0x14/0x20 [ 57.105739] ? _copy_from_user+0x99/0x110 [ 57.109852] kvm_vm_ioctl+0x1079/0x1c40 [ 57.113792] ? save_stack+0x43/0xd0 [ 57.117386] ? kvm_set_memory_region+0x50/0x50 [ 57.121929] ? alloc_file+0x26/0x3a0 [ 57.125608] ? anon_inode_getfile+0x26d/0x490 [ 57.130067] ? eventfd_file_create.part.3+0x193/0x250 [ 57.135225] ? find_held_lock+0x39/0x1d0 [ 57.139256] ? lock_downgrade+0x990/0x990 [ 57.143367] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 57.148347] ? __lockdep_init_map+0xe4/0x650 [ 57.152723] ? __fget+0xbb/0x580 [ 57.156057] ? lock_release+0xd70/0xd70 [ 57.159998] ? __lock_is_held+0xbc/0x140 [ 57.164036] ? __fget+0x362/0x580 [ 57.167461] ? iterate_fd+0x3f0/0x3f0 [ 57.171226] ? get_unused_fd_flags+0x190/0x190 [ 57.175778] ? __lock_is_held+0xbc/0x140 [ 57.179805] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 57.184699] ? selinux_file_ioctl+0x444/0x690 [ 57.189156] ? __fget_light+0x29d/0x390 [ 57.193097] kvm_vm_compat_ioctl+0x2ed/0x3e0 [ 57.197470] ? anon_inode_getfile+0x349/0x490 [ 57.201929] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 57.206040] ? get_unused_fd_flags+0x190/0x190 [ 57.210586] ? __init_waitqueue_head+0x97/0x140 [ 57.215222] ? security_file_ioctl+0x7d/0xb0 [ 57.219594] ? security_file_ioctl+0x89/0xb0 [ 57.223967] compat_SyS_ioctl+0x1da/0x3300 [ 57.228167] ? compat_SyS_get_robust_list+0x300/0x300 [ 57.233319] ? kvm_vm_ioctl+0x1c40/0x1c40 [ 57.237432] ? do_ioctl+0x60/0x60 [ 57.240850] ? do_fast_syscall_32+0x158/0xeed [ 57.245310] ? do_ioctl+0x60/0x60 [ 57.248727] do_fast_syscall_32+0x3f2/0xeed [ 57.253026] ? compat_start_thread+0x80/0x80 [ 57.257405] ? do_int80_syscall_32+0x930/0x930 [ 57.261954] ? lockdep_sys_exit+0x47/0xf0 [ 57.266068] ? syscall_return_slowpath+0x2b3/0x500 [ 57.270960] ? finish_task_switch+0x1aa/0x740 [ 57.275418] ? prepare_exit_to_usermode+0x2c0/0x2c0 [ 57.280399] ? sysret32_from_system_call+0x5/0x3b [ 57.285209] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 57.290026] entry_SYSENTER_compat+0x51/0x60 [ 57.294399] RIP: 0023:0xf7f5ac79 [ 57.297727] RSP: 002b:00000000f7f5605c EFLAGS: 00000296 ORIG_RAX: 0000000000000036 [ 57.305397] RAX: ffffffffffffffda RBX: 0000000000000009 RCX: 000000004020ae76 [ 57.312630] RDX: 0000000020025fe0 RSI: 0000000000000000 RDI: 0000000000000000 [ 57.319863] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 57.327097] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 57.334330] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 57.341990] Dumping ftrace buffer: [ 57.345500] (ftrace buffer empty) [ 57.349176] Kernel Offset: disabled [ 57.352766] Rebooting in 86400 seconds..