[....] Starting enhanced syslogd: rsyslogd[ 13.536828] audit: type=1400 audit(1516140011.023:5): avc: denied { syslog } for pid=3502 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: [ 19.021236] audit: type=1400 audit(1516140016.507:6): avc: denied { map } for pid=3642 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.237' (ECDSA) to the list of known hosts. executing program [ 25.283666] audit: type=1400 audit(1516140022.770:7): avc: denied { map } for pid=3656 comm="syzkaller448527" path="/root/syzkaller448527743" 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 [ 25.289673] ================================================================== [ 25.289688] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.289693] Read of size 8 at addr ffff8801bb856df0 by task syzkaller448527/3656 [ 25.289695] [ 25.289702] CPU: 0 PID: 3656 Comm: syzkaller448527 Not tainted 4.15.0-rc8+ #264 [ 25.289705] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.289707] Call Trace: [ 25.289718] dump_stack+0x194/0x257 [ 25.289726] ? arch_local_irq_restore+0x53/0x53 [ 25.289733] ? show_regs_print_info+0x18/0x18 [ 25.289739] ? print_irqtrace_events+0x270/0x270 [ 25.289745] ? __lock_acquire+0x664/0x3e00 [ 25.289751] ? __lock_acquire+0x3d4d/0x3e00 [ 25.289760] print_address_description+0x73/0x250 [ 25.289766] ? __lock_acquire+0x3d4d/0x3e00 [ 25.289772] kasan_report+0x25b/0x340 [ 25.289781] __asan_report_load8_noabort+0x14/0x20 [ 25.289786] __lock_acquire+0x3d4d/0x3e00 [ 25.289792] ? __lock_acquire+0x664/0x3e00 [ 25.289797] ? lock_downgrade+0x980/0x980 [ 25.289802] ? lock_downgrade+0x980/0x980 [ 25.289812] ? remove_wait_queue+0x81/0x350 [ 25.289821] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.289827] ? __lock_acquire+0x664/0x3e00 [ 25.289833] ? check_noncircular+0x20/0x20 [ 25.289845] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.289852] ? lock_acquire+0x1d5/0x580 [ 25.289857] ? lock_acquire+0x1d5/0x580 [ 25.289864] ? ep_free+0xf4/0x320 [ 25.289873] ? lock_release+0xa40/0xa40 [ 25.289880] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.289886] ? print_irqtrace_events+0x270/0x270 [ 25.289894] ? rcu_note_context_switch+0x710/0x710 [ 25.289902] ? __might_sleep+0x95/0x190 [ 25.289908] ? ep_free+0xf4/0x320 [ 25.289914] ? __mutex_lock+0x16f/0x1a80 [ 25.289919] ? ep_free+0xf4/0x320 [ 25.289926] ? print_irqtrace_events+0x270/0x270 [ 25.289931] ? ep_free+0xf4/0x320 [ 25.289939] lock_acquire+0x1d5/0x580 [ 25.289944] ? lock_acquire+0x1d5/0x580 [ 25.289950] ? remove_wait_queue+0x81/0x350 [ 25.289956] ? __lock_acquire+0x664/0x3e00 [ 25.289963] ? lock_release+0xa40/0xa40 [ 25.289972] ? lock_acquire+0x1d5/0x580 [ 25.289977] ? lock_acquire+0x1d5/0x580 [ 25.289983] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.289991] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.289997] ? remove_wait_queue+0x81/0x350 [ 25.290008] remove_wait_queue+0x81/0x350 [ 25.290015] ? add_wait_queue+0x290/0x290 [ 25.290021] ? rcutorture_record_progress+0x10/0x10 [ 25.290032] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.290039] ? __kernel_text_address+0xd/0x40 [ 25.290047] ? clear_tfile_check_list+0x370/0x370 [ 25.290055] ? check_noncircular+0x20/0x20 [ 25.290063] ? locks_remove_file+0x3fa/0x5a0 [ 25.290079] ep_free+0x13f/0x320 [ 25.290085] ? ep_remove+0x800/0x800 [ 25.290091] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.290099] ? ep_free+0x320/0x320 [ 25.290105] ep_eventpoll_release+0x44/0x60 [ 25.290113] __fput+0x327/0x7e0 [ 25.290122] ? fput+0x140/0x140 [ 25.290128] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.290137] ____fput+0x15/0x20 [ 25.290143] task_work_run+0x199/0x270 [ 25.290151] ? task_work_cancel+0x210/0x210 [ 25.290158] ? _raw_spin_unlock+0x22/0x30 [ 25.290164] ? switch_task_namespaces+0x87/0xc0 [ 25.290174] do_exit+0x9bb/0x1ad0 [ 25.290184] ? binder_ioctl+0x4d1/0x1417 [ 25.290191] ? mm_update_next_owner+0x930/0x930 [ 25.290199] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.290209] ? avc_ss_reset+0x110/0x110 [ 25.290215] ? mutex_unlock+0xd/0x10 [ 25.290221] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.290240] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.290245] ? up_read+0x1a/0x40 [ 25.290252] ? rcu_note_context_switch+0x710/0x710 [ 25.290258] ? __fd_install+0x288/0x740 [ 25.290267] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.290273] ? do_vfs_ioctl+0x486/0x1520 [ 25.290278] ? _cond_resched+0x14/0x30 [ 25.290285] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.290293] ? selinux_capable+0x40/0x40 [ 25.290300] ? __alloc_fd+0x750/0x750 [ 25.290308] do_group_exit+0x149/0x400 [ 25.290315] ? SyS_exit+0x30/0x30 [ 25.290322] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.290329] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.290337] SyS_exit_group+0x1d/0x20 [ 25.290344] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.290349] RIP: 0033:0x4429f8 [ 25.290353] RSP: 002b:00007fff1490bea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.290359] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.290362] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.290366] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.290369] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.290372] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.290381] [ 25.290383] Allocated by task 3656: [ 25.290390] save_stack+0x43/0xd0 [ 25.290394] kasan_kmalloc+0xad/0xe0 [ 25.290399] kmem_cache_alloc_trace+0x136/0x750 [ 25.290405] binder_get_thread+0x1cf/0x870 [ 25.290409] binder_poll+0x8c/0x390 [ 25.290414] ep_item_poll.isra.10+0xec/0x320 [ 25.290419] ep_insert+0x6a3/0x1b10 [ 25.290424] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.290430] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.290431] [ 25.290434] Freed by task 3656: [ 25.290438] save_stack+0x43/0xd0 [ 25.290443] kasan_slab_free+0x71/0xc0 [ 25.290447] kfree+0xd6/0x260 [ 25.290452] binder_thread_dec_tmpref+0x27f/0x310 [ 25.290458] binder_thread_release+0x27d/0x540 [ 25.290463] binder_ioctl+0xc02/0x1417 [ 25.290467] do_vfs_ioctl+0x1b1/0x1520 [ 25.290472] SyS_ioctl+0x8f/0xc0 [ 25.290477] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.290478] [ 25.290482] The buggy address belongs to the object at ffff8801bb856d40 [ 25.290482] which belongs to the cache kmalloc-512 of size 512 [ 25.290487] The buggy address is located 176 bytes inside of [ 25.290487] 512-byte region [ffff8801bb856d40, ffff8801bb856f40) [ 25.290489] The buggy address belongs to the page: [ 25.290494] page:ffffea0006ee1580 count:1 mapcount:0 mapping:ffff8801bb8560c0 index:0x0 [ 25.290499] flags: 0x2fffc0000000100(slab) [ 25.290508] raw: 02fffc0000000100 ffff8801bb8560c0 0000000000000000 0000000100000006 [ 25.290514] raw: ffffea0006ee32e0 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.290517] page dumped because: kasan: bad access detected [ 25.290518] [ 25.290519] Memory state around the buggy address: [ 25.290524] ffff8801bb856c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.290528] ffff8801bb856d00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.290532] >ffff8801bb856d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.290535] ^ [ 25.290539] ffff8801bb856e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.290543] ffff8801bb856e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.290545] ================================================================== [ 25.290547] Disabling lock debugging due to kernel taint [ 25.290550] Kernel panic - not syncing: panic_on_warn set ... [ 25.290550] [ 25.290555] CPU: 0 PID: 3656 Comm: syzkaller448527 Tainted: G B 4.15.0-rc8+ #264 [ 25.290558] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.290560] Call Trace: [ 25.290566] dump_stack+0x194/0x257 [ 25.290573] ? arch_local_irq_restore+0x53/0x53 [ 25.290579] ? kasan_end_report+0x32/0x50 [ 25.290585] ? lock_downgrade+0x980/0x980 [ 25.290591] ? vsnprintf+0x1ed/0x1900 [ 25.290597] ? __lock_acquire+0x3c70/0x3e00 [ 25.290602] panic+0x1e4/0x41c [ 25.290608] ? refcount_error_report+0x214/0x214 [ 25.290615] ? add_taint+0x40/0x50 [ 25.290620] ? add_taint+0x1c/0x50 [ 25.290627] ? __lock_acquire+0x3d4d/0x3e00 [ 25.290633] kasan_end_report+0x50/0x50 [ 25.290639] kasan_report+0x144/0x340 [ 25.290646] __asan_report_load8_noabort+0x14/0x20 [ 25.290652] __lock_acquire+0x3d4d/0x3e00 [ 25.290657] ? __lock_acquire+0x664/0x3e00 [ 25.290663] ? lock_downgrade+0x980/0x980 [ 25.290668] ? lock_downgrade+0x980/0x980 [ 25.290675] ? remove_wait_queue+0x81/0x350 [ 25.290684] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.290690] ? __lock_acquire+0x664/0x3e00 [ 25.290696] ? check_noncircular+0x20/0x20 [ 25.290707] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.290714] ? lock_acquire+0x1d5/0x580 [ 25.290720] ? lock_acquire+0x1d5/0x580 [ 25.290725] ? ep_free+0xf4/0x320 [ 25.290733] ? lock_release+0xa40/0xa40 [ 25.290739] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.290745] ? print_irqtrace_events+0x270/0x270 [ 25.290751] ? rcu_note_context_switch+0x710/0x710 [ 25.290758] ? __might_sleep+0x95/0x190 [ 25.290764] ? ep_free+0xf4/0x320 [ 25.290769] ? __mutex_lock+0x16f/0x1a80 [ 25.290774] ? ep_free+0xf4/0x320 [ 25.290781] ? print_irqtrace_events+0x270/0x270 [ 25.290786] ? ep_free+0xf4/0x320 [ 25.290794] lock_acquire+0x1d5/0x580 [ 25.290799] ? lock_acquire+0x1d5/0x580 [ 25.290805] ? remove_wait_queue+0x81/0x350 [ 25.290811] ? __lock_acquire+0x664/0x3e00 [ 25.290818] ? lock_release+0xa40/0xa40 [ 25.290827] ? lock_acquire+0x1d5/0x580 [ 25.290832] ? lock_acquire+0x1d5/0x580 [ 25.290838] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.290846] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.290851] ? remove_wait_queue+0x81/0x350 [ 25.290857] remove_wait_queue+0x81/0x350 [ 25.290865] ? add_wait_queue+0x290/0x290 [ 25.290871] ? rcutorture_record_progress+0x10/0x10 [ 25.290881] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.290887] ? __kernel_text_address+0xd/0x40 [ 25.290895] ? clear_tfile_check_list+0x370/0x370 [ 25.290903] ? check_noncircular+0x20/0x20 [ 25.290910] ? locks_remove_file+0x3fa/0x5a0 [ 25.290920] ep_free+0x13f/0x320 [ 25.290926] ? ep_remove+0x800/0x800 [ 25.290931] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.290939] ? ep_free+0x320/0x320 [ 25.290945] ep_eventpoll_release+0x44/0x60 [ 25.290951] __fput+0x327/0x7e0 [ 25.290959] ? fput+0x140/0x140 [ 25.290966] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.290974] ____fput+0x15/0x20 [ 25.290980] task_work_run+0x199/0x270 [ 25.290988] ? task_work_cancel+0x210/0x210 [ 25.290994] ? _raw_spin_unlock+0x22/0x30 [ 25.291000] ? switch_task_namespaces+0x87/0xc0 [ 25.291007] do_exit+0x9bb/0x1ad0 [ 25.291015] ? binder_ioctl+0x4d1/0x1417 [ 25.291021] ? mm_update_next_owner+0x930/0x930 [ 25.291029] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.291037] ? avc_ss_reset+0x110/0x110 [ 25.291043] ? mutex_unlock+0xd/0x10 [ 25.291048] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.291070] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.291074] ? up_read+0x1a/0x40 [ 25.291081] ? rcu_note_context_switch+0x710/0x710 [ 25.291086] ? __fd_install+0x288/0x740 [ 25.291095] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.291100] ? do_vfs_ioctl+0x486/0x1520 [ 25.291105] ? _cond_resched+0x14/0x30 [ 25.291112] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.291119] ? selinux_capable+0x40/0x40 [ 25.291126] ? __alloc_fd+0x750/0x750 [ 25.291134] do_group_exit+0x149/0x400 [ 25.291140] ? SyS_exit+0x30/0x30 [ 25.291147] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.291153] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.291161] SyS_exit_group+0x1d/0x20 [ 25.291167] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.291171] RIP: 0033:0x4429f8 [ 25.291174] RSP: 002b:00007fff1490bea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.291179] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.291182] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.291186] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.291189] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.291192] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.309974] Dumping ftrace buffer: [ 25.309977] (ftrace buffer empty) [ 25.309980] Kernel Offset: disabled [ 26.435191] Rebooting in 86400 seconds..