[....] Starting enhanced syslogd: rsyslogd[ 13.138354] audit: type=1400 audit(1513031507.987:5): avc: denied { syslog } for pid=2992 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 periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] 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: [ 33.446499] audit: type=1400 audit(1513031528.295:6): avc: denied { map } for pid=3136 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-kasan-gce-2,10.128.15.221' (ECDSA) to the list of known hosts. [ 128.790184] audit: type=1400 audit(1513031623.638:7): avc: denied { map } for pid=3149 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 22:33:44 parsed 1 programs 2017/12/11 22:33:44 executed programs: 0 [ 129.262075] audit: type=1400 audit(1513031624.110:8): avc: denied { map } for pid=3149 comm="syz-execprog" path="/root/syzkaller-shm024878085" 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 2017/12/11 22:33:49 executed programs: 234 2017/12/11 22:33:54 executed programs: 445 [ 140.327207] ================================================================== [ 140.334650] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4b4/0x500 [ 140.342361] Write of size 8 at addr ffff8801c3bc7c00 by task syz-executor3/4745 [ 140.349795] [ 140.351416] CPU: 0 PID: 4745 Comm: syz-executor3 Not tainted 4.15.0-rc3+ #217 [ 140.358672] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 140.368013] Call Trace: [ 140.370594] dump_stack+0x194/0x257 [ 140.374220] ? arch_local_irq_restore+0x53/0x53 [ 140.378890] ? show_regs_print_info+0x18/0x18 [ 140.383448] ? irq_bypass_register_consumer+0x4b4/0x500 [ 140.388810] print_address_description+0x73/0x250 [ 140.393663] ? irq_bypass_register_consumer+0x4b4/0x500 [ 140.399024] kasan_report+0x25b/0x340 [ 140.402831] __asan_report_store8_noabort+0x17/0x20 [ 140.407849] irq_bypass_register_consumer+0x4b4/0x500 [ 140.413042] ? __disconnect+0x1a0/0x1a0 [ 140.417013] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 140.422029] ? trace_hardirqs_on+0xd/0x10 [ 140.426174] ? queue_work_on+0x106/0x1c0 [ 140.430250] kvm_irqfd+0x137a/0x1d50 [ 140.433988] ? kvm_eventfd_init+0x2a0/0x2a0 [ 140.438317] ? find_held_lock+0x39/0x1d0 [ 140.442392] ? lock_downgrade+0x980/0x980 [ 140.446535] ? __might_fault+0xe0/0x1d0 [ 140.450518] ? lock_release+0xda0/0xda0 [ 140.454490] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 140.460368] ? futex_wait+0x69e/0x990 [ 140.464177] ? __might_sleep+0x95/0x190 [ 140.468158] ? kasan_check_write+0x14/0x20 [ 140.472390] ? _copy_from_user+0x99/0x110 [ 140.476540] kvm_vm_ioctl+0x1079/0x1c40 [ 140.480522] ? kvm_set_memory_region+0x50/0x50 [ 140.485123] ? check_noncircular+0x20/0x20 [ 140.489353] ? lock_downgrade+0x980/0x980 [ 140.493508] ? do_futex+0x85b/0x2280 [ 140.497221] ? lock_release+0xda0/0xda0 [ 140.501193] ? __free_insn_slot+0x5c0/0x5c0 [ 140.505516] ? find_held_lock+0x39/0x1d0 [ 140.509594] ? lock_downgrade+0x980/0x980 [ 140.513740] ? __fget+0xbb/0x580 [ 140.517105] ? unwind_get_return_address+0x61/0xa0 [ 140.522037] ? lock_release+0xda0/0xda0 [ 140.526014] ? __lock_is_held+0xbc/0x140 [ 140.530095] ? __fget+0x362/0x580 [ 140.533558] ? iterate_fd+0x3f0/0x3f0 [ 140.537617] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 140.537630] ? lookup_user_key+0x262/0x1190 [ 140.537647] ? join_session_keyring+0x300/0x300 [ 140.537662] ? kvm_set_memory_region+0x50/0x50 [ 140.537674] do_vfs_ioctl+0x1b1/0x1530 [ 140.537694] ? ioctl_preallocate+0x2b0/0x2b0 [ 140.537710] ? selinux_capable+0x40/0x40 [ 140.537730] ? SyS_futex+0x269/0x390 [ 140.537759] ? security_file_ioctl+0x89/0xb0 [ 140.537775] SyS_ioctl+0x8f/0xc0 [ 140.537795] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 140.537807] RIP: 0033:0x452a39 [ 140.537814] RSP: 002b:00007f47597cdc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 140.537826] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 140.537832] RDX: 0000000020000000 RSI: 000000004020ae76 RDI: 000000000000000b [ 140.537838] RBP: 000000000000039b R08: 0000000000000000 R09: 0000000000000000 [ 140.537844] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3728 [ 140.537851] R13: 00000000ffffffff R14: 00007f47597ce6d4 R15: 0000000000000000 [ 140.537882] [ 140.537888] Allocated by task 4745: [ 140.537898] save_stack+0x43/0xd0 [ 140.537906] kasan_kmalloc+0xad/0xe0 [ 140.537914] kmem_cache_alloc_trace+0x136/0x750 [ 140.537923] kvm_irqfd+0x16c/0x1d50 [ 140.537930] kvm_vm_ioctl+0x1079/0x1c40 [ 140.537938] do_vfs_ioctl+0x1b1/0x1530 [ 140.537945] SyS_ioctl+0x8f/0xc0 [ 140.537952] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 140.537956] [ 140.537961] Freed by task 3195: [ 140.537968] save_stack+0x43/0xd0 [ 140.537975] kasan_slab_free+0x71/0xc0 [ 140.537982] kfree+0xca/0x250 [ 140.537990] irqfd_shutdown+0x13c/0x1a0 [ 140.538000] process_one_work+0xbfd/0x1be0 [ 140.538007] worker_thread+0x223/0x1990 [ 140.538014] kthread+0x37a/0x440 [ 140.538021] ret_from_fork+0x24/0x30 [ 140.538025] [ 140.538032] The buggy address belongs to the object at ffff8801c3bc7a80 [ 140.538032] which belongs to the cache kmalloc-512 of size 512 [ 140.538040] The buggy address is located 384 bytes inside of [ 140.538040] 512-byte region [ffff8801c3bc7a80, ffff8801c3bc7c80) [ 140.538044] The buggy address belongs to the page: [ 140.538053] page:00000000a7c67d00 count:1 mapcount:0 mapping:000000008c99c009 index:0xffff8801c3bc7d00 [ 140.538063] flags: 0x2fffc0000000100(slab) [ 140.538075] raw: 02fffc0000000100 ffff8801c3bc7080 ffff8801c3bc7d00 0000000100000005 [ 140.538084] raw: ffffea000722d5a0 ffffea00072271e0 ffff8801db000940 0000000000000000 [ 140.538089] page dumped because: kasan: bad access detected [ 140.538093] [ 140.538097] Memory state around the buggy address: [ 140.538105] ffff8801c3bc7b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.538112] ffff8801c3bc7b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.538119] >ffff8801c3bc7c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.538124] ^ [ 140.538131] ffff8801c3bc7c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 140.538138] ffff8801c3bc7d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 140.538142] ================================================================== [ 140.538145] Disabling lock debugging due to kernel taint [ 140.538259] Kernel panic - not syncing: panic_on_warn set ... [ 140.538259] [ 140.538266] CPU: 0 PID: 4745 Comm: syz-executor3 Tainted: G B 4.15.0-rc3+ #217 [ 140.538269] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 140.538271] Call Trace: [ 140.538278] dump_stack+0x194/0x257 [ 140.538286] ? arch_local_irq_restore+0x53/0x53 [ 140.538296] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 140.538303] ? vsnprintf+0x1ed/0x1900 [ 140.538313] ? irq_bypass_register_consumer+0x430/0x500 [ 140.538320] panic+0x1e4/0x41c [ 140.538326] ? refcount_error_report+0x214/0x214 [ 140.538336] ? add_taint+0x1c/0x50 [ 140.538342] ? add_taint+0x1c/0x50 [ 140.538351] ? irq_bypass_register_consumer+0x4b4/0x500 [ 140.538357] kasan_end_report+0x50/0x50 [ 140.538363] kasan_report+0x144/0x340 [ 140.538373] __asan_report_store8_noabort+0x17/0x20 [ 140.538380] irq_bypass_register_consumer+0x4b4/0x500 [ 140.538387] ? __disconnect+0x1a0/0x1a0 [ 140.538393] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 140.538399] ? trace_hardirqs_on+0xd/0x10 [ 140.538405] ? queue_work_on+0x106/0x1c0 [ 140.538414] kvm_irqfd+0x137a/0x1d50 [ 140.538432] ? kvm_eventfd_init+0x2a0/0x2a0 [ 140.538443] ? find_held_lock+0x39/0x1d0 [ 140.538457] ? lock_downgrade+0x980/0x980 [ 140.538465] ? __might_fault+0xe0/0x1d0 [ 140.538475] ? lock_release+0xda0/0xda0 [ 140.538482] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 140.538488] ? futex_wait+0x69e/0x990 [ 140.538500] ? __might_sleep+0x95/0x190 [ 140.538510] ? kasan_check_write+0x14/0x20 [ 140.538517] ? _copy_from_user+0x99/0x110 [ 140.538526] kvm_vm_ioctl+0x1079/0x1c40 [ 140.538537] ? kvm_set_memory_region+0x50/0x50 [ 140.538552] ? check_noncircular+0x20/0x20 [ 140.538559] ? lock_downgrade+0x980/0x980 [ 140.538569] ? do_futex+0x85b/0x2280 [ 140.538577] ? lock_release+0xda0/0xda0 [ 140.538585] ? __free_insn_slot+0x5c0/0x5c0 [ 140.538594] ? find_held_lock+0x39/0x1d0 [ 140.538608] ? lock_downgrade+0x980/0x980 [ 140.538615] ? __fget+0xbb/0x580 [ 140.538623] ? unwind_get_return_address+0x61/0xa0 [ 140.538631] ? lock_release+0xda0/0xda0 [ 140.538640] ? __lock_is_held+0xbc/0x140 [ 140.538655] ? __fget+0x362/0x580 [ 140.538667] ? iterate_fd+0x3f0/0x3f0 [ 140.538675] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 140.538680] ? lookup_user_key+0x262/0x1190 [ 140.538690] ? join_session_keyring+0x300/0x300 [ 140.538699] ? kvm_set_memory_region+0x50/0x50 [ 140.538704] do_vfs_ioctl+0x1b1/0x1530 [ 140.538716] ? ioctl_preallocate+0x2b0/0x2b0 [ 140.538724] ? selinux_capable+0x40/0x40 [ 140.538734] ? SyS_futex+0x269/0x390 [ 140.538749] ? security_file_ioctl+0x89/0xb0 [ 140.538758] SyS_ioctl+0x8f/0xc0 [ 140.538767] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 140.538771] RIP: 0033:0x452a39 [ 140.538774] RSP: 002b:00007f47597cdc58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 140.538780] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 140.538784] RDX: 0000000020000000 RSI: 000000004020ae76 RDI: 000000000000000b [ 140.538787] RBP: 000000000000039b R08: 0000000000000000 R09: 0000000000000000 [ 140.538791] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3728 [ 140.538794] R13: 00000000ffffffff R14: 00007f47597ce6d4 R15: 0000000000000000 [ 140.542919] Dumping ftrace buffer: [ 140.542922] (ftrace buffer empty) [ 140.542925] Kernel Offset: disabled [ 141.142009] Rebooting in 86400 seconds..