[....] Starting enhanced syslogd: rsyslogd[ 12.436050] audit: type=1400 audit(1515272003.056:5): avc: denied { syslog } for pid=3338 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: [ 17.167637] audit: type=1400 audit(1515272007.788:6): avc: denied { map } for pid=3477 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.200' (ECDSA) to the list of known hosts. executing program [ 23.406150] audit: type=1400 audit(1515272014.026:7): avc: denied { map } for pid=3491 comm="syzkaller572637" path="/root/syzkaller572637855" 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.410526] ================================================================== [ 23.410537] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.410540] Read of size 8 at addr ffff8801cb465370 by task syzkaller572637/3491 [ 23.410541] [ 23.410546] CPU: 1 PID: 3491 Comm: syzkaller572637 Not tainted 4.15.0-rc6+ #250 [ 23.410548] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.410550] Call Trace: [ 23.410557] dump_stack+0x194/0x257 [ 23.410562] ? arch_local_irq_restore+0x53/0x53 [ 23.410567] ? show_regs_print_info+0x18/0x18 [ 23.410571] ? print_irqtrace_events+0x270/0x270 [ 23.410575] ? __lock_acquire+0x664/0x3e00 [ 23.410579] ? __lock_acquire+0x3d4d/0x3e00 [ 23.410585] print_address_description+0x73/0x250 [ 23.410588] ? __lock_acquire+0x3d4d/0x3e00 [ 23.410592] kasan_report+0x25b/0x340 [ 23.410598] __asan_report_load8_noabort+0x14/0x20 [ 23.410601] __lock_acquire+0x3d4d/0x3e00 [ 23.410605] ? __lock_acquire+0x664/0x3e00 [ 23.410608] ? lock_downgrade+0x980/0x980 [ 23.410611] ? lock_downgrade+0x980/0x980 [ 23.410617] ? remove_wait_queue+0x81/0x350 [ 23.410623] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.410627] ? __lock_acquire+0x664/0x3e00 [ 23.410630] ? check_noncircular+0x20/0x20 [ 23.410638] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.410642] ? lock_acquire+0x1d5/0x580 [ 23.410645] ? lock_acquire+0x1d5/0x580 [ 23.410651] ? ep_free+0xf4/0x320 [ 23.410656] ? lock_release+0xa40/0xa40 [ 23.410661] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.410665] ? print_irqtrace_events+0x270/0x270 [ 23.410671] ? rcu_note_context_switch+0x710/0x710 [ 23.410675] ? __might_sleep+0x95/0x190 [ 23.410679] ? ep_free+0xf4/0x320 [ 23.410684] ? __mutex_lock+0x16f/0x1a80 [ 23.410687] ? ep_free+0xf4/0x320 [ 23.410691] ? print_irqtrace_events+0x270/0x270 [ 23.410694] ? ep_free+0xf4/0x320 [ 23.410699] lock_acquire+0x1d5/0x580 [ 23.410702] ? lock_acquire+0x1d5/0x580 [ 23.410706] ? remove_wait_queue+0x81/0x350 [ 23.410709] ? __lock_acquire+0x664/0x3e00 [ 23.410714] ? lock_release+0xa40/0xa40 [ 23.410719] ? lock_acquire+0x1d5/0x580 [ 23.410722] ? lock_acquire+0x1d5/0x580 [ 23.410726] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.410731] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.410735] ? remove_wait_queue+0x81/0x350 [ 23.410739] remove_wait_queue+0x81/0x350 [ 23.410743] ? add_wait_queue+0x290/0x290 [ 23.410747] ? rcutorture_record_progress+0x10/0x10 [ 23.410753] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.410758] ? __kernel_text_address+0xd/0x40 [ 23.410763] ? clear_tfile_check_list+0x370/0x370 [ 23.410768] ? check_noncircular+0x20/0x20 [ 23.410774] ? locks_remove_file+0x3fa/0x5a0 [ 23.410780] ep_free+0x13f/0x320 [ 23.410784] ? ep_remove+0x800/0x800 [ 23.410787] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.410792] ? ep_free+0x320/0x320 [ 23.410796] ep_eventpoll_release+0x44/0x60 [ 23.410801] __fput+0x327/0x7e0 [ 23.410806] ? fput+0x140/0x140 [ 23.410811] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.410816] ____fput+0x15/0x20 [ 23.410820] task_work_run+0x199/0x270 [ 23.410825] ? task_work_cancel+0x210/0x210 [ 23.410829] ? _raw_spin_unlock+0x22/0x30 [ 23.410832] ? switch_task_namespaces+0x87/0xc0 [ 23.410838] do_exit+0x9bb/0x1ad0 [ 23.410845] ? binder_ioctl+0x481/0x1417 [ 23.410849] ? mm_update_next_owner+0x930/0x930 [ 23.410853] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.410860] ? avc_ss_reset+0x110/0x110 [ 23.410863] ? mutex_unlock+0xd/0x10 [ 23.410867] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.410879] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.410881] ? up_read+0x1a/0x40 [ 23.410885] ? rcu_note_context_switch+0x710/0x710 [ 23.410889] ? __fd_install+0x288/0x740 [ 23.410894] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.410898] ? do_vfs_ioctl+0x486/0x1520 [ 23.410901] ? _cond_resched+0x14/0x30 [ 23.410905] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.410910] ? selinux_capable+0x40/0x40 [ 23.410914] ? __alloc_fd+0x750/0x750 [ 23.410919] do_group_exit+0x149/0x400 [ 23.410923] ? SyS_exit+0x30/0x30 [ 23.410927] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.410932] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.410937] SyS_exit_group+0x1d/0x20 [ 23.410941] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.410944] RIP: 0033:0x4429f8 [ 23.410946] RSP: 002b:00007fff82734ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.410950] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.410952] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.410955] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.410957] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.410958] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.410964] [ 23.410966] Allocated by task 3491: [ 23.410969] save_stack+0x43/0xd0 [ 23.410972] kasan_kmalloc+0xad/0xe0 [ 23.410975] kmem_cache_alloc_trace+0x136/0x750 [ 23.410978] binder_get_thread+0x1cf/0x870 [ 23.410980] binder_poll+0x8c/0x390 [ 23.410983] ep_item_poll.isra.10+0xec/0x320 [ 23.410986] ep_insert+0x6a3/0x1b10 [ 23.410989] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.410992] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.410993] [ 23.410994] Freed by task 3491: [ 23.410997] save_stack+0x43/0xd0 [ 23.411000] kasan_slab_free+0x71/0xc0 [ 23.411007] kfree+0xd6/0x260 [ 23.411010] binder_thread_dec_tmpref+0x27f/0x310 [ 23.411016] binder_thread_release+0x27d/0x540 [ 23.411019] binder_ioctl+0xc02/0x1417 [ 23.411022] do_vfs_ioctl+0x1b1/0x1520 [ 23.411024] SyS_ioctl+0x8f/0xc0 [ 23.411027] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.411028] [ 23.411031] The buggy address belongs to the object at ffff8801cb4652c0 [ 23.411031] which belongs to the cache kmalloc-512 of size 512 [ 23.411035] The buggy address is located 176 bytes inside of [ 23.411035] 512-byte region [ffff8801cb4652c0, ffff8801cb4654c0) [ 23.411037] The buggy address belongs to the page: [ 23.411041] page:ffffea00072d1940 count:1 mapcount:0 mapping:ffff8801cb465040 index:0x0 [ 23.411045] flags: 0x2fffc0000000100(slab) [ 23.411052] raw: 02fffc0000000100 ffff8801cb465040 0000000000000000 0000000100000006 [ 23.411056] raw: ffffea00073920e0 ffffea00072fcfe0 ffff8801dac00940 0000000000000000 [ 23.411058] page dumped because: kasan: bad access detected [ 23.411058] [ 23.411059] Memory state around the buggy address: [ 23.411062] ffff8801cb465200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.411065] ffff8801cb465280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.411068] >ffff8801cb465300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.411069] ^ [ 23.411072] ffff8801cb465380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.411074] ffff8801cb465400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.411075] ================================================================== [ 23.411076] Disabling lock debugging due to kernel taint [ 23.411078] Kernel panic - not syncing: panic_on_warn set ... [ 23.411078] [ 23.411082] CPU: 1 PID: 3491 Comm: syzkaller572637 Tainted: G B 4.15.0-rc6+ #250 [ 23.411084] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.411085] Call Trace: [ 23.411089] dump_stack+0x194/0x257 [ 23.411093] ? arch_local_irq_restore+0x53/0x53 [ 23.411097] ? kasan_end_report+0x32/0x50 [ 23.411100] ? lock_downgrade+0x980/0x980 [ 23.411105] ? vsnprintf+0x1ed/0x1900 [ 23.411109] ? __lock_acquire+0x3cb0/0x3e00 [ 23.411112] panic+0x1e4/0x41c [ 23.411116] ? refcount_error_report+0x214/0x214 [ 23.411120] ? add_taint+0x40/0x50 [ 23.411123] ? add_taint+0x1c/0x50 [ 23.411127] ? __lock_acquire+0x3d4d/0x3e00 [ 23.411131] kasan_end_report+0x50/0x50 [ 23.411134] kasan_report+0x144/0x340 [ 23.411139] __asan_report_load8_noabort+0x14/0x20 [ 23.411142] __lock_acquire+0x3d4d/0x3e00 [ 23.411145] ? __lock_acquire+0x664/0x3e00 [ 23.411149] ? lock_downgrade+0x980/0x980 [ 23.411152] ? lock_downgrade+0x980/0x980 [ 23.411156] ? remove_wait_queue+0x81/0x350 [ 23.411161] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.411165] ? __lock_acquire+0x664/0x3e00 [ 23.411168] ? check_noncircular+0x20/0x20 [ 23.411175] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.411179] ? lock_acquire+0x1d5/0x580 [ 23.411182] ? lock_acquire+0x1d5/0x580 [ 23.411185] ? ep_free+0xf4/0x320 [ 23.411190] ? lock_release+0xa40/0xa40 [ 23.411193] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.411197] ? print_irqtrace_events+0x270/0x270 [ 23.411201] ? rcu_note_context_switch+0x710/0x710 [ 23.411205] ? __might_sleep+0x95/0x190 [ 23.411208] ? ep_free+0xf4/0x320 [ 23.411212] ? __mutex_lock+0x16f/0x1a80 [ 23.411214] ? ep_free+0xf4/0x320 [ 23.411219] ? print_irqtrace_events+0x270/0x270 [ 23.411221] ? ep_free+0xf4/0x320 [ 23.411226] lock_acquire+0x1d5/0x580 [ 23.411229] ? lock_acquire+0x1d5/0x580 [ 23.411233] ? remove_wait_queue+0x81/0x350 [ 23.411236] ? __lock_acquire+0x664/0x3e00 [ 23.411240] ? lock_release+0xa40/0xa40 [ 23.411245] ? lock_acquire+0x1d5/0x580 [ 23.411248] ? lock_acquire+0x1d5/0x580 [ 23.411252] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.411256] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.411260] ? remove_wait_queue+0x81/0x350 [ 23.411264] remove_wait_queue+0x81/0x350 [ 23.411268] ? add_wait_queue+0x290/0x290 [ 23.411271] ? rcutorture_record_progress+0x10/0x10 [ 23.411277] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.411281] ? __kernel_text_address+0xd/0x40 [ 23.411286] ? clear_tfile_check_list+0x370/0x370 [ 23.411290] ? check_noncircular+0x20/0x20 [ 23.411295] ? locks_remove_file+0x3fa/0x5a0 [ 23.411300] ep_free+0x13f/0x320 [ 23.411304] ? ep_remove+0x800/0x800 [ 23.411307] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.411311] ? ep_free+0x320/0x320 [ 23.411315] ep_eventpoll_release+0x44/0x60 [ 23.411318] __fput+0x327/0x7e0 [ 23.411323] ? fput+0x140/0x140 [ 23.411327] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.411332] ____fput+0x15/0x20 [ 23.411336] task_work_run+0x199/0x270 [ 23.411340] ? task_work_cancel+0x210/0x210 [ 23.411344] ? _raw_spin_unlock+0x22/0x30 [ 23.411347] ? switch_task_namespaces+0x87/0xc0 [ 23.411352] do_exit+0x9bb/0x1ad0 [ 23.411359] ? binder_ioctl+0x481/0x1417 [ 23.411364] ? mm_update_next_owner+0x930/0x930 [ 23.411369] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.411374] ? avc_ss_reset+0x110/0x110 [ 23.411377] ? mutex_unlock+0xd/0x10 [ 23.411380] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.411390] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.411393] ? up_read+0x1a/0x40 [ 23.411397] ? rcu_note_context_switch+0x710/0x710 [ 23.411400] ? __fd_install+0x288/0x740 [ 23.411405] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.411408] ? do_vfs_ioctl+0x486/0x1520 [ 23.411411] ? _cond_resched+0x14/0x30 [ 23.411415] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.411419] ? selinux_capable+0x40/0x40 [ 23.411423] ? __alloc_fd+0x750/0x750 [ 23.411428] do_group_exit+0x149/0x400 [ 23.411432] ? SyS_exit+0x30/0x30 [ 23.411436] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.411439] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.411444] SyS_exit_group+0x1d/0x20 [ 23.411448] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.411450] RIP: 0033:0x4429f8 [ 23.411452] RSP: 002b:00007fff82734ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.411455] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.411457] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.411459] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.411461] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.411463] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.432031] Dumping ftrace buffer: [ 23.432034] (ftrace buffer empty) [ 23.432038] Kernel Offset: disabled [ 24.555750] Rebooting in 86400 seconds..