[....] Starting enhanced syslogd: rsyslogd[ 11.319081] audit: type=1400 audit(1515664035.253:5): avc: denied { syslog } for pid=3343 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: [ 15.488158] audit: type=1400 audit(1515664039.422:6): avc: denied { map } for pid=3482 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.55' (ECDSA) to the list of known hosts. executing program [ 23.915578] audit: type=1400 audit(1515664047.850:7): avc: denied { map } for pid=3496 comm="syzkaller307210" path="/root/syzkaller307210946" 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.921410] ================================================================== [ 23.921424] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.921429] Read of size 8 at addr ffff8801c10d9af0 by task syzkaller307210/3496 [ 23.921431] [ 23.921438] CPU: 0 PID: 3496 Comm: syzkaller307210 Not tainted 4.15.0-rc7+ #257 [ 23.921441] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.921443] Call Trace: [ 23.921453] dump_stack+0x194/0x257 [ 23.921460] ? arch_local_irq_restore+0x53/0x53 [ 23.921468] ? show_regs_print_info+0x18/0x18 [ 23.921474] ? print_irqtrace_events+0x270/0x270 [ 23.921480] ? __lock_acquire+0x664/0x3e00 [ 23.921491] ? __lock_acquire+0x3d4d/0x3e00 [ 23.921500] print_address_description+0x73/0x250 [ 23.921506] ? __lock_acquire+0x3d4d/0x3e00 [ 23.921512] kasan_report+0x25b/0x340 [ 23.921521] __asan_report_load8_noabort+0x14/0x20 [ 23.921526] __lock_acquire+0x3d4d/0x3e00 [ 23.921532] ? __lock_acquire+0x664/0x3e00 [ 23.921538] ? lock_downgrade+0x980/0x980 [ 23.921543] ? lock_downgrade+0x980/0x980 [ 23.921552] ? remove_wait_queue+0x81/0x350 [ 23.921561] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.921567] ? __lock_acquire+0x664/0x3e00 [ 23.921573] ? check_noncircular+0x20/0x20 [ 23.921585] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.921592] ? lock_acquire+0x1d5/0x580 [ 23.921598] ? lock_acquire+0x1d5/0x580 [ 23.921605] ? ep_free+0xf4/0x320 [ 23.921613] ? lock_release+0xa40/0xa40 [ 23.921619] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.921625] ? print_irqtrace_events+0x270/0x270 [ 23.921634] ? rcu_note_context_switch+0x710/0x710 [ 23.921641] ? __might_sleep+0x95/0x190 [ 23.921647] ? ep_free+0xf4/0x320 [ 23.921653] ? __mutex_lock+0x16f/0x1a80 [ 23.921658] ? ep_free+0xf4/0x320 [ 23.921665] ? print_irqtrace_events+0x270/0x270 [ 23.921670] ? ep_free+0xf4/0x320 [ 23.921678] lock_acquire+0x1d5/0x580 [ 23.921683] ? lock_acquire+0x1d5/0x580 [ 23.921689] ? remove_wait_queue+0x81/0x350 [ 23.921695] ? __lock_acquire+0x664/0x3e00 [ 23.921702] ? lock_release+0xa40/0xa40 [ 23.921711] ? lock_acquire+0x1d5/0x580 [ 23.921716] ? lock_acquire+0x1d5/0x580 [ 23.921722] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.921731] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.921737] ? remove_wait_queue+0x81/0x350 [ 23.921743] remove_wait_queue+0x81/0x350 [ 23.921751] ? add_wait_queue+0x290/0x290 [ 23.921757] ? rcutorture_record_progress+0x10/0x10 [ 23.921767] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.921775] ? __kernel_text_address+0xd/0x40 [ 23.921783] ? clear_tfile_check_list+0x370/0x370 [ 23.921791] ? check_noncircular+0x20/0x20 [ 23.921800] ? locks_remove_file+0x3fa/0x5a0 [ 23.921815] ep_free+0x13f/0x320 [ 23.921821] ? ep_remove+0x800/0x800 [ 23.921828] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.921836] ? ep_free+0x320/0x320 [ 23.921842] ep_eventpoll_release+0x44/0x60 [ 23.921849] __fput+0x327/0x7e0 [ 23.921857] ? fput+0x140/0x140 [ 23.921864] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.921872] ____fput+0x15/0x20 [ 23.921879] task_work_run+0x199/0x270 [ 23.921886] ? task_work_cancel+0x210/0x210 [ 23.921893] ? _raw_spin_unlock+0x22/0x30 [ 23.921899] ? switch_task_namespaces+0x87/0xc0 [ 23.921909] do_exit+0x9bb/0x1ad0 [ 23.921918] ? binder_ioctl+0x481/0x1417 [ 23.921924] ? mm_update_next_owner+0x930/0x930 [ 23.921932] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.921941] ? avc_ss_reset+0x110/0x110 [ 23.921947] ? mutex_unlock+0xd/0x10 [ 23.921952] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.921971] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.921976] ? up_read+0x1a/0x40 [ 23.921983] ? rcu_note_context_switch+0x710/0x710 [ 23.921989] ? __fd_install+0x288/0x740 [ 23.921998] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.922007] ? do_vfs_ioctl+0x486/0x1520 [ 23.922012] ? _cond_resched+0x14/0x30 [ 23.922020] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.922027] ? selinux_capable+0x40/0x40 [ 23.922034] ? __alloc_fd+0x750/0x750 [ 23.922042] do_group_exit+0x149/0x400 [ 23.922049] ? SyS_exit+0x30/0x30 [ 23.922055] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.922063] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.922070] SyS_exit_group+0x1d/0x20 [ 23.922077] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.922081] RIP: 0033:0x4429f8 [ 23.922085] RSP: 002b:00007fff8079b738 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.922091] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.922094] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.922098] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.922101] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.922105] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.922113] [ 23.922116] Allocated by task 3496: [ 23.922122] save_stack+0x43/0xd0 [ 23.922126] kasan_kmalloc+0xad/0xe0 [ 23.922131] kmem_cache_alloc_trace+0x136/0x750 [ 23.922135] binder_get_thread+0x1cf/0x870 [ 23.922140] binder_poll+0x8c/0x390 [ 23.922145] ep_item_poll.isra.10+0xec/0x320 [ 23.922150] ep_insert+0x6a3/0x1b10 [ 23.922154] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.922160] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.922161] [ 23.922163] Freed by task 3496: [ 23.922167] save_stack+0x43/0xd0 [ 23.922172] kasan_slab_free+0x71/0xc0 [ 23.922176] kfree+0xd6/0x260 [ 23.922181] binder_thread_dec_tmpref+0x27f/0x310 [ 23.922185] binder_thread_release+0x27d/0x540 [ 23.922190] binder_ioctl+0xc02/0x1417 [ 23.922194] do_vfs_ioctl+0x1b1/0x1520 [ 23.922198] SyS_ioctl+0x8f/0xc0 [ 23.922204] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.922205] [ 23.922209] The buggy address belongs to the object at ffff8801c10d9a40 [ 23.922209] which belongs to the cache kmalloc-512 of size 512 [ 23.922214] The buggy address is located 176 bytes inside of [ 23.922214] 512-byte region [ffff8801c10d9a40, ffff8801c10d9c40) [ 23.922215] The buggy address belongs to the page: [ 23.922220] page:ffffea0007043640 count:1 mapcount:0 mapping:ffff8801c10d9040 index:0x0 [ 23.922225] flags: 0x2fffc0000000100(slab) [ 23.922233] raw: 02fffc0000000100 ffff8801c10d9040 0000000000000000 0000000100000006 [ 23.922240] raw: ffffea00070446e0 ffffea0007013fa0 ffff8801dac00940 0000000000000000 [ 23.922242] page dumped because: kasan: bad access detected [ 23.922243] [ 23.922245] Memory state around the buggy address: [ 23.922249] ffff8801c10d9980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.922253] ffff8801c10d9a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.922258] >ffff8801c10d9a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.922260] ^ [ 23.922264] ffff8801c10d9b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.922269] ffff8801c10d9b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.922271] ================================================================== [ 23.922272] Disabling lock debugging due to kernel taint [ 23.922275] Kernel panic - not syncing: panic_on_warn set ... [ 23.922275] [ 23.922281] CPU: 0 PID: 3496 Comm: syzkaller307210 Tainted: G B 4.15.0-rc7+ #257 [ 23.922284] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.922285] Call Trace: [ 23.922291] dump_stack+0x194/0x257 [ 23.922298] ? arch_local_irq_restore+0x53/0x53 [ 23.922304] ? kasan_end_report+0x32/0x50 [ 23.922310] ? lock_downgrade+0x980/0x980 [ 23.922316] ? vsnprintf+0x1ed/0x1900 [ 23.922322] ? __lock_acquire+0x3cb0/0x3e00 [ 23.922328] panic+0x1e4/0x41c [ 23.922333] ? refcount_error_report+0x214/0x214 [ 23.922340] ? add_taint+0x40/0x50 [ 23.922345] ? add_taint+0x1c/0x50 [ 23.922352] ? __lock_acquire+0x3d4d/0x3e00 [ 23.922358] kasan_end_report+0x50/0x50 [ 23.922363] kasan_report+0x144/0x340 [ 23.922371] __asan_report_load8_noabort+0x14/0x20 [ 23.922377] __lock_acquire+0x3d4d/0x3e00 [ 23.922382] ? __lock_acquire+0x664/0x3e00 [ 23.922388] ? lock_downgrade+0x980/0x980 [ 23.922393] ? lock_downgrade+0x980/0x980 [ 23.922400] ? remove_wait_queue+0x81/0x350 [ 23.922409] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.922415] ? __lock_acquire+0x664/0x3e00 [ 23.922420] ? check_noncircular+0x20/0x20 [ 23.922432] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.922439] ? lock_acquire+0x1d5/0x580 [ 23.922444] ? lock_acquire+0x1d5/0x580 [ 23.922450] ? ep_free+0xf4/0x320 [ 23.922458] ? lock_release+0xa40/0xa40 [ 23.922464] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.922470] ? print_irqtrace_events+0x270/0x270 [ 23.922476] ? rcu_note_context_switch+0x710/0x710 [ 23.922483] ? __might_sleep+0x95/0x190 [ 23.922489] ? ep_free+0xf4/0x320 [ 23.922494] ? __mutex_lock+0x16f/0x1a80 [ 23.922499] ? ep_free+0xf4/0x320 [ 23.922506] ? print_irqtrace_events+0x270/0x270 [ 23.922510] ? ep_free+0xf4/0x320 [ 23.922519] lock_acquire+0x1d5/0x580 [ 23.922524] ? lock_acquire+0x1d5/0x580 [ 23.922530] ? remove_wait_queue+0x81/0x350 [ 23.922535] ? __lock_acquire+0x664/0x3e00 [ 23.922543] ? lock_release+0xa40/0xa40 [ 23.922551] ? lock_acquire+0x1d5/0x580 [ 23.922556] ? lock_acquire+0x1d5/0x580 [ 23.922562] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.922570] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.922575] ? remove_wait_queue+0x81/0x350 [ 23.922582] remove_wait_queue+0x81/0x350 [ 23.922589] ? add_wait_queue+0x290/0x290 [ 23.922595] ? rcutorture_record_progress+0x10/0x10 [ 23.922604] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.922611] ? __kernel_text_address+0xd/0x40 [ 23.922619] ? clear_tfile_check_list+0x370/0x370 [ 23.922626] ? check_noncircular+0x20/0x20 [ 23.922634] ? locks_remove_file+0x3fa/0x5a0 [ 23.922642] ep_free+0x13f/0x320 [ 23.922648] ? ep_remove+0x800/0x800 [ 23.922654] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.922662] ? ep_free+0x320/0x320 [ 23.922668] ep_eventpoll_release+0x44/0x60 [ 23.922673] __fput+0x327/0x7e0 [ 23.922682] ? fput+0x140/0x140 [ 23.922688] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.922696] ____fput+0x15/0x20 [ 23.922703] task_work_run+0x199/0x270 [ 23.922710] ? task_work_cancel+0x210/0x210 [ 23.922716] ? _raw_spin_unlock+0x22/0x30 [ 23.922722] ? switch_task_namespaces+0x87/0xc0 [ 23.922729] do_exit+0x9bb/0x1ad0 [ 23.922736] ? binder_ioctl+0x481/0x1417 [ 23.922742] ? mm_update_next_owner+0x930/0x930 [ 23.922749] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.922758] ? avc_ss_reset+0x110/0x110 [ 23.922763] ? mutex_unlock+0xd/0x10 [ 23.922768] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.922786] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.922791] ? up_read+0x1a/0x40 [ 23.922797] ? rcu_note_context_switch+0x710/0x710 [ 23.922802] ? __fd_install+0x288/0x740 [ 23.922814] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.922819] ? do_vfs_ioctl+0x486/0x1520 [ 23.922824] ? _cond_resched+0x14/0x30 [ 23.922831] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.922838] ? selinux_capable+0x40/0x40 [ 23.922844] ? __alloc_fd+0x750/0x750 [ 23.922852] do_group_exit+0x149/0x400 [ 23.922859] ? SyS_exit+0x30/0x30 [ 23.922865] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.922872] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.922879] SyS_exit_group+0x1d/0x20 [ 23.922885] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.922889] RIP: 0033:0x4429f8 [ 23.922892] RSP: 002b:00007fff8079b738 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.922897] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.922900] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.922904] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.922907] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.922910] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.941885] Dumping ftrace buffer: [ 23.941888] (ftrace buffer empty) [ 23.941890] Kernel Offset: disabled [ 25.067450] Rebooting in 86400 seconds..