[....] Starting enhanced syslogd: rsyslogd[ 12.400879] audit: type=1400 audit(1513332088.238: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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.303566] audit: type=1400 audit(1513332093.141:6): avc: denied { map } for pid=3132 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-mmots-kasan-gce-4,10.128.15.231' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 53.237768] audit: type=1400 audit(1513332129.075:7): avc: denied { map } for pid=3150 comm="syzkaller436086" path="/root/syzkaller436086996" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program [ 53.322398] audit: type=1400 audit(1513332129.160:8): avc: denied { sys_admin } for pid=3150 comm="syzkaller436086" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 53.350498] audit: type=1400 audit(1513332129.188:9): avc: denied { sys_chroot } for pid=3172 comm="syzkaller436086" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 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 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 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 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 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 [ 134.592738] ================================================================== [ 134.600174] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4b4/0x500 [ 134.607871] Write of size 8 at addr ffff8801cdf51180 by task syzkaller436086/15031 [ 134.615573] [ 134.617177] CPU: 1 PID: 15031 Comm: syzkaller436086 Not tainted 4.15.0-rc2-mm1+ #39 [ 134.624953] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 134.634287] Call Trace: [ 134.636879] dump_stack+0x194/0x257 [ 134.640488] ? arch_local_irq_restore+0x53/0x53 [ 134.645134] ? show_regs_print_info+0x18/0x18 [ 134.649611] ? irq_bypass_register_consumer+0x4b4/0x500 [ 134.654960] print_address_description+0x73/0x250 [ 134.659777] ? irq_bypass_register_consumer+0x4b4/0x500 [ 134.665114] kasan_report+0x25b/0x340 [ 134.668906] __asan_report_store8_noabort+0x17/0x20 [ 134.673896] irq_bypass_register_consumer+0x4b4/0x500 [ 134.679064] ? __disconnect+0x1a0/0x1a0 [ 134.683022] ? _raw_spin_unlock_irq+0x56/0x70 [ 134.687501] kvm_irqfd+0x137f/0x1d50 [ 134.691186] ? check_noncircular+0x20/0x20 [ 134.695415] ? kvm_eventfd_init+0x2a0/0x2a0 [ 134.699712] ? lock_downgrade+0x980/0x980 [ 134.703838] ? find_held_lock+0x39/0x1d0 [ 134.707904] ? lock_downgrade+0x980/0x980 [ 134.712029] ? __might_fault+0xe0/0x1d0 [ 134.715989] ? lock_release+0xda0/0xda0 [ 134.719953] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 134.725814] ? lock_release+0xda0/0xda0 [ 134.729766] ? __free_insn_slot+0x5c0/0x5c0 [ 134.734065] ? __might_sleep+0x95/0x190 [ 134.738021] ? kasan_check_write+0x14/0x20 [ 134.742227] ? _copy_from_user+0x99/0x110 [ 134.746353] kvm_vm_ioctl+0x1079/0x1c40 [ 134.750300] ? __kernel_text_address+0xd/0x40 [ 134.754770] ? unwind_get_return_address+0x61/0xa0 [ 134.759677] ? kvm_set_memory_region+0x50/0x50 [ 134.764238] ? trace_event_raw_event_lock+0x340/0x340 [ 134.769405] ? check_noncircular+0x20/0x20 [ 134.773640] ? find_held_lock+0x39/0x1d0 [ 134.777685] ? lock_downgrade+0x980/0x980 [ 134.781809] ? __fget+0xbb/0x580 [ 134.785157] ? lock_release+0xda0/0xda0 [ 134.789108] ? __lock_is_held+0xbc/0x140 [ 134.794112] ? __fget+0x362/0x580 [ 134.798766] ? iterate_fd+0x3f0/0x3f0 [ 134.803848] ? lock_downgrade+0x980/0x980 [ 134.809269] ? lock_acquire+0x1d5/0x580 [ 134.814360] ? kvm_set_memory_region+0x50/0x50 [ 134.818915] do_vfs_ioctl+0x1b1/0x1530 [ 134.822784] ? ioctl_preallocate+0x2b0/0x2b0 [ 134.827169] ? selinux_capable+0x40/0x40 [ 134.831205] ? check_prev_add+0xe16/0x15f0 [ 134.835420] ? lockdep_sys_exit+0x47/0xf0 [ 134.839547] ? syscall_return_slowpath+0x2ad/0x550 [ 134.844459] ? security_file_ioctl+0x89/0xb0 [ 134.848850] SyS_ioctl+0x8f/0xc0 [ 134.852202] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 134.856934] RIP: 0033:0x44d379 [ 134.860107] RSP: 002b:00007fc5ff9a9d08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 134.867802] RAX: ffffffffffffffda RBX: 00007fc5ff9aa700 RCX: 000000000044d379 [ 134.875046] RDX: 0000000020080fe0 RSI: 000000004020ae76 RDI: 0000000000000005 [ 134.882289] RBP: 00000000007ff900 R08: 00007fc5ff9aa700 R09: 00007fc5ff9aa700 [ 134.889535] R10: 00007fc5ff9aa700 R11: 0000000000000246 R12: 0000000000000000 [ 134.896778] R13: 00000000007ff8ff R14: 00007fc5ff9aa9c0 R15: 0000000000000000 [ 134.904043] [ 134.905644] Allocated by task 15031: [ 134.909330] save_stack+0x43/0xd0 [ 134.912754] kasan_kmalloc+0xad/0xe0 [ 134.916442] kmem_cache_alloc_trace+0x136/0x750 [ 134.921083] kvm_irqfd+0x16c/0x1d50 [ 134.924680] kvm_vm_ioctl+0x1079/0x1c40 [ 134.928627] do_vfs_ioctl+0x1b1/0x1530 [ 134.932484] SyS_ioctl+0x8f/0xc0 [ 134.935841] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 134.940565] [ 134.942168] Freed by task 1402: [ 134.945419] save_stack+0x43/0xd0 [ 134.948852] kasan_slab_free+0x71/0xc0 [ 134.952711] kfree+0xca/0x250 [ 134.955790] irqfd_shutdown+0x13c/0x1a0 [ 134.959735] process_one_work+0xbfd/0x1bc0 [ 134.963942] worker_thread+0x223/0x1990 [ 134.967891] kthread+0x37a/0x440 [ 134.971229] ret_from_fork+0x24/0x30 [ 134.974912] [ 134.976517] The buggy address belongs to the object at ffff8801cdf51000 [ 134.976517] which belongs to the cache kmalloc-512 of size 512 [ 134.989147] The buggy address is located 384 bytes inside of [ 134.989147] 512-byte region [ffff8801cdf51000, ffff8801cdf51200) [ 135.000992] The buggy address belongs to the page: [ 135.005896] page:00000000d08a0d63 count:1 mapcount:0 mapping:00000000d54c7be6 index:0x0 [ 135.014015] flags: 0x2fffc0000000100(slab) [ 135.018223] raw: 02fffc0000000100 ffff8801cdf51000 0000000000000000 0000000100000006 [ 135.026075] raw: ffffea00073a7660 ffffea000737f3a0 ffff8801dac00940 0000000000000000 [ 135.033930] page dumped because: kasan: bad access detected [ 135.039612] [ 135.041210] Memory state around the buggy address: [ 135.046111] ffff8801cdf51080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 135.053443] ffff8801cdf51100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 135.060773] >ffff8801cdf51180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 135.068101] ^ [ 135.071440] ffff8801cdf51200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 135.078770] ffff8801cdf51280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 135.086098] ================================================================== [ 135.093426] Disabling lock debugging due to kernel taint [ 135.098918] Kernel panic - not syncing: panic_on_warn set ... [ 135.098918] [ 135.106256] CPU: 1 PID: 15031 Comm: syzkaller436086 Tainted: G B 4.15.0-rc2-mm1+ #39 [ 135.115318] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 135.124637] Call Trace: [ 135.127196] dump_stack+0x194/0x257 [ 135.130791] ? arch_local_irq_restore+0x53/0x53 [ 135.135429] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 135.140153] ? vsnprintf+0x1ed/0x1900 [ 135.143921] ? irq_bypass_register_consumer+0x470/0x500 [ 135.149249] panic+0x1e4/0x41c [ 135.152407] ? refcount_error_report+0x214/0x214 [ 135.157141] ? irq_bypass_register_consumer+0x4b4/0x500 [ 135.162470] kasan_end_report+0x50/0x50 [ 135.166410] kasan_report+0x144/0x340 [ 135.170178] __asan_report_store8_noabort+0x17/0x20 [ 135.175159] irq_bypass_register_consumer+0x4b4/0x500 [ 135.180317] ? __disconnect+0x1a0/0x1a0 [ 135.184263] ? _raw_spin_unlock_irq+0x56/0x70 [ 135.188743] kvm_irqfd+0x137f/0x1d50 [ 135.192422] ? check_noncircular+0x20/0x20 [ 135.196632] ? kvm_eventfd_init+0x2a0/0x2a0 [ 135.200921] ? lock_downgrade+0x980/0x980 [ 135.205038] ? find_held_lock+0x39/0x1d0 [ 135.209072] ? lock_downgrade+0x980/0x980 [ 135.213186] ? __might_fault+0xe0/0x1d0 [ 135.217131] ? lock_release+0xda0/0xda0 [ 135.221071] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 135.226921] ? lock_release+0xda0/0xda0 [ 135.230863] ? __free_insn_slot+0x5c0/0x5c0 [ 135.235153] ? __might_sleep+0x95/0x190 [ 135.239099] ? kasan_check_write+0x14/0x20 [ 135.243299] ? _copy_from_user+0x99/0x110 [ 135.247418] kvm_vm_ioctl+0x1079/0x1c40 [ 135.251358] ? __kernel_text_address+0xd/0x40 [ 135.255826] ? unwind_get_return_address+0x61/0xa0 [ 135.260724] ? kvm_set_memory_region+0x50/0x50 [ 135.265289] ? trace_event_raw_event_lock+0x340/0x340 [ 135.270449] ? check_noncircular+0x20/0x20 [ 135.274667] ? find_held_lock+0x39/0x1d0 [ 135.278705] ? lock_downgrade+0x980/0x980 [ 135.282823] ? __fget+0xbb/0x580 [ 135.286160] ? lock_release+0xda0/0xda0 [ 135.290101] ? __lock_is_held+0xbc/0x140 [ 135.294139] ? __fget+0x362/0x580 [ 135.297565] ? iterate_fd+0x3f0/0x3f0 [ 135.301335] ? lock_downgrade+0x980/0x980 [ 135.305450] ? lock_acquire+0x1d5/0x580 [ 135.309412] ? kvm_set_memory_region+0x50/0x50 [ 135.313961] do_vfs_ioctl+0x1b1/0x1530 [ 135.317820] ? ioctl_preallocate+0x2b0/0x2b0 [ 135.322197] ? selinux_capable+0x40/0x40 [ 135.326224] ? check_prev_add+0xe16/0x15f0 [ 135.330785] ? lockdep_sys_exit+0x47/0xf0 [ 135.334901] ? syscall_return_slowpath+0x2ad/0x550 [ 135.339801] ? security_file_ioctl+0x89/0xb0 [ 135.344180] SyS_ioctl+0x8f/0xc0 [ 135.347517] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 135.352236] RIP: 0033:0x44d379 [ 135.355391] RSP: 002b:00007fc5ff9a9d08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 135.363083] RAX: ffffffffffffffda RBX: 00007fc5ff9aa700 RCX: 000000000044d379 [ 135.370329] RDX: 0000000020080fe0 RSI: 000000004020ae76 RDI: 0000000000000005 [ 135.377566] RBP: 00000000007ff900 R08: 00007fc5ff9aa700 R09: 00007fc5ff9aa700 [ 135.384801] R10: 00007fc5ff9aa700 R11: 0000000000000246 R12: 0000000000000000 [ 135.392052] R13: 00000000007ff8ff R14: 00007fc5ff9aa9c0 R15: 0000000000000000 [ 135.399342] Dumping ftrace buffer: [ 135.402850] (ftrace buffer empty) [ 135.406537] Kernel Offset: disabled [ 135.410131] Rebooting in 86400 seconds..