[ 13.194776] audit: type=1400 audit(1513147142.133:5): avc: denied { syslog } for pid=2987 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [....] Starting enhanced syslogd: rsyslogd[?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.258494] audit: type=1400 audit(1513147147.197: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-1,10.128.15.223' (ECDSA) to the list of known hosts. [ 24.679487] audit: type=1400 audit(1513147153.618:7): avc: denied { map } for pid=3150 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 06:39:14 parsed 1 programs 2017/12/13 06:39:14 executed programs: 0 [ 25.176061] audit: type=1400 audit(1513147154.114:8): avc: denied { map } for pid=3150 comm="syz-execprog" path="/root/syzkaller-shm655085208" 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.202894] audit: type=1400 audit(1513147154.126:9): avc: denied { sys_admin } for pid=3155 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.274476] audit: type=1400 audit(1513147154.213:10): avc: denied { sys_chroot } for pid=3156 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 [ 26.151049] ================================================================== [ 26.158513] BUG: KASAN: use-after-free in irq_bypass_register_consumer+0x4f0/0x500 [ 26.166225] Read of size 8 at addr ffff8801c1333e90 by task syz-executor3/3276 [ 26.173576] [ 26.175203] CPU: 0 PID: 3276 Comm: syz-executor3 Not tainted 4.15.0-rc3+ #219 [ 26.182940] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.192293] Call Trace: [ 26.194878] dump_stack+0x194/0x257 [ 26.198520] ? arch_local_irq_restore+0x53/0x53 [ 26.203192] ? show_regs_print_info+0x18/0x18 [ 26.207716] ? irq_bypass_register_consumer+0x4f0/0x500 [ 26.213088] print_address_description+0x73/0x250 [ 26.217942] ? irq_bypass_register_consumer+0x4f0/0x500 [ 26.223312] kasan_report+0x25b/0x340 [ 26.227139] __asan_report_load8_noabort+0x14/0x20 [ 26.232073] irq_bypass_register_consumer+0x4f0/0x500 [ 26.237277] ? __disconnect+0x1a0/0x1a0 [ 26.241270] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.246314] kvm_irqfd+0x137a/0x1d50 [ 26.250025] ? check_noncircular+0x20/0x20 [ 26.254319] ? kvm_eventfd_init+0x2a0/0x2a0 [ 26.258672] ? find_held_lock+0x39/0x1d0 [ 26.262773] ? lock_downgrade+0x980/0x980 [ 26.266927] ? __might_fault+0xe0/0x1d0 [ 26.270935] ? lock_release+0xda0/0xda0 [ 26.274911] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.280798] ? futex_wait+0x69e/0x990 [ 26.284612] ? perf_trace_run_bpf_submit+0x206/0x330 [ 26.289732] ? __might_sleep+0x95/0x190 [ 26.293733] ? kasan_check_write+0x14/0x20 [ 26.297971] ? _copy_from_user+0x99/0x110 [ 26.302140] kvm_vm_ioctl+0x1079/0x1c40 [ 26.306132] ? perf_trace_lock+0x4d6/0x900 [ 26.310375] ? kvm_set_memory_region+0x50/0x50 [ 26.314978] ? trace_event_raw_event_lock+0x340/0x340 [ 26.320191] ? check_noncircular+0x20/0x20 [ 26.324429] ? find_held_lock+0x39/0x1d0 [ 26.328521] ? do_futex+0x85b/0x2280 [ 26.332248] ? lock_downgrade+0x980/0x980 [ 26.336404] ? __bpf_address_lookup+0x2b0/0x2b0 [ 26.341145] ? find_held_lock+0x39/0x1d0 [ 26.345249] ? lock_downgrade+0x980/0x980 [ 26.349405] ? __fget+0xbb/0x580 [ 26.352794] ? lock_release+0xda0/0xda0 [ 26.356781] ? __lock_is_held+0xbc/0x140 [ 26.360889] ? __fget+0x362/0x580 [ 26.364376] ? iterate_fd+0x3f0/0x3f0 [ 26.368188] ? user_path_at_empty+0x40/0x50 [ 26.372504] ? user_path_at_empty+0x40/0x50 [ 26.376843] ? do_mount+0x170/0x2bb0 [ 26.380571] ? kvm_set_memory_region+0x50/0x50 [ 26.385153] do_vfs_ioctl+0x1b1/0x1530 [ 26.389041] ? copy_mount_string+0x40/0x40 [ 26.393272] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.397667] ? selinux_capable+0x40/0x40 [ 26.401719] ? SyS_futex+0x269/0x390 [ 26.405471] ? security_file_ioctl+0x89/0xb0 [ 26.409876] SyS_ioctl+0x8f/0xc0 [ 26.413232] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.417964] RIP: 0033:0x452a39 [ 26.421133] RSP: 002b:00007fb853a05c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 26.428839] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 26.436095] RDX: 0000000020080fe0 RSI: 000000004020ae76 RDI: 0000000000000008 [ 26.443343] RBP: 00000000000004cd R08: 0000000000000000 R09: 0000000000000000 [ 26.450588] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f53d8 [ 26.457834] R13: 00000000ffffffff R14: 00007fb853a066d4 R15: 0000000000000000 [ 26.465117] [ 26.466721] Allocated by task 3276: [ 26.470331] save_stack+0x43/0xd0 [ 26.473769] kasan_kmalloc+0xad/0xe0 [ 26.477457] kmem_cache_alloc_trace+0x136/0x750 [ 26.482103] kvm_irqfd+0x16c/0x1d50 [ 26.485707] kvm_vm_ioctl+0x1079/0x1c40 [ 26.489657] do_vfs_ioctl+0x1b1/0x1530 [ 26.493518] SyS_ioctl+0x8f/0xc0 [ 26.496860] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.501586] [ 26.503192] Freed by task 24: [ 26.506276] save_stack+0x43/0xd0 [ 26.509703] kasan_slab_free+0x71/0xc0 [ 26.513564] kfree+0xca/0x250 [ 26.516645] irqfd_shutdown+0x13c/0x1a0 [ 26.520605] process_one_work+0xbfd/0x1be0 [ 26.524814] worker_thread+0x223/0x1990 [ 26.528760] kthread+0x37a/0x440 [ 26.532101] ret_from_fork+0x24/0x30 [ 26.535796] [ 26.537410] The buggy address belongs to the object at ffff8801c1333d00 [ 26.537410] which belongs to the cache kmalloc-512 of size 512 [ 26.550051] The buggy address is located 400 bytes inside of [ 26.550051] 512-byte region [ffff8801c1333d00, ffff8801c1333f00) [ 26.561907] The buggy address belongs to the page: [ 26.566810] page:000000002f090413 count:1 mapcount:0 mapping:0000000075078c65 index:0x0 [ 26.574934] flags: 0x2fffc0000000100(slab) [ 26.579147] raw: 02fffc0000000100 ffff8801c1333080 0000000000000000 0000000100000006 [ 26.587007] raw: ffffea000704ce20 ffffea000704e920 ffff8801db000940 0000000000000000 [ 26.594869] page dumped because: kasan: bad access detected [ 26.600561] [ 26.602163] Memory state around the buggy address: [ 26.607066] ffff8801c1333d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.614407] ffff8801c1333e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.621740] >ffff8801c1333e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.629072] ^ [ 26.632935] ffff8801c1333f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.640268] ffff8801c1333f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.647599] ================================================================== [ 26.654928] Disabling lock debugging due to kernel taint [ 26.660471] Kernel panic - not syncing: panic_on_warn set ... [ 26.660471] [ 26.667822] CPU: 0 PID: 3276 Comm: syz-executor3 Tainted: G B 4.15.0-rc3+ #219 [ 26.676377] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.685704] Call Trace: [ 26.688266] dump_stack+0x194/0x257 [ 26.691870] ? arch_local_irq_restore+0x53/0x53 [ 26.696524] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.701263] ? vsnprintf+0x1ed/0x1900 [ 26.705050] ? irq_bypass_register_consumer+0x430/0x500 [ 26.710393] panic+0x1e4/0x41c [ 26.713558] ? refcount_error_report+0x214/0x214 [ 26.718325] ? irq_bypass_register_consumer+0x4f0/0x500 [ 26.723663] kasan_end_report+0x50/0x50 [ 26.727612] kasan_report+0x144/0x340 [ 26.731396] __asan_report_load8_noabort+0x14/0x20 [ 26.736310] irq_bypass_register_consumer+0x4f0/0x500 [ 26.741485] ? __disconnect+0x1a0/0x1a0 [ 26.745443] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.750447] kvm_irqfd+0x137a/0x1d50 [ 26.754138] ? check_noncircular+0x20/0x20 [ 26.758370] ? kvm_eventfd_init+0x2a0/0x2a0 [ 26.762681] ? find_held_lock+0x39/0x1d0 [ 26.766733] ? lock_downgrade+0x980/0x980 [ 26.770857] ? __might_fault+0xe0/0x1d0 [ 26.774814] ? lock_release+0xda0/0xda0 [ 26.778758] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.784616] ? futex_wait+0x69e/0x990 [ 26.788392] ? perf_trace_run_bpf_submit+0x206/0x330 [ 26.793477] ? __might_sleep+0x95/0x190 [ 26.797439] ? kasan_check_write+0x14/0x20 [ 26.801644] ? _copy_from_user+0x99/0x110 [ 26.805767] kvm_vm_ioctl+0x1079/0x1c40 [ 26.809717] ? perf_trace_lock+0x4d6/0x900 [ 26.813932] ? kvm_set_memory_region+0x50/0x50 [ 26.818504] ? trace_event_raw_event_lock+0x340/0x340 [ 26.823670] ? check_noncircular+0x20/0x20 [ 26.827878] ? find_held_lock+0x39/0x1d0 [ 26.831922] ? do_futex+0x85b/0x2280 [ 26.835607] ? lock_downgrade+0x980/0x980 [ 26.839728] ? __bpf_address_lookup+0x2b0/0x2b0 [ 26.844373] ? find_held_lock+0x39/0x1d0 [ 26.848430] ? lock_downgrade+0x980/0x980 [ 26.852561] ? __fget+0xbb/0x580 [ 26.855907] ? lock_release+0xda0/0xda0 [ 26.859855] ? __lock_is_held+0xbc/0x140 [ 26.863904] ? __fget+0x362/0x580 [ 26.867341] ? iterate_fd+0x3f0/0x3f0 [ 26.871119] ? user_path_at_empty+0x40/0x50 [ 26.875407] ? user_path_at_empty+0x40/0x50 [ 26.879704] ? do_mount+0x170/0x2bb0 [ 26.883396] ? kvm_set_memory_region+0x50/0x50 [ 26.887955] do_vfs_ioctl+0x1b1/0x1530 [ 26.891814] ? copy_mount_string+0x40/0x40 [ 26.896035] ? ioctl_preallocate+0x2b0/0x2b0 [ 26.900420] ? selinux_capable+0x40/0x40 [ 26.904460] ? SyS_futex+0x269/0x390 [ 26.908162] ? security_file_ioctl+0x89/0xb0 [ 26.912546] SyS_ioctl+0x8f/0xc0 [ 26.915892] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.920616] RIP: 0033:0x452a39 [ 26.923776] RSP: 002b:00007fb853a05c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010 [ 26.931453] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 26.938692] RDX: 0000000020080fe0 RSI: 000000004020ae76 RDI: 0000000000000008 [ 26.945935] RBP: 00000000000004cd R08: 0000000000000000 R09: 0000000000000000 [ 26.953175] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f53d8 [ 26.960416] R13: 00000000ffffffff R14: 00007fb853a066d4 R15: 0000000000000000 [ 26.968139] Dumping ftrace buffer: [ 26.971655] (ftrace buffer empty) [ 26.975332] Kernel Offset: disabled [ 26.978930] Rebooting in 86400 seconds..