[ 11.004622] audit: type=1400 audit(1514870659.234:5): avc: denied { syslog } for pid=2990 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: [ 16.495405] audit: type=1400 audit(1514870664.724: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 '10.128.15.221' (ECDSA) to the list of known hosts. executing program [ 40.850193] audit: type=1400 audit(1514870689.079:7): avc: denied { map } for pid=3150 comm="syzkaller452890" path="/root/syzkaller452890799" 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 [ 40.855160] ================================================================== [ 40.855175] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 40.855179] Read of size 8 at addr ffff8801c96380f8 by task syzkaller452890/3150 [ 40.855180] [ 40.855186] CPU: 0 PID: 3150 Comm: syzkaller452890 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 40.855189] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.855190] Call Trace: [ 40.855199] dump_stack+0x194/0x257 [ 40.855204] ? arch_local_irq_restore+0x53/0x53 [ 40.855214] ? show_regs_print_info+0x18/0x18 [ 40.855218] ? print_irqtrace_events+0x270/0x270 [ 40.855222] ? __lock_acquire+0x664/0x3e00 [ 40.855226] ? __lock_acquire+0x3d4d/0x3e00 [ 40.855234] print_address_description+0x73/0x250 [ 40.855237] ? __lock_acquire+0x3d4d/0x3e00 [ 40.855241] kasan_report+0x25b/0x340 [ 40.855247] __asan_report_load8_noabort+0x14/0x20 [ 40.855250] __lock_acquire+0x3d4d/0x3e00 [ 40.855254] ? __lock_acquire+0x664/0x3e00 [ 40.855258] ? lock_downgrade+0x980/0x980 [ 40.855261] ? lock_downgrade+0x980/0x980 [ 40.855267] ? remove_wait_queue+0x81/0x350 [ 40.855273] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.855277] ? __lock_acquire+0x664/0x3e00 [ 40.855281] ? check_noncircular+0x20/0x20 [ 40.855289] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.855293] ? lock_acquire+0x1d5/0x580 [ 40.855297] ? lock_acquire+0x1d5/0x580 [ 40.855303] ? ep_free+0xf4/0x320 [ 40.855308] ? lock_release+0xa40/0xa40 [ 40.855314] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 40.855318] ? print_irqtrace_events+0x270/0x270 [ 40.855324] ? rcu_note_context_switch+0x710/0x710 [ 40.855329] ? __might_sleep+0x95/0x190 [ 40.855332] ? ep_free+0xf4/0x320 [ 40.855340] ? __mutex_lock+0x16f/0x1a80 [ 40.855342] ? ep_free+0xf4/0x320 [ 40.855347] ? print_irqtrace_events+0x270/0x270 [ 40.855350] ? ep_free+0xf4/0x320 [ 40.855355] lock_acquire+0x1d5/0x580 [ 40.855358] ? lock_acquire+0x1d5/0x580 [ 40.855361] ? remove_wait_queue+0x81/0x350 [ 40.855365] ? __lock_acquire+0x664/0x3e00 [ 40.855370] ? lock_release+0xa40/0xa40 [ 40.855376] ? lock_acquire+0x1d5/0x580 [ 40.855379] ? lock_acquire+0x1d5/0x580 [ 40.855383] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 40.855388] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.855392] ? remove_wait_queue+0x81/0x350 [ 40.855396] remove_wait_queue+0x81/0x350 [ 40.855401] ? add_wait_queue+0x290/0x290 [ 40.855404] ? rcutorture_record_progress+0x10/0x10 [ 40.855411] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 40.855418] ? __kernel_text_address+0xd/0x40 [ 40.855423] ? clear_tfile_check_list+0x370/0x370 [ 40.855428] ? check_noncircular+0x20/0x20 [ 40.855434] ? locks_remove_file+0x3fa/0x5a0 [ 40.855440] ep_free+0x13f/0x320 [ 40.855443] ? ep_remove+0x800/0x800 [ 40.855447] ? fsnotify_first_mark+0x2b0/0x2b0 [ 40.855451] ? ep_free+0x320/0x320 [ 40.855455] ep_eventpoll_release+0x44/0x60 [ 40.855461] __fput+0x327/0x7e0 [ 40.855466] ? fput+0x140/0x140 [ 40.855470] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.855475] ____fput+0x15/0x20 [ 40.855479] task_work_run+0x199/0x270 [ 40.855484] ? task_work_cancel+0x210/0x210 [ 40.855487] ? _raw_spin_unlock+0x22/0x30 [ 40.855491] ? switch_task_namespaces+0x87/0xc0 [ 40.855498] do_exit+0x9bb/0x1ad0 [ 40.855506] ? binder_ioctl+0x491/0x1417 [ 40.855510] ? mm_update_next_owner+0x930/0x930 [ 40.855514] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 40.855523] ? avc_ss_reset+0x110/0x110 [ 40.855526] ? mutex_unlock+0xd/0x10 [ 40.855530] ? SyS_epoll_ctl+0x30a/0x1a80 [ 40.855543] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 40.855545] ? up_read+0x1a/0x40 [ 40.855550] ? rcu_note_context_switch+0x710/0x710 [ 40.855553] ? __fd_install+0x288/0x740 [ 40.855559] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 40.855563] ? do_vfs_ioctl+0x486/0x1520 [ 40.855566] ? _cond_resched+0x14/0x30 [ 40.855571] ? ioctl_preallocate+0x2b0/0x2b0 [ 40.855576] ? selinux_capable+0x40/0x40 [ 40.855580] ? __alloc_fd+0x750/0x750 [ 40.855585] do_group_exit+0x149/0x400 [ 40.855589] ? SyS_exit+0x30/0x30 [ 40.855594] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.855599] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.855604] SyS_exit_group+0x1d/0x20 [ 40.855608] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.855611] RIP: 0033:0x4429f8 [ 40.855613] RSP: 002b:00007fffaca0d4e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.855617] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 40.855620] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.855622] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.855624] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 40.855626] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 40.855631] [ 40.855633] Allocated by task 3150: [ 40.855638] save_stack+0x43/0xd0 [ 40.855640] kasan_kmalloc+0xad/0xe0 [ 40.855644] kmem_cache_alloc_trace+0x136/0x750 [ 40.855647] binder_get_thread+0x1cf/0x870 [ 40.855649] binder_poll+0x8c/0x390 [ 40.855652] ep_item_poll.isra.10+0xf2/0x320 [ 40.855655] ep_insert+0x6a2/0x1ac0 [ 40.855658] SyS_epoll_ctl+0x12bf/0x1a80 [ 40.855661] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.855662] [ 40.855663] Freed by task 3150: [ 40.855666] save_stack+0x43/0xd0 [ 40.855669] kasan_slab_free+0x71/0xc0 [ 40.855672] kfree+0xd6/0x260 [ 40.855675] binder_thread_dec_tmpref+0x27f/0x310 [ 40.855678] binder_thread_release+0x27d/0x540 [ 40.855680] binder_ioctl+0xc02/0x1417 [ 40.855683] do_vfs_ioctl+0x1b1/0x1520 [ 40.855685] SyS_ioctl+0x8f/0xc0 [ 40.855688] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.855689] [ 40.855692] The buggy address belongs to the object at ffff8801c9638040 [ 40.855692] which belongs to the cache kmalloc-512 of size 512 [ 40.855695] The buggy address is located 184 bytes inside of [ 40.855695] 512-byte region [ffff8801c9638040, ffff8801c9638240) [ 40.855696] The buggy address belongs to the page: [ 40.855699] page:000000008e2f5d68 count:1 mapcount:0 mapping:00000000867fb29e index:0x0 [ 40.855703] flags: 0x2fffc0000000100(slab) [ 40.855710] raw: 02fffc0000000100 ffff8801c9638040 0000000000000000 0000000100000006 [ 40.855714] raw: ffffea000726ac60 ffffea0007258c60 ffff8801dac00940 0000000000000000 [ 40.855715] page dumped because: kasan: bad access detected [ 40.855716] [ 40.855717] Memory state around the buggy address: [ 40.855720] ffff8801c9637f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 40.855723] ffff8801c9638000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 40.855726] >ffff8801c9638080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.855727] ^ [ 40.855730] ffff8801c9638100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.855732] ffff8801c9638180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.855733] ================================================================== [ 40.855735] Disabling lock debugging due to kernel taint [ 40.855737] Kernel panic - not syncing: panic_on_warn set ... [ 40.855737] [ 40.855741] CPU: 0 PID: 3150 Comm: syzkaller452890 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 40.855743] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.855744] Call Trace: [ 40.855747] dump_stack+0x194/0x257 [ 40.855751] ? arch_local_irq_restore+0x53/0x53 [ 40.855755] ? kasan_end_report+0x32/0x50 [ 40.855759] ? lock_downgrade+0x980/0x980 [ 40.855762] ? vsnprintf+0x1ed/0x1900 [ 40.855766] ? __lock_acquire+0x3d30/0x3e00 [ 40.855770] panic+0x1e4/0x41c [ 40.855774] ? refcount_error_report+0x214/0x214 [ 40.855778] ? add_taint+0x40/0x50 [ 40.855781] ? add_taint+0x1c/0x50 [ 40.855785] ? __lock_acquire+0x3d4d/0x3e00 [ 40.855788] kasan_end_report+0x50/0x50 [ 40.855792] kasan_report+0x144/0x340 [ 40.855797] __asan_report_load8_noabort+0x14/0x20 [ 40.855800] __lock_acquire+0x3d4d/0x3e00 [ 40.855803] ? __lock_acquire+0x664/0x3e00 [ 40.855807] ? lock_downgrade+0x980/0x980 [ 40.855810] ? lock_downgrade+0x980/0x980 [ 40.855814] ? remove_wait_queue+0x81/0x350 [ 40.855820] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.855824] ? __lock_acquire+0x664/0x3e00 [ 40.855827] ? check_noncircular+0x20/0x20 [ 40.855833] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.855838] ? lock_acquire+0x1d5/0x580 [ 40.855841] ? lock_acquire+0x1d5/0x580 [ 40.855845] ? ep_free+0xf4/0x320 [ 40.855852] ? lock_release+0xa40/0xa40 [ 40.855857] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 40.855861] ? print_irqtrace_events+0x270/0x270 [ 40.855867] ? rcu_note_context_switch+0x710/0x710 [ 40.855873] ? __might_sleep+0x95/0x190 [ 40.855877] ? ep_free+0xf4/0x320 [ 40.855881] ? __mutex_lock+0x16f/0x1a80 [ 40.855884] ? ep_free+0xf4/0x320 [ 40.855888] ? print_irqtrace_events+0x270/0x270 [ 40.855891] ? ep_free+0xf4/0x320 [ 40.855896] lock_acquire+0x1d5/0x580 [ 40.855899] ? lock_acquire+0x1d5/0x580 [ 40.855902] ? remove_wait_queue+0x81/0x350 [ 40.855906] ? __lock_acquire+0x664/0x3e00 [ 40.855910] ? lock_release+0xa40/0xa40 [ 40.855915] ? lock_acquire+0x1d5/0x580 [ 40.855918] ? lock_acquire+0x1d5/0x580 [ 40.855922] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 40.855926] _raw_spin_lock_irqsave+0x96/0xc0 [ 40.855930] ? remove_wait_queue+0x81/0x350 [ 40.855934] remove_wait_queue+0x81/0x350 [ 40.855938] ? add_wait_queue+0x290/0x290 [ 40.855942] ? rcutorture_record_progress+0x10/0x10 [ 40.855948] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 40.855952] ? __kernel_text_address+0xd/0x40 [ 40.855956] ? clear_tfile_check_list+0x370/0x370 [ 40.855961] ? check_noncircular+0x20/0x20 [ 40.855965] ? locks_remove_file+0x3fa/0x5a0 [ 40.855971] ep_free+0x13f/0x320 [ 40.855974] ? ep_remove+0x800/0x800 [ 40.855977] ? fsnotify_first_mark+0x2b0/0x2b0 [ 40.855982] ? ep_free+0x320/0x320 [ 40.855985] ep_eventpoll_release+0x44/0x60 [ 40.855989] __fput+0x327/0x7e0 [ 40.855994] ? fput+0x140/0x140 [ 40.855998] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.856005] ____fput+0x15/0x20 [ 40.856009] task_work_run+0x199/0x270 [ 40.856014] ? task_work_cancel+0x210/0x210 [ 40.856017] ? _raw_spin_unlock+0x22/0x30 [ 40.856021] ? switch_task_namespaces+0x87/0xc0 [ 40.856025] do_exit+0x9bb/0x1ad0 [ 40.856030] ? binder_ioctl+0x491/0x1417 [ 40.856033] ? mm_update_next_owner+0x930/0x930 [ 40.856038] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 40.856042] ? avc_ss_reset+0x110/0x110 [ 40.856046] ? mutex_unlock+0xd/0x10 [ 40.856050] ? SyS_epoll_ctl+0x30a/0x1a80 [ 40.856060] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 40.856063] ? up_read+0x1a/0x40 [ 40.856067] ? rcu_note_context_switch+0x710/0x710 [ 40.856070] ? __fd_install+0x288/0x740 [ 40.856075] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 40.856078] ? do_vfs_ioctl+0x486/0x1520 [ 40.856081] ? _cond_resched+0x14/0x30 [ 40.856085] ? ioctl_preallocate+0x2b0/0x2b0 [ 40.856090] ? selinux_capable+0x40/0x40 [ 40.856093] ? __alloc_fd+0x750/0x750 [ 40.856098] do_group_exit+0x149/0x400 [ 40.856102] ? SyS_exit+0x30/0x30 [ 40.856106] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.856110] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.856115] SyS_exit_group+0x1d/0x20 [ 40.856119] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.856121] RIP: 0033:0x4429f8 [ 40.856123] RSP: 002b:00007fffaca0d4e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 40.856127] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 40.856129] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 40.856131] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 40.856133] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 40.856135] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 40.876120] Dumping ftrace buffer: [ 40.876124] (ftrace buffer empty) [ 40.876126] Kernel Offset: disabled [ 42.003175] Rebooting in 86400 seconds..