[....] Starting enhanced syslogd: rsyslogd[ 13.046470] audit: type=1400 audit(1513207138.950: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: [ 18.604393] audit: type=1400 audit(1513207144.508: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-2,10.128.15.227' (ECDSA) to the list of known hosts. [ 24.908754] audit: type=1400 audit(1513207150.812:7): avc: denied { map } for pid=3146 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/13 23:19:11 parsed 1 programs 2017/12/13 23:19:11 executed programs: 0 [ 25.411455] audit: type=1400 audit(1513207151.315:8): avc: denied { map } for pid=3146 comm="syz-execprog" path="/root/syzkaller-shm181590684" 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 [ 25.483135] audit: type=1400 audit(1513207151.336:9): avc: denied { sys_admin } for pid=3153 comm="syz-executor3" 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 [ 25.538109] audit: type=1400 audit(1513207151.430:10): avc: denied { sys_chroot } for pid=3155 comm="syz-executor3" 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 [ 25.600614] kvm: KVM_SET_TSS_ADDR need to be called before entering vcpu 2017/12/13 23:19:16 executed programs: 188 [ 30.518376] ================================================================== [ 30.525833] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4f0/0x500 [ 30.533535] Read of size 8 at addr ffff8801c1857c10 by task syz-executor2/3918 [ 30.540869] [ 30.542485] CPU: 1 PID: 3918 Comm: syz-executor2 Not tainted 4.15.0-rc2-mm1+ #39 [ 30.549989] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.559320] Call Trace: [ 30.561887] dump_stack+0x194/0x257 [ 30.565494] ? arch_local_irq_restore+0x53/0x53 [ 30.570143] ? show_regs_print_info+0x18/0x18 [ 30.574622] ? irq_bypass_register_consumer+0x4f0/0x500 [ 30.579963] print_address_description+0x73/0x250 [ 30.584783] ? irq_bypass_register_consumer+0x4f0/0x500 [ 30.590125] kasan_report+0x25b/0x340 [ 30.593905] __asan_report_load8_noabort+0x14/0x20 [ 30.598809] irq_bypass_register_consumer+0x4f0/0x500 [ 30.603975] ? __disconnect+0x1a0/0x1a0 [ 30.607928] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.612920] ? trace_hardirqs_on+0xd/0x10 [ 30.617048] ? queue_work_on+0x106/0x1c0 [ 30.621094] kvm_irqfd+0x137f/0x1d50 [ 30.624783] ? check_noncircular+0x20/0x20 [ 30.629017] ? kvm_eventfd_init+0x2a0/0x2a0 [ 30.633408] ? lock_downgrade+0x980/0x980 [ 30.637535] ? find_held_lock+0x39/0x1d0 [ 30.641584] ? lock_downgrade+0x980/0x980 [ 30.645709] ? __might_fault+0xe0/0x1d0 [ 30.649671] ? lock_release+0xda0/0xda0 [ 30.653621] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.659480] ? lock_release+0xda0/0xda0 [ 30.663432] ? __free_insn_slot+0x5c0/0x5c0 [ 30.667738] ? __might_sleep+0x95/0x190 [ 30.671697] ? kasan_check_write+0x14/0x20 [ 30.675907] ? _copy_from_user+0x99/0x110 [ 30.680042] kvm_vm_ioctl+0x1079/0x1c40 [ 30.683991] ? __kernel_text_address+0xd/0x40 [ 30.688467] ? unwind_get_return_address+0x61/0xa0 [ 30.693376] ? kvm_set_memory_region+0x50/0x50 [ 30.697957] ? check_noncircular+0x20/0x20 [ 30.702194] ? find_held_lock+0x39/0x1d0 [ 30.706246] ? lock_downgrade+0x980/0x980 [ 30.710374] ? __fget+0xbb/0x580 [ 30.713728] ? lock_release+0xda0/0xda0 [ 30.717682] ? __lock_is_held+0xbc/0x140 [ 30.721735] ? __fget+0x362/0x580 [ 30.725175] ? iterate_fd+0x3f0/0x3f0 [ 30.728957] ? lock_downgrade+0x980/0x980 [ 30.733082] ? lock_acquire+0x1d5/0x580 [ 30.737042] ? kvm_set_memory_region+0x50/0x50 [ 30.741602] do_vfs_ioctl+0x1b1/0x1530 [ 30.745472] ? ioctl_preallocate+0x2b0/0x2b0 [ 30.749861] ? selinux_capable+0x40/0x40 [ 30.753897] ? check_prev_add+0xe16/0x15f0 [ 30.758119] ? lockdep_sys_exit+0x47/0xf0 [ 30.762248] ? syscall_return_slowpath+0x2ad/0x550 [ 30.767161] ? security_file_ioctl+0x89/0xb0 [ 30.771548] SyS_ioctl+0x8f/0xc0 [ 30.774896] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 30.779625] RIP: 0033:0x452a39 [ 30.782792] RSP: 002b:00007fd7b90e5c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 30.790477] RAX: ffffffffffffffda RBX: 00007fd7b90e6700 RCX: 0000000000452a39 [ 30.797723] RDX: 0000000020000000 RSI: 000000004020ae76 RDI: 0000000000000004 [ 30.804967] RBP: 0000000000a6f880 R08: 0000000000000000 R09: 0000000000000000 [ 30.812212] R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 [ 30.819455] R13: 0000000000a6f7ff R14: 00007fd7b90e69c0 R15: 000000000000000a [ 30.826723] [ 30.828327] Allocated by task 3918: [ 30.831933] save_stack+0x43/0xd0 [ 30.835357] kasan_kmalloc+0xad/0xe0 [ 30.839047] kmem_cache_alloc_trace+0x136/0x750 [ 30.843691] kvm_irqfd+0x16c/0x1d50 [ 30.847300] kvm_vm_ioctl+0x1079/0x1c40 [ 30.851248] do_vfs_ioctl+0x1b1/0x1530 [ 30.855108] SyS_ioctl+0x8f/0xc0 [ 30.858449] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 30.863176] [ 30.864778] Freed by task 3193: [ 30.868035] save_stack+0x43/0xd0 [ 30.871461] kasan_slab_free+0x71/0xc0 [ 30.875324] kfree+0xca/0x250 [ 30.878404] irqfd_shutdown+0x13c/0x1a0 [ 30.882353] process_one_work+0xbfd/0x1bc0 [ 30.886562] worker_thread+0x223/0x1990 [ 30.890510] kthread+0x37a/0x440 [ 30.893854] ret_from_fork+0x24/0x30 [ 30.897537] [ 30.899140] The buggy address belongs to the object at ffff8801c1857a80 [ 30.899140] which belongs to the cache kmalloc-512 of size 512 [ 30.911768] The buggy address is located 400 bytes inside of [ 30.911768] 512-byte region [ffff8801c1857a80, ffff8801c1857c80) [ 30.923612] The buggy address belongs to the page: [ 30.928520] page:000000000270f458 count:1 mapcount:0 mapping:00000000f713cd2e index:0x0 [ 30.936643] flags: 0x2fffc0000000100(slab) [ 30.940855] raw: 02fffc0000000100 ffff8801c1857080 0000000000000000 0000000100000006 [ 30.948712] raw: ffffea00070653a0 ffffea000707cc20 ffff8801dac00940 0000000000000000 [ 30.956563] page dumped because: kasan: bad access detected [ 30.962243] [ 30.963843] Memory state around the buggy address: [ 30.968746] ffff8801c1857b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.976078] ffff8801c1857b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.983409] >ffff8801c1857c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.990743] ^ [ 30.994603] ffff8801c1857c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.001937] ffff8801c1857d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.009269] ================================================================== [ 31.016599] Disabling lock debugging due to kernel taint [ 31.022143] Kernel panic - not syncing: panic_on_warn set ... [ 31.022143] [ 31.029494] CPU: 1 PID: 3918 Comm: syz-executor2 Tainted: G B 4.15.0-rc2-mm1+ #39 [ 31.038306] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.047630] Call Trace: [ 31.050190] dump_stack+0x194/0x257 [ 31.053787] ? arch_local_irq_restore+0x53/0x53 [ 31.058427] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.063153] ? vsnprintf+0x1ed/0x1900 [ 31.066922] ? irq_bypass_register_consumer+0x470/0x500 [ 31.072254] panic+0x1e4/0x41c [ 31.075415] ? refcount_error_report+0x214/0x214 [ 31.080139] ? add_taint+0x1c/0x50 [ 31.083647] ? add_taint+0x1c/0x50 [ 31.087156] ? irq_bypass_register_consumer+0x4f0/0x500 [ 31.092490] kasan_end_report+0x50/0x50 [ 31.096432] kasan_report+0x144/0x340 [ 31.100202] __asan_report_load8_noabort+0x14/0x20 [ 31.105098] irq_bypass_register_consumer+0x4f0/0x500 [ 31.110258] ? __disconnect+0x1a0/0x1a0 [ 31.114204] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.119187] ? trace_hardirqs_on+0xd/0x10 [ 31.123305] ? queue_work_on+0x106/0x1c0 [ 31.127338] kvm_irqfd+0x137f/0x1d50 [ 31.131019] ? check_noncircular+0x20/0x20 [ 31.135228] ? kvm_eventfd_init+0x2a0/0x2a0 [ 31.139518] ? lock_downgrade+0x980/0x980 [ 31.143644] ? find_held_lock+0x39/0x1d0 [ 31.147684] ? lock_downgrade+0x980/0x980 [ 31.151801] ? __might_fault+0xe0/0x1d0 [ 31.155749] ? lock_release+0xda0/0xda0 [ 31.159694] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.165546] ? lock_release+0xda0/0xda0 [ 31.169489] ? __free_insn_slot+0x5c0/0x5c0 [ 31.173779] ? __might_sleep+0x95/0x190 [ 31.177725] ? kasan_check_write+0x14/0x20 [ 31.181927] ? _copy_from_user+0x99/0x110 [ 31.186044] kvm_vm_ioctl+0x1079/0x1c40 [ 31.189985] ? __kernel_text_address+0xd/0x40 [ 31.194451] ? unwind_get_return_address+0x61/0xa0 [ 31.199349] ? kvm_set_memory_region+0x50/0x50 [ 31.203905] ? check_noncircular+0x20/0x20 [ 31.208120] ? find_held_lock+0x39/0x1d0 [ 31.212154] ? lock_downgrade+0x980/0x980 [ 31.216288] ? __fget+0xbb/0x580 [ 31.219625] ? lock_release+0xda0/0xda0 [ 31.223569] ? __lock_is_held+0xbc/0x140 [ 31.227607] ? __fget+0x362/0x580 [ 31.231034] ? iterate_fd+0x3f0/0x3f0 [ 31.234803] ? lock_downgrade+0x980/0x980 [ 31.238920] ? lock_acquire+0x1d5/0x580 [ 31.242949] ? kvm_set_memory_region+0x50/0x50 [ 31.247499] do_vfs_ioctl+0x1b1/0x1530 [ 31.251358] ? ioctl_preallocate+0x2b0/0x2b0 [ 31.255738] ? selinux_capable+0x40/0x40 [ 31.259768] ? check_prev_add+0xe16/0x15f0 [ 31.263972] ? lockdep_sys_exit+0x47/0xf0 [ 31.268089] ? syscall_return_slowpath+0x2ad/0x550 [ 31.272990] ? security_file_ioctl+0x89/0xb0 [ 31.277371] SyS_ioctl+0x8f/0xc0 [ 31.280715] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 31.285438] RIP: 0033:0x452a39 [ 31.288596] RSP: 002b:00007fd7b90e5c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 31.296272] RAX: ffffffffffffffda RBX: 00007fd7b90e6700 RCX: 0000000000452a39 [ 31.303509] RDX: 0000000020000000 RSI: 000000004020ae76 RDI: 0000000000000004 [ 31.310747] RBP: 0000000000a6f880 R08: 0000000000000000 R09: 0000000000000000 [ 31.318473] R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000 [ 31.325711] R13: 0000000000a6f7ff R14: 00007fd7b90e69c0 R15: 000000000000000a [ 31.333402] Dumping ftrace buffer: [ 31.336910] (ftrace buffer empty) [ 31.340585] Kernel Offset: disabled [ 31.344181] Rebooting in 86400 seconds..