[....] Starting enhanced syslogd: rsyslogd[ 11.851632] audit: type=1400 audit(1515135158.058:5): avc: denied { syslog } for pid=3323 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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: [ 17.140314] audit: type=1400 audit(1515135163.347:6): avc: denied { map } for pid=3462 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.0.61' (ECDSA) to the list of known hosts. executing program [ 23.363987] audit: type=1400 audit(1515135169.570:7): avc: denied { map } for pid=3477 comm="syzkaller571898" path="/root/syzkaller571898790" 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 [ 23.369582] ================================================================== [ 23.369595] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.369600] Read of size 8 at addr ffff8801c83c9af0 by task syzkaller571898/3477 [ 23.369601] [ 23.369608] CPU: 1 PID: 3477 Comm: syzkaller571898 Not tainted 4.15.0-rc6+ #248 [ 23.369611] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.369614] Call Trace: [ 23.369623] dump_stack+0x194/0x257 [ 23.369631] ? arch_local_irq_restore+0x53/0x53 [ 23.369638] ? show_regs_print_info+0x18/0x18 [ 23.369644] ? print_irqtrace_events+0x270/0x270 [ 23.369650] ? __lock_acquire+0x664/0x3e00 [ 23.369657] ? __lock_acquire+0x3d4d/0x3e00 [ 23.369666] print_address_description+0x73/0x250 [ 23.369672] ? __lock_acquire+0x3d4d/0x3e00 [ 23.369678] kasan_report+0x25b/0x340 [ 23.369687] __asan_report_load8_noabort+0x14/0x20 [ 23.369692] __lock_acquire+0x3d4d/0x3e00 [ 23.369703] ? __lock_acquire+0x664/0x3e00 [ 23.369709] ? lock_downgrade+0x980/0x980 [ 23.369714] ? lock_downgrade+0x980/0x980 [ 23.369724] ? remove_wait_queue+0x81/0x350 [ 23.369733] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.369739] ? __lock_acquire+0x664/0x3e00 [ 23.369744] ? check_noncircular+0x20/0x20 [ 23.369757] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.369764] ? lock_acquire+0x1d5/0x580 [ 23.369769] ? lock_acquire+0x1d5/0x580 [ 23.369776] ? ep_free+0xf4/0x320 [ 23.369785] ? lock_release+0xa40/0xa40 [ 23.369791] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.369798] ? print_irqtrace_events+0x270/0x270 [ 23.369806] ? rcu_note_context_switch+0x710/0x710 [ 23.369813] ? __might_sleep+0x95/0x190 [ 23.369819] ? ep_free+0xf4/0x320 [ 23.369825] ? __mutex_lock+0x16f/0x1a80 [ 23.369830] ? ep_free+0xf4/0x320 [ 23.369837] ? print_irqtrace_events+0x270/0x270 [ 23.369842] ? ep_free+0xf4/0x320 [ 23.369850] lock_acquire+0x1d5/0x580 [ 23.369855] ? lock_acquire+0x1d5/0x580 [ 23.369861] ? remove_wait_queue+0x81/0x350 [ 23.369867] ? __lock_acquire+0x664/0x3e00 [ 23.369874] ? lock_release+0xa40/0xa40 [ 23.369883] ? lock_acquire+0x1d5/0x580 [ 23.369888] ? lock_acquire+0x1d5/0x580 [ 23.369895] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.369903] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.369908] ? remove_wait_queue+0x81/0x350 [ 23.369915] remove_wait_queue+0x81/0x350 [ 23.369922] ? add_wait_queue+0x290/0x290 [ 23.369928] ? rcutorture_record_progress+0x10/0x10 [ 23.369938] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.369945] ? __kernel_text_address+0xd/0x40 [ 23.369953] ? clear_tfile_check_list+0x370/0x370 [ 23.369961] ? check_noncircular+0x20/0x20 [ 23.369970] ? locks_remove_file+0x3fa/0x5a0 [ 23.369979] ep_free+0x13f/0x320 [ 23.369986] ? ep_remove+0x800/0x800 [ 23.369991] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.369999] ? ep_free+0x320/0x320 [ 23.370009] ep_eventpoll_release+0x44/0x60 [ 23.370015] __fput+0x327/0x7e0 [ 23.370024] ? fput+0x140/0x140 [ 23.370030] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.370039] ____fput+0x15/0x20 [ 23.370045] task_work_run+0x199/0x270 [ 23.370053] ? task_work_cancel+0x210/0x210 [ 23.370059] ? _raw_spin_unlock+0x22/0x30 [ 23.370066] ? switch_task_namespaces+0x87/0xc0 [ 23.370073] do_exit+0x9bb/0x1ad0 [ 23.370082] ? binder_ioctl+0x551/0x1417 [ 23.370088] ? mm_update_next_owner+0x930/0x930 [ 23.370096] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.370105] ? avc_ss_reset+0x110/0x110 [ 23.370110] ? mutex_unlock+0xd/0x10 [ 23.370116] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.370135] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.370140] ? up_read+0x1a/0x40 [ 23.370147] ? rcu_note_context_switch+0x710/0x710 [ 23.370152] ? __fd_install+0x288/0x740 [ 23.370161] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.370167] ? do_vfs_ioctl+0x486/0x1520 [ 23.370172] ? _cond_resched+0x14/0x30 [ 23.370179] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.370187] ? selinux_capable+0x40/0x40 [ 23.370193] ? __alloc_fd+0x750/0x750 [ 23.370201] do_group_exit+0x149/0x400 [ 23.370208] ? SyS_exit+0x30/0x30 [ 23.370214] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.370222] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.370229] SyS_exit_group+0x1d/0x20 [ 23.370235] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.370240] RIP: 0033:0x4429f8 [ 23.370243] RSP: 002b:00007ffda623f328 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.370249] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.370252] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.370256] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.370259] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.370262] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.370270] [ 23.370273] Allocated by task 3477: [ 23.370279] save_stack+0x43/0xd0 [ 23.370284] kasan_kmalloc+0xad/0xe0 [ 23.370288] kmem_cache_alloc_trace+0x136/0x750 [ 23.370293] binder_get_thread+0x1cf/0x870 [ 23.370297] binder_poll+0x8c/0x390 [ 23.370302] ep_item_poll.isra.10+0xec/0x320 [ 23.370307] ep_insert+0x6a3/0x1b10 [ 23.370312] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.370317] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.370319] [ 23.370321] Freed by task 3477: [ 23.370325] save_stack+0x43/0xd0 [ 23.370330] kasan_slab_free+0x71/0xc0 [ 23.370334] kfree+0xd6/0x260 [ 23.370338] binder_thread_dec_tmpref+0x27f/0x310 [ 23.370343] binder_thread_release+0x27d/0x540 [ 23.370347] binder_ioctl+0xc02/0x1417 [ 23.370352] do_vfs_ioctl+0x1b1/0x1520 [ 23.370356] SyS_ioctl+0x8f/0xc0 [ 23.370361] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.370362] [ 23.370366] The buggy address belongs to the object at ffff8801c83c9a40 [ 23.370366] which belongs to the cache kmalloc-512 of size 512 [ 23.370371] The buggy address is located 176 bytes inside of [ 23.370371] 512-byte region [ffff8801c83c9a40, ffff8801c83c9c40) [ 23.370373] The buggy address belongs to the page: [ 23.370378] page:0000000089cabbd1 count:1 mapcount:0 mapping:0000000054fcf714 index:0x0 [ 23.370383] flags: 0x2fffc0000000100(slab) [ 23.370392] raw: 02fffc0000000100 ffff8801c83c9040 0000000000000000 0000000100000006 [ 23.370398] raw: ffffea00071f01a0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 23.370400] page dumped because: kasan: bad access detected [ 23.370401] [ 23.370403] Memory state around the buggy address: [ 23.370408] ffff8801c83c9980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.370412] ffff8801c83c9a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.370417] >ffff8801c83c9a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.370419] ^ [ 23.370423] ffff8801c83c9b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.370427] ffff8801c83c9b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.370429] ================================================================== [ 23.370431] Disabling lock debugging due to kernel taint [ 23.370434] Kernel panic - not syncing: panic_on_warn set ... [ 23.370434] [ 23.370440] CPU: 1 PID: 3477 Comm: syzkaller571898 Tainted: G B 4.15.0-rc6+ #248 [ 23.370443] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.370444] Call Trace: [ 23.370450] dump_stack+0x194/0x257 [ 23.370457] ? arch_local_irq_restore+0x53/0x53 [ 23.370462] ? kasan_end_report+0x32/0x50 [ 23.370468] ? lock_downgrade+0x980/0x980 [ 23.370474] ? vsnprintf+0x1ed/0x1900 [ 23.370480] ? __lock_acquire+0x3cb0/0x3e00 [ 23.370486] panic+0x1e4/0x41c [ 23.370492] ? refcount_error_report+0x214/0x214 [ 23.370499] ? add_taint+0x40/0x50 [ 23.370504] ? add_taint+0x1c/0x50 [ 23.370511] ? __lock_acquire+0x3d4d/0x3e00 [ 23.370516] kasan_end_report+0x50/0x50 [ 23.370522] kasan_report+0x144/0x340 [ 23.370530] __asan_report_load8_noabort+0x14/0x20 [ 23.370535] __lock_acquire+0x3d4d/0x3e00 [ 23.370541] ? __lock_acquire+0x664/0x3e00 [ 23.370546] ? lock_downgrade+0x980/0x980 [ 23.370551] ? lock_downgrade+0x980/0x980 [ 23.370558] ? remove_wait_queue+0x81/0x350 [ 23.370567] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.370574] ? __lock_acquire+0x664/0x3e00 [ 23.370579] ? check_noncircular+0x20/0x20 [ 23.370591] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.370598] ? lock_acquire+0x1d5/0x580 [ 23.370603] ? lock_acquire+0x1d5/0x580 [ 23.370608] ? ep_free+0xf4/0x320 [ 23.370616] ? lock_release+0xa40/0xa40 [ 23.370622] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.370628] ? print_irqtrace_events+0x270/0x270 [ 23.370634] ? rcu_note_context_switch+0x710/0x710 [ 23.370641] ? __might_sleep+0x95/0x190 [ 23.370647] ? ep_free+0xf4/0x320 [ 23.370653] ? __mutex_lock+0x16f/0x1a80 [ 23.370657] ? ep_free+0xf4/0x320 [ 23.370664] ? print_irqtrace_events+0x270/0x270 [ 23.370669] ? ep_free+0xf4/0x320 [ 23.370677] lock_acquire+0x1d5/0x580 [ 23.370682] ? lock_acquire+0x1d5/0x580 [ 23.370688] ? remove_wait_queue+0x81/0x350 [ 23.370694] ? __lock_acquire+0x664/0x3e00 [ 23.370706] ? lock_release+0xa40/0xa40 [ 23.370715] ? lock_acquire+0x1d5/0x580 [ 23.370720] ? lock_acquire+0x1d5/0x580 [ 23.370726] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.370734] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.370739] ? remove_wait_queue+0x81/0x350 [ 23.370745] remove_wait_queue+0x81/0x350 [ 23.370753] ? add_wait_queue+0x290/0x290 [ 23.370759] ? rcutorture_record_progress+0x10/0x10 [ 23.370768] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.370775] ? __kernel_text_address+0xd/0x40 [ 23.370783] ? clear_tfile_check_list+0x370/0x370 [ 23.370790] ? check_noncircular+0x20/0x20 [ 23.370797] ? locks_remove_file+0x3fa/0x5a0 [ 23.370806] ep_free+0x13f/0x320 [ 23.370812] ? ep_remove+0x800/0x800 [ 23.370818] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.370825] ? ep_free+0x320/0x320 [ 23.370831] ep_eventpoll_release+0x44/0x60 [ 23.370837] __fput+0x327/0x7e0 [ 23.370845] ? fput+0x140/0x140 [ 23.370851] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.370860] ____fput+0x15/0x20 [ 23.370866] task_work_run+0x199/0x270 [ 23.370873] ? task_work_cancel+0x210/0x210 [ 23.370879] ? _raw_spin_unlock+0x22/0x30 [ 23.370885] ? switch_task_namespaces+0x87/0xc0 [ 23.370892] do_exit+0x9bb/0x1ad0 [ 23.370899] ? binder_ioctl+0x551/0x1417 [ 23.370905] ? mm_update_next_owner+0x930/0x930 [ 23.370913] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.370921] ? avc_ss_reset+0x110/0x110 [ 23.370926] ? mutex_unlock+0xd/0x10 [ 23.370932] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.370950] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.370955] ? up_read+0x1a/0x40 [ 23.370961] ? rcu_note_context_switch+0x710/0x710 [ 23.370966] ? __fd_install+0x288/0x740 [ 23.370974] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.370980] ? do_vfs_ioctl+0x486/0x1520 [ 23.370984] ? _cond_resched+0x14/0x30 [ 23.370992] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.370999] ? selinux_capable+0x40/0x40 [ 23.371005] ? __alloc_fd+0x750/0x750 [ 23.371013] do_group_exit+0x149/0x400 [ 23.371019] ? SyS_exit+0x30/0x30 [ 23.371026] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.371032] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.371039] SyS_exit_group+0x1d/0x20 [ 23.371046] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.371049] RIP: 0033:0x4429f8 [ 23.371052] RSP: 002b:00007ffda623f328 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.371057] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.371061] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.371064] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.371067] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.371070] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.390278] Dumping ftrace buffer: [ 23.390281] (ftrace buffer empty) [ 23.390284] Kernel Offset: disabled [ 24.513782] Rebooting in 86400 seconds..