[....] Starting enhanced syslogd: rsyslogd[ 13.115206] audit: type=1400 audit(1513028443.638:5): avc: denied { syslog } for pid=2996 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 35.392809] audit: type=1400 audit(1513028465.916:6): avc: denied { map } for pid=3141 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added 'ci-upstream-next-kasan-gce-7,10.128.15.209' (ECDSA) to the list of known hosts. [ 129.063407] audit: type=1400 audit(1513028559.587:7): avc: denied { map } for pid=3153 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=16479 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2017/12/11 21:42:40 parsed 1 programs 2017/12/11 21:42:40 executed programs: 0 [ 129.537270] audit: type=1400 audit(1513028560.060:8): avc: denied { map } for pid=3153 comm="syz-execprog" path="/root/syzkaller-shm056897010" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 [ 130.904353] ================================================================== [ 130.911769] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4b4/0x500 [ 130.919450] Write of size 8 at addr ffff8801d958cc40 by task syz-executor7/3432 [ 130.926864] [ 130.928466] CPU: 1 PID: 3432 Comm: syz-executor7 Not tainted 4.15.0-rc2-next-20171211+ #64 [ 130.936837] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 130.946357] Call Trace: [ 130.946367] dump_stack+0x194/0x257 [ 130.946377] ? arch_local_irq_restore+0x53/0x53 [ 130.946387] ? show_regs_print_info+0x18/0x18 [ 130.946400] ? irq_bypass_register_consumer+0x4b4/0x500 [ 130.946410] print_address_description+0x73/0x250 [ 130.946417] ? irq_bypass_register_consumer+0x4b4/0x500 [ 130.946424] kasan_report+0x25b/0x340 [ 130.946434] __asan_report_store8_noabort+0x17/0x20 [ 130.946440] irq_bypass_register_consumer+0x4b4/0x500 [ 130.946448] ? __disconnect+0x1a0/0x1a0 [ 130.946456] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 130.946463] ? trace_hardirqs_on+0xd/0x10 [ 130.946471] ? queue_work_on+0x106/0x1c0 [ 130.946483] kvm_irqfd+0x137f/0x1d50 [ 130.946504] ? kvm_eventfd_init+0x2a0/0x2a0 [ 130.946518] ? find_held_lock+0x39/0x1d0 [ 130.946535] ? lock_downgrade+0x980/0x980 [ 130.946543] ? __might_fault+0xe0/0x1d0 [ 130.946556] ? lock_release+0xda0/0xda0 [ 130.946563] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 130.946570] ? futex_wait+0x69e/0x990 [ 130.946585] ? __might_sleep+0x95/0x190 [ 130.946597] ? kasan_check_write+0x14/0x20 [ 130.946604] ? _copy_from_user+0x99/0x110 [ 130.946614] kvm_vm_ioctl+0x1079/0x1c40 [ 130.946620] ? finish_task_switch+0x1aa/0x740 [ 130.946627] ? find_held_lock+0x39/0x1d0 [ 130.946635] ? kvm_set_memory_region+0x50/0x50 [ 130.946641] ? lock_release+0xda0/0xda0 [ 130.946647] ? compat_start_thread+0x80/0x80 [ 130.946662] ? check_noncircular+0x20/0x20 [ 130.946669] ? trace_hardirqs_on+0xd/0x10 [ 130.946677] ? mmdrop+0x18/0x30 [ 130.946687] ? do_futex+0x85b/0x2280 [ 130.946694] ? copy_overflow+0x20/0x20 [ 130.946709] ? find_held_lock+0x39/0x1d0 [ 130.946726] ? lock_downgrade+0x980/0x980 [ 130.946734] ? __fget+0xbb/0x580 [ 130.946743] ? unwind_get_return_address+0x61/0xa0 [ 130.946752] ? lock_release+0xda0/0xda0 [ 130.946762] ? __lock_is_held+0xbc/0x140 [ 130.946780] ? __fget+0x362/0x580 [ 130.946794] ? iterate_fd+0x3f0/0x3f0 [ 130.946802] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 130.946809] ? lookup_user_key+0x262/0x1190 [ 130.946822] ? join_session_keyring+0x300/0x300 [ 130.946830] ? kvm_set_memory_region+0x50/0x50 [ 130.946837] do_vfs_ioctl+0x1b1/0x1530 [ 130.946850] ? ioctl_preallocate+0x2b0/0x2b0 [ 130.946859] ? selinux_capable+0x40/0x40 [ 130.946870] ? SyS_futex+0x269/0x390 [ 130.946888] ? security_file_ioctl+0x89/0xb0 [ 130.946899] SyS_ioctl+0x8f/0xc0 [ 130.946910] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 130.946916] RIP: 0033:0x452a39 [ 130.946920] RSP: 002b:00007f5a429b2c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 130.946927] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 130.946931] RDX: 0000000020000000 RSI: 000000004020ae76 RDI: 000000000000000d [ 130.946935] RBP: 0000000000000434 R08: 0000000000000000 R09: 0000000000000000 [ 130.946938] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f4580 [ 130.946942] R13: 00000000ffffffff R14: 00007f5a429b36d4 R15: 0000000000000000 [ 130.946962] [ 130.946965] Allocated by task 3432: [ 130.946971] save_stack+0x43/0xd0 [ 130.946975] kasan_kmalloc+0xad/0xe0 [ 130.946981] kmem_cache_alloc_trace+0x136/0x750 [ 130.946986] kvm_irqfd+0x16c/0x1d50 [ 130.946991] kvm_vm_ioctl+0x1079/0x1c40 [ 130.946995] do_vfs_ioctl+0x1b1/0x1530 [ 130.947000] SyS_ioctl+0x8f/0xc0 [ 130.947005] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 130.947007] [ 130.947010] Freed by task 3: [ 130.947014] save_stack+0x43/0xd0 [ 130.947019] kasan_slab_free+0x71/0xc0 [ 130.947023] kfree+0xca/0x250 [ 130.947028] irqfd_shutdown+0x13c/0x1a0 [ 130.947033] process_one_work+0xbfd/0x1bc0 [ 130.947037] worker_thread+0x223/0x1990 [ 130.947041] kthread+0x37a/0x440 [ 130.947046] ret_from_fork+0x24/0x30 [ 130.947048] [ 130.947052] The buggy address belongs to the object at ffff8801d958cac0 [ 130.947052] which belongs to the cache kmalloc-512 of size 512 [ 130.947057] The buggy address is located 384 bytes inside of [ 130.947057] 512-byte region [ffff8801d958cac0, ffff8801d958ccc0) [ 130.947063] The buggy address belongs to the page: [ 130.947069] page:00000000cf416b6d count:1 mapcount:0 mapping:000000006cb34c3d index:0x0 [ 130.947075] flags: 0x2fffc0000000100(slab) [ 130.947083] raw: 02fffc0000000100 ffff8801d958c0c0 0000000000000000 0000000100000006 [ 130.947089] raw: ffffea00076563e0 ffffea0006f6cae0 ffff8801dac00940 0000000000000000 [ 130.947092] page dumped because: kasan: bad access detected [ 130.947094] [ 130.947097] Memory state around the buggy address: [ 130.947101] ffff8801d958cb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 130.947105] ffff8801d958cb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 130.947110] >ffff8801d958cc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 130.947112] ^ [ 130.947117] ffff8801d958cc80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 130.947121] ffff8801d958cd00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 130.947123] ================================================================== [ 130.947125] Disabling lock debugging due to kernel taint [ 130.947180] Kernel panic - not syncing: panic_on_warn set ... [ 130.947180] [ 130.947184] CPU: 1 PID: 3432 Comm: syz-executor7 Tainted: G B 4.15.0-rc2-next-20171211+ #64 [ 130.947186] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 130.947187] Call Trace: [ 130.947192] dump_stack+0x194/0x257 [ 130.947198] ? arch_local_irq_restore+0x53/0x53 [ 130.947204] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 130.947209] ? vsnprintf+0x1ed/0x1900 [ 130.947213] ? irq_bypass_register_consumer+0x490/0x500 [ 130.947217] panic+0x1e4/0x41c [ 130.947221] ? refcount_error_report+0x214/0x214 [ 130.947227] ? add_taint+0x1c/0x50 [ 130.947231] ? add_taint+0x1c/0x50 [ 130.947237] ? irq_bypass_register_consumer+0x4b4/0x500 [ 130.947241] kasan_end_report+0x50/0x50 [ 130.947244] kasan_report+0x144/0x340 [ 130.947250] __asan_report_store8_noabort+0x17/0x20 [ 130.947255] irq_bypass_register_consumer+0x4b4/0x500 [ 130.947259] ? __disconnect+0x1a0/0x1a0 [ 130.947263] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 130.947268] ? trace_hardirqs_on+0xd/0x10 [ 130.947271] ? queue_work_on+0x106/0x1c0 [ 130.947277] kvm_irqfd+0x137f/0x1d50 [ 130.947289] ? kvm_eventfd_init+0x2a0/0x2a0 [ 130.947296] ? find_held_lock+0x39/0x1d0 [ 130.947305] ? lock_downgrade+0x980/0x980 [ 130.947309] ? __might_fault+0xe0/0x1d0 [ 130.947316] ? lock_release+0xda0/0xda0 [ 130.947320] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 130.947323] ? futex_wait+0x69e/0x990 [ 130.947331] ? __might_sleep+0x95/0x190 [ 130.947338] ? kasan_check_write+0x14/0x20 [ 130.947341] ? _copy_from_user+0x99/0x110 [ 130.947346] kvm_vm_ioctl+0x1079/0x1c40 [ 130.947350] ? finish_task_switch+0x1aa/0x740 [ 130.947354] ? find_held_lock+0x39/0x1d0 [ 130.947359] ? kvm_set_memory_region+0x50/0x50 [ 130.947363] ? lock_release+0xda0/0xda0 [ 130.947366] ? compat_start_thread+0x80/0x80 [ 130.947375] ? check_noncircular+0x20/0x20 [ 130.947379] ? trace_hardirqs_on+0xd/0x10 [ 130.947383] ? mmdrop+0x18/0x30 [ 130.947389] ? do_futex+0x85b/0x2280 [ 130.947394] ? copy_overflow+0x20/0x20 [ 130.947402] ? find_held_lock+0x39/0x1d0 [ 130.947411] ? lock_downgrade+0x980/0x980 [ 130.947415] ? __fget+0xbb/0x580 [ 130.947420] ? unwind_get_return_address+0x61/0xa0 [ 130.947425] ? lock_release+0xda0/0xda0 [ 130.947430] ? __lock_is_held+0xbc/0x140 [ 130.947440] ? __fget+0x362/0x580 [ 130.947448] ? iterate_fd+0x3f0/0x3f0 [ 130.947453] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 130.947457] ? lookup_user_key+0x262/0x1190 [ 130.947464] ? join_session_keyring+0x300/0x300 [ 130.947469] ? kvm_set_memory_region+0x50/0x50 [ 130.947472] do_vfs_ioctl+0x1b1/0x1530 [ 130.947480] ? ioctl_preallocate+0x2b0/0x2b0 [ 130.947485] ? selinux_capable+0x40/0x40 [ 130.947491] ? SyS_futex+0x269/0x390 [ 130.947500] ? security_file_ioctl+0x89/0xb0 [ 130.947506] SyS_ioctl+0x8f/0xc0 [ 130.947513] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 130.947515] RIP: 0033:0x452a39 [ 130.947517] RSP: 002b:00007f5a429b2c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 130.947521] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 130.947523] RDX: 0000000020000000 RSI: 000000004020ae76 RDI: 000000000000000d [ 130.947525] RBP: 0000000000000434 R08: 0000000000000000 R09: 0000000000000000 [ 130.947527] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f4580 [ 130.947529] R13: 00000000ffffffff R14: 00007f5a429b36d4 R15: 0000000000000000 [ 130.948979] Dumping ftrace buffer: [ 130.948982] (ftrace buffer empty) [ 130.948984] Kernel Offset: disabled [ 131.751428] Rebooting in 86400 seconds..