[....] Starting enhanced syslogd: rsyslogd[ 12.449971] audit: type=1400 audit(1515008658.116:5): avc: denied { syslog } for pid=3347 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: [ 19.292428] audit: type=1400 audit(1515008664.959:6): avc: denied { map } for pid=3487 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.39' (ECDSA) to the list of known hosts. executing program [ 25.472277] audit: type=1400 audit(1515008671.138:7): avc: denied { map } for pid=3501 comm="syzkaller795585" path="/root/syzkaller795585334" 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.476544] ================================================================== [ 25.476554] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.476558] Read of size 8 at addr ffff8801c6cb1d30 by task syzkaller795585/3501 [ 25.476559] [ 25.476564] CPU: 1 PID: 3501 Comm: syzkaller795585 Not tainted 4.15.0-rc6+ #156 [ 25.476566] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.476568] Call Trace: [ 25.476576] dump_stack+0x194/0x257 [ 25.476581] ? arch_local_irq_restore+0x53/0x53 [ 25.476586] ? show_regs_print_info+0x18/0x18 [ 25.476590] ? print_irqtrace_events+0x270/0x270 [ 25.476593] ? __lock_acquire+0x664/0x3e00 [ 25.476597] ? __lock_acquire+0x3d4d/0x3e00 [ 25.476604] print_address_description+0x73/0x250 [ 25.476607] ? __lock_acquire+0x3d4d/0x3e00 [ 25.476611] kasan_report+0x25b/0x340 [ 25.476616] __asan_report_load8_noabort+0x14/0x20 [ 25.476620] __lock_acquire+0x3d4d/0x3e00 [ 25.476623] ? __lock_acquire+0x664/0x3e00 [ 25.476627] ? lock_downgrade+0x980/0x980 [ 25.476630] ? lock_downgrade+0x980/0x980 [ 25.476634] ? print_irqtrace_events+0x270/0x270 [ 25.476639] ? remove_wait_queue+0x81/0x350 [ 25.476644] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.476648] ? __lock_acquire+0x664/0x3e00 [ 25.476651] ? check_noncircular+0x20/0x20 [ 25.476658] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.476662] ? lock_acquire+0x1d5/0x580 [ 25.476665] ? lock_acquire+0x1d5/0x580 [ 25.476671] ? ep_free+0xf4/0x320 [ 25.476676] ? lock_release+0xa40/0xa40 [ 25.476681] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.476684] ? print_irqtrace_events+0x270/0x270 [ 25.476687] ? print_irqtrace_events+0x270/0x270 [ 25.476693] ? rcu_note_context_switch+0x710/0x710 [ 25.476698] ? __might_sleep+0x95/0x190 [ 25.476701] ? ep_free+0xf4/0x320 [ 25.476706] ? __mutex_lock+0x16f/0x1a80 [ 25.476709] ? ep_free+0xf4/0x320 [ 25.476713] ? print_irqtrace_events+0x270/0x270 [ 25.476716] ? ep_free+0xf4/0x320 [ 25.476721] lock_acquire+0x1d5/0x580 [ 25.476724] ? lock_acquire+0x1d5/0x580 [ 25.476728] ? remove_wait_queue+0x81/0x350 [ 25.476732] ? lock_release+0xa40/0xa40 [ 25.476737] ? lock_acquire+0x1d5/0x580 [ 25.476741] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.476744] ? lock_acquire+0x1d5/0x580 [ 25.476748] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.476753] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.476756] ? remove_wait_queue+0x81/0x350 [ 25.476760] remove_wait_queue+0x81/0x350 [ 25.476765] ? depot_save_stack+0x3b5/0x490 [ 25.476770] ? add_wait_queue+0x290/0x290 [ 25.476773] ? rcutorture_record_progress+0x10/0x10 [ 25.476777] ? lock_release+0xa40/0xa40 [ 25.476782] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.476787] ? __kernel_text_address+0xd/0x40 [ 25.476792] ? clear_tfile_check_list+0x370/0x370 [ 25.476796] ? check_noncircular+0x20/0x20 [ 25.476802] ? locks_remove_file+0x3fa/0x5a0 [ 25.476807] ep_free+0x13f/0x320 [ 25.476811] ? ep_remove+0x800/0x800 [ 25.476814] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.476819] ? ep_free+0x320/0x320 [ 25.476823] ep_eventpoll_release+0x44/0x60 [ 25.476827] __fput+0x327/0x7e0 [ 25.476832] ? fput+0x140/0x140 [ 25.476836] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.476841] ____fput+0x15/0x20 [ 25.476845] task_work_run+0x199/0x270 [ 25.476849] ? task_work_cancel+0x210/0x210 [ 25.476853] ? _raw_spin_unlock+0x22/0x30 [ 25.476857] ? switch_task_namespaces+0x87/0xc0 [ 25.476862] do_exit+0x9bb/0x1ad0 [ 25.476867] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.476871] ? mm_update_next_owner+0x930/0x930 [ 25.476877] ? do_raw_spin_trylock+0x190/0x190 [ 25.476881] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.476885] ? check_noncircular+0x20/0x20 [ 25.476889] ? _raw_spin_unlock+0x22/0x30 [ 25.476892] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.476897] ? check_noncircular+0x20/0x20 [ 25.476900] ? __pmd_alloc+0x4e0/0x4e0 [ 25.476903] ? lock_downgrade+0x980/0x980 [ 25.476908] ? find_held_lock+0x35/0x1d0 [ 25.476913] ? handle_mm_fault+0x248/0x8d0 [ 25.476917] ? find_held_lock+0x35/0x1d0 [ 25.476923] ? __do_page_fault+0x5f7/0xc90 [ 25.476927] ? lock_downgrade+0x980/0x980 [ 25.476932] ? handle_mm_fault+0x410/0x8d0 [ 25.476935] ? down_read_trylock+0xdb/0x170 [ 25.476938] ? __do_page_fault+0x32d/0xc90 [ 25.476942] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.476946] ? vmacache_find+0x5f/0x280 [ 25.476951] do_group_exit+0x149/0x400 [ 25.476955] ? __do_page_fault+0x3d6/0xc90 [ 25.476958] ? SyS_exit+0x30/0x30 [ 25.476964] ? do_fast_syscall_32+0x156/0xf9d [ 25.476968] ? do_group_exit+0x400/0x400 [ 25.476971] SyS_exit_group+0x1d/0x20 [ 25.476975] do_fast_syscall_32+0x3ee/0xf9d [ 25.476980] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.476983] ? kasan_check_read+0x11/0x20 [ 25.476988] ? syscall_return_slowpath+0x550/0x550 [ 25.476992] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.476996] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.476999] ? SyS_read+0x184/0x220 [ 25.477007] ? retint_user+0x18/0x18 [ 25.477012] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.477017] entry_SYSENTER_compat+0x54/0x63 [ 25.477020] RIP: 0023:0xf7fccc79 [ 25.477023] RSP: 002b:00000000ff9c11fc EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 25.477027] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.477029] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.477031] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.477033] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.477035] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.477039] [ 25.477041] Allocated by task 3501: [ 25.477044] save_stack+0x43/0xd0 [ 25.477047] kasan_kmalloc+0xad/0xe0 [ 25.477050] kmem_cache_alloc_trace+0x136/0x750 [ 25.477055] binder_get_thread+0x1cf/0x870 [ 25.477057] binder_poll+0x8c/0x390 [ 25.477060] ep_item_poll.isra.10+0xec/0x320 [ 25.477063] ep_insert+0x6a3/0x1b10 [ 25.477066] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.477069] do_fast_syscall_32+0x3ee/0xf9d [ 25.477072] entry_SYSENTER_compat+0x54/0x63 [ 25.477073] [ 25.477074] Freed by task 3501: [ 25.477077] save_stack+0x43/0xd0 [ 25.477080] kasan_slab_free+0x71/0xc0 [ 25.477082] kfree+0xd6/0x260 [ 25.477085] binder_thread_dec_tmpref+0x27f/0x310 [ 25.477088] binder_thread_release+0x27d/0x540 [ 25.477091] binder_ioctl+0xc02/0x1417 [ 25.477094] compat_SyS_ioctl+0x151/0x2a30 [ 25.477097] do_fast_syscall_32+0x3ee/0xf9d [ 25.477100] entry_SYSENTER_compat+0x54/0x63 [ 25.477101] [ 25.477103] The buggy address belongs to the object at ffff8801c6cb1c80 [ 25.477103] which belongs to the cache kmalloc-512 of size 512 [ 25.477106] The buggy address is located 176 bytes inside of [ 25.477106] 512-byte region [ffff8801c6cb1c80, ffff8801c6cb1e80) [ 25.477107] The buggy address belongs to the page: [ 25.477111] page:00000000c7183544 count:1 mapcount:0 mapping:00000000bd81ca30 index:0x0 [ 25.477114] flags: 0x2fffc0000000100(slab) [ 25.477120] raw: 02fffc0000000100 ffff8801c6cb1000 0000000000000000 0000000100000006 [ 25.477124] raw: ffffea00071c5be0 ffffea00071b8320 ffff8801dac00940 0000000000000000 [ 25.477126] page dumped because: kasan: bad access detected [ 25.477126] [ 25.477127] Memory state around the buggy address: [ 25.477130] ffff8801c6cb1c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.477133] ffff8801c6cb1c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.477135] >ffff8801c6cb1d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.477137] ^ [ 25.477139] ffff8801c6cb1d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.477142] ffff8801c6cb1e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.477143] ================================================================== [ 25.477144] Disabling lock debugging due to kernel taint [ 25.477146] Kernel panic - not syncing: panic_on_warn set ... [ 25.477146] [ 25.477150] CPU: 1 PID: 3501 Comm: syzkaller795585 Tainted: G B 4.15.0-rc6+ #156 [ 25.477152] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.477153] Call Trace: [ 25.477157] dump_stack+0x194/0x257 [ 25.477161] ? arch_local_irq_restore+0x53/0x53 [ 25.477164] ? kasan_end_report+0x32/0x50 [ 25.477168] ? lock_downgrade+0x980/0x980 [ 25.477172] ? vsnprintf+0x1ed/0x1900 [ 25.477176] ? __lock_acquire+0x3cb0/0x3e00 [ 25.477179] panic+0x1e4/0x41c [ 25.477182] ? refcount_error_report+0x214/0x214 [ 25.477186] ? add_taint+0x40/0x50 [ 25.477189] ? add_taint+0x1c/0x50 [ 25.477193] ? __lock_acquire+0x3d4d/0x3e00 [ 25.477197] kasan_end_report+0x50/0x50 [ 25.477200] kasan_report+0x144/0x340 [ 25.477205] __asan_report_load8_noabort+0x14/0x20 [ 25.477208] __lock_acquire+0x3d4d/0x3e00 [ 25.477212] ? __lock_acquire+0x664/0x3e00 [ 25.477215] ? lock_downgrade+0x980/0x980 [ 25.477218] ? lock_downgrade+0x980/0x980 [ 25.477222] ? print_irqtrace_events+0x270/0x270 [ 25.477225] ? remove_wait_queue+0x81/0x350 [ 25.477230] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.477234] ? __lock_acquire+0x664/0x3e00 [ 25.477238] ? check_noncircular+0x20/0x20 [ 25.477244] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.477248] ? lock_acquire+0x1d5/0x580 [ 25.477251] ? lock_acquire+0x1d5/0x580 [ 25.477254] ? ep_free+0xf4/0x320 [ 25.477259] ? lock_release+0xa40/0xa40 [ 25.477263] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.477266] ? print_irqtrace_events+0x270/0x270 [ 25.477269] ? print_irqtrace_events+0x270/0x270 [ 25.477273] ? rcu_note_context_switch+0x710/0x710 [ 25.477277] ? __might_sleep+0x95/0x190 [ 25.477281] ? ep_free+0xf4/0x320 [ 25.477284] ? __mutex_lock+0x16f/0x1a80 [ 25.477287] ? ep_free+0xf4/0x320 [ 25.477291] ? print_irqtrace_events+0x270/0x270 [ 25.477293] ? ep_free+0xf4/0x320 [ 25.477298] lock_acquire+0x1d5/0x580 [ 25.477301] ? lock_acquire+0x1d5/0x580 [ 25.477305] ? remove_wait_queue+0x81/0x350 [ 25.477310] ? lock_release+0xa40/0xa40 [ 25.477314] ? lock_acquire+0x1d5/0x580 [ 25.477318] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.477321] ? lock_acquire+0x1d5/0x580 [ 25.477324] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.477329] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.477332] ? remove_wait_queue+0x81/0x350 [ 25.477336] remove_wait_queue+0x81/0x350 [ 25.477339] ? depot_save_stack+0x3b5/0x490 [ 25.477343] ? add_wait_queue+0x290/0x290 [ 25.477347] ? rcutorture_record_progress+0x10/0x10 [ 25.477350] ? lock_release+0xa40/0xa40 [ 25.477355] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.477359] ? __kernel_text_address+0xd/0x40 [ 25.477364] ? clear_tfile_check_list+0x370/0x370 [ 25.477368] ? check_noncircular+0x20/0x20 [ 25.477372] ? locks_remove_file+0x3fa/0x5a0 [ 25.477378] ep_free+0x13f/0x320 [ 25.477381] ? ep_remove+0x800/0x800 [ 25.477384] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.477389] ? ep_free+0x320/0x320 [ 25.477396] ep_eventpoll_release+0x44/0x60 [ 25.477400] __fput+0x327/0x7e0 [ 25.477405] ? fput+0x140/0x140 [ 25.477409] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.477413] ____fput+0x15/0x20 [ 25.477417] task_work_run+0x199/0x270 [ 25.477422] ? task_work_cancel+0x210/0x210 [ 25.477425] ? _raw_spin_unlock+0x22/0x30 [ 25.477429] ? switch_task_namespaces+0x87/0xc0 [ 25.477433] do_exit+0x9bb/0x1ad0 [ 25.477437] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.477441] ? mm_update_next_owner+0x930/0x930 [ 25.477447] ? do_raw_spin_trylock+0x190/0x190 [ 25.477451] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.477454] ? check_noncircular+0x20/0x20 [ 25.477458] ? _raw_spin_unlock+0x22/0x30 [ 25.477462] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.477466] ? check_noncircular+0x20/0x20 [ 25.477469] ? __pmd_alloc+0x4e0/0x4e0 [ 25.477472] ? lock_downgrade+0x980/0x980 [ 25.477477] ? find_held_lock+0x35/0x1d0 [ 25.477481] ? handle_mm_fault+0x248/0x8d0 [ 25.477485] ? find_held_lock+0x35/0x1d0 [ 25.477490] ? __do_page_fault+0x5f7/0xc90 [ 25.477494] ? lock_downgrade+0x980/0x980 [ 25.477499] ? handle_mm_fault+0x410/0x8d0 [ 25.477502] ? down_read_trylock+0xdb/0x170 [ 25.477505] ? __do_page_fault+0x32d/0xc90 [ 25.477509] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.477512] ? vmacache_find+0x5f/0x280 [ 25.477517] do_group_exit+0x149/0x400 [ 25.477521] ? __do_page_fault+0x3d6/0xc90 [ 25.477524] ? SyS_exit+0x30/0x30 [ 25.477528] ? do_fast_syscall_32+0x156/0xf9d [ 25.477532] ? do_group_exit+0x400/0x400 [ 25.477535] SyS_exit_group+0x1d/0x20 [ 25.477539] do_fast_syscall_32+0x3ee/0xf9d [ 25.477544] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.477547] ? kasan_check_read+0x11/0x20 [ 25.477551] ? syscall_return_slowpath+0x550/0x550 [ 25.477555] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.477559] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.477562] ? SyS_read+0x184/0x220 [ 25.477566] ? retint_user+0x18/0x18 [ 25.477570] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.477576] entry_SYSENTER_compat+0x54/0x63 [ 25.477578] RIP: 0023:0xf7fccc79 [ 25.477580] RSP: 002b:00000000ff9c11fc EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 25.477583] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.477585] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.477587] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.477589] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.477591] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.498166] Dumping ftrace buffer: [ 25.498169] (ftrace buffer empty) [ 25.498171] Kernel Offset: disabled [ 26.776937] Rebooting in 86400 seconds..