[....] Starting enhanced syslogd: rsyslogd[ 12.294677] audit: type=1400 audit(1515556503.050:5): avc: denied { syslog } for pid=3341 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.806617] audit: type=1400 audit(1515556506.562:6): avc: denied { map } for pid=3481 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.42' (ECDSA) to the list of known hosts. executing program [ 22.041390] audit: type=1400 audit(1515556512.797:7): avc: denied { map } for pid=3495 comm="syzkaller438632" path="/root/syzkaller438632273" 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 [ 22.047898] ================================================================== [ 22.047917] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.047922] Read of size 8 at addr ffff8801c843f870 by task syzkaller438632/3495 [ 22.047924] [ 22.047932] CPU: 1 PID: 3495 Comm: syzkaller438632 Not tainted 4.15.0-rc7+ #165 [ 22.047935] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.047938] Call Trace: [ 22.047948] dump_stack+0x194/0x257 [ 22.047956] ? arch_local_irq_restore+0x53/0x53 [ 22.047965] ? show_regs_print_info+0x18/0x18 [ 22.047971] ? print_irqtrace_events+0x270/0x270 [ 22.047977] ? __lock_acquire+0x664/0x3e00 [ 22.047984] ? __lock_acquire+0x3d4d/0x3e00 [ 22.047994] print_address_description+0x73/0x250 [ 22.048000] ? __lock_acquire+0x3d4d/0x3e00 [ 22.048010] kasan_report+0x25b/0x340 [ 22.048018] __asan_report_load8_noabort+0x14/0x20 [ 22.048024] __lock_acquire+0x3d4d/0x3e00 [ 22.048029] ? __lock_acquire+0x664/0x3e00 [ 22.048035] ? lock_downgrade+0x980/0x980 [ 22.048041] ? lock_downgrade+0x980/0x980 [ 22.048047] ? print_irqtrace_events+0x270/0x270 [ 22.048054] ? remove_wait_queue+0x81/0x350 [ 22.048063] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.048069] ? __lock_acquire+0x664/0x3e00 [ 22.048075] ? check_noncircular+0x20/0x20 [ 22.048087] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.048094] ? lock_acquire+0x1d5/0x580 [ 22.048099] ? lock_acquire+0x1d5/0x580 [ 22.048106] ? ep_free+0xf4/0x320 [ 22.048114] ? lock_release+0xa40/0xa40 [ 22.048121] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.048127] ? print_irqtrace_events+0x270/0x270 [ 22.048133] ? print_irqtrace_events+0x270/0x270 [ 22.048140] ? rcu_note_context_switch+0x710/0x710 [ 22.048148] ? __might_sleep+0x95/0x190 [ 22.048154] ? ep_free+0xf4/0x320 [ 22.048160] ? __mutex_lock+0x16f/0x1a80 [ 22.048165] ? ep_free+0xf4/0x320 [ 22.048172] ? print_irqtrace_events+0x270/0x270 [ 22.048177] ? ep_free+0xf4/0x320 [ 22.048185] lock_acquire+0x1d5/0x580 [ 22.048191] ? lock_acquire+0x1d5/0x580 [ 22.048196] ? remove_wait_queue+0x81/0x350 [ 22.048205] ? lock_release+0xa40/0xa40 [ 22.048214] ? lock_acquire+0x1d5/0x580 [ 22.048220] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.048225] ? lock_acquire+0x1d5/0x580 [ 22.048231] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.048238] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.048244] ? remove_wait_queue+0x81/0x350 [ 22.048250] remove_wait_queue+0x81/0x350 [ 22.048258] ? depot_save_stack+0x3b5/0x490 [ 22.048265] ? add_wait_queue+0x290/0x290 [ 22.048271] ? rcutorture_record_progress+0x10/0x10 [ 22.048276] ? lock_release+0xa40/0xa40 [ 22.048285] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.048293] ? __kernel_text_address+0xd/0x40 [ 22.048301] ? clear_tfile_check_list+0x370/0x370 [ 22.048308] ? check_noncircular+0x20/0x20 [ 22.048316] ? locks_remove_file+0x3fa/0x5a0 [ 22.048326] ep_free+0x13f/0x320 [ 22.048332] ? ep_remove+0x800/0x800 [ 22.048338] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.048345] ? ep_free+0x320/0x320 [ 22.048351] ep_eventpoll_release+0x44/0x60 [ 22.048358] __fput+0x327/0x7e0 [ 22.048367] ? fput+0x140/0x140 [ 22.048373] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.048382] ____fput+0x15/0x20 [ 22.048388] task_work_run+0x199/0x270 [ 22.048399] ? task_work_cancel+0x210/0x210 [ 22.048406] ? _raw_spin_unlock+0x22/0x30 [ 22.048412] ? switch_task_namespaces+0x87/0xc0 [ 22.048421] do_exit+0x9bb/0x1ad0 [ 22.048428] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.048436] ? mm_update_next_owner+0x930/0x930 [ 22.048446] ? do_raw_spin_trylock+0x190/0x190 [ 22.048453] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.048459] ? check_noncircular+0x20/0x20 [ 22.048466] ? _raw_spin_unlock+0x22/0x30 [ 22.048472] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.048480] ? check_noncircular+0x20/0x20 [ 22.048484] ? __pmd_alloc+0x4e0/0x4e0 [ 22.048490] ? lock_downgrade+0x980/0x980 [ 22.048498] ? find_held_lock+0x35/0x1d0 [ 22.048506] ? handle_mm_fault+0x248/0x8d0 [ 22.048513] ? find_held_lock+0x35/0x1d0 [ 22.048524] ? __do_page_fault+0x5f7/0xc90 [ 22.048530] ? lock_downgrade+0x980/0x980 [ 22.048539] ? handle_mm_fault+0x410/0x8d0 [ 22.048544] ? down_read_trylock+0xdb/0x170 [ 22.048549] ? __do_page_fault+0x32d/0xc90 [ 22.048556] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.048562] ? vmacache_find+0x5f/0x280 [ 22.048571] do_group_exit+0x149/0x400 [ 22.048577] ? __do_page_fault+0x3d6/0xc90 [ 22.048582] ? SyS_exit+0x30/0x30 [ 22.048592] ? do_fast_syscall_32+0x156/0xf9d [ 22.048598] ? do_group_exit+0x400/0x400 [ 22.048604] SyS_exit_group+0x1d/0x20 [ 22.048610] do_fast_syscall_32+0x3ee/0xf9d [ 22.048619] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.048625] ? kasan_check_read+0x11/0x20 [ 22.048632] ? syscall_return_slowpath+0x550/0x550 [ 22.048640] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.048647] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.048653] ? SyS_read+0x184/0x220 [ 22.048659] ? retint_user+0x18/0x18 [ 22.048667] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.048675] entry_SYSENTER_compat+0x54/0x63 [ 22.048680] RIP: 0023:0xf7f77c79 [ 22.048684] RSP: 002b:00000000ffe39bdc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 22.048690] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.048693] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.048697] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.048700] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.048703] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.048711] [ 22.048714] Allocated by task 3495: [ 22.048720] save_stack+0x43/0xd0 [ 22.048724] kasan_kmalloc+0xad/0xe0 [ 22.048729] kmem_cache_alloc_trace+0x136/0x750 [ 22.048735] binder_get_thread+0x1cf/0x870 [ 22.048739] binder_poll+0x8c/0x390 [ 22.048745] ep_item_poll.isra.10+0xec/0x320 [ 22.048749] ep_insert+0x6a3/0x1b10 [ 22.048754] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.048759] do_fast_syscall_32+0x3ee/0xf9d [ 22.048763] entry_SYSENTER_compat+0x54/0x63 [ 22.048765] [ 22.048767] Freed by task 3495: [ 22.048771] save_stack+0x43/0xd0 [ 22.048776] kasan_slab_free+0x71/0xc0 [ 22.048780] kfree+0xd6/0x260 [ 22.048784] binder_thread_dec_tmpref+0x27f/0x310 [ 22.048789] binder_thread_release+0x27d/0x540 [ 22.048793] binder_ioctl+0xc02/0x1417 [ 22.048799] compat_SyS_ioctl+0x151/0x2a30 [ 22.048803] do_fast_syscall_32+0x3ee/0xf9d [ 22.048808] entry_SYSENTER_compat+0x54/0x63 [ 22.048809] [ 22.048813] The buggy address belongs to the object at ffff8801c843f7c0 [ 22.048813] which belongs to the cache kmalloc-512 of size 512 [ 22.048818] The buggy address is located 176 bytes inside of [ 22.048818] 512-byte region [ffff8801c843f7c0, ffff8801c843f9c0) [ 22.048820] The buggy address belongs to the page: [ 22.048825] page:ffffea0007210fc0 count:1 mapcount:0 mapping:ffff8801c843f040 index:0x0 [ 22.048830] flags: 0x2fffc0000000100(slab) [ 22.048839] raw: 02fffc0000000100 ffff8801c843f040 0000000000000000 0000000100000006 [ 22.048845] raw: ffffea000739b460 ffffea0007262160 ffff8801dac00940 0000000000000000 [ 22.048848] page dumped because: kasan: bad access detected [ 22.048849] [ 22.048851] Memory state around the buggy address: [ 22.048864] ffff8801c843f700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 22.048868] ffff8801c843f780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.048873] >ffff8801c843f800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.048875] ^ [ 22.048879] ffff8801c843f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.048883] ffff8801c843f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.048885] ================================================================== [ 22.048887] Disabling lock debugging due to kernel taint [ 22.048890] Kernel panic - not syncing: panic_on_warn set ... [ 22.048890] [ 22.048897] CPU: 1 PID: 3495 Comm: syzkaller438632 Tainted: G B 4.15.0-rc7+ #165 [ 22.048899] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.048901] Call Trace: [ 22.048907] dump_stack+0x194/0x257 [ 22.048914] ? arch_local_irq_restore+0x53/0x53 [ 22.048920] ? kasan_end_report+0x32/0x50 [ 22.048926] ? lock_downgrade+0x980/0x980 [ 22.048933] ? vsnprintf+0x1ed/0x1900 [ 22.048939] ? __lock_acquire+0x3cb0/0x3e00 [ 22.048945] panic+0x1e4/0x41c [ 22.048950] ? refcount_error_report+0x214/0x214 [ 22.048957] ? add_taint+0x40/0x50 [ 22.048963] ? add_taint+0x1c/0x50 [ 22.048969] ? __lock_acquire+0x3d4d/0x3e00 [ 22.048975] kasan_end_report+0x50/0x50 [ 22.048981] kasan_report+0x144/0x340 [ 22.048988] __asan_report_load8_noabort+0x14/0x20 [ 22.048994] __lock_acquire+0x3d4d/0x3e00 [ 22.049000] ? __lock_acquire+0x664/0x3e00 [ 22.049006] ? lock_downgrade+0x980/0x980 [ 22.049011] ? lock_downgrade+0x980/0x980 [ 22.049017] ? print_irqtrace_events+0x270/0x270 [ 22.049023] ? remove_wait_queue+0x81/0x350 [ 22.049031] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.049038] ? __lock_acquire+0x664/0x3e00 [ 22.049043] ? check_noncircular+0x20/0x20 [ 22.049055] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.049061] ? lock_acquire+0x1d5/0x580 [ 22.049067] ? lock_acquire+0x1d5/0x580 [ 22.049072] ? ep_free+0xf4/0x320 [ 22.049080] ? lock_release+0xa40/0xa40 [ 22.049086] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.049091] ? print_irqtrace_events+0x270/0x270 [ 22.049097] ? print_irqtrace_events+0x270/0x270 [ 22.049104] ? rcu_note_context_switch+0x710/0x710 [ 22.049111] ? __might_sleep+0x95/0x190 [ 22.049116] ? ep_free+0xf4/0x320 [ 22.049122] ? __mutex_lock+0x16f/0x1a80 [ 22.049127] ? ep_free+0xf4/0x320 [ 22.049134] ? print_irqtrace_events+0x270/0x270 [ 22.049139] ? ep_free+0xf4/0x320 [ 22.049146] lock_acquire+0x1d5/0x580 [ 22.049152] ? lock_acquire+0x1d5/0x580 [ 22.049158] ? remove_wait_queue+0x81/0x350 [ 22.049166] ? lock_release+0xa40/0xa40 [ 22.049175] ? lock_acquire+0x1d5/0x580 [ 22.049180] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.049185] ? lock_acquire+0x1d5/0x580 [ 22.049191] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.049199] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.049204] ? remove_wait_queue+0x81/0x350 [ 22.049211] remove_wait_queue+0x81/0x350 [ 22.049216] ? depot_save_stack+0x3b5/0x490 [ 22.049223] ? add_wait_queue+0x290/0x290 [ 22.049229] ? rcutorture_record_progress+0x10/0x10 [ 22.049235] ? lock_release+0xa40/0xa40 [ 22.049244] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.049250] ? __kernel_text_address+0xd/0x40 [ 22.049258] ? clear_tfile_check_list+0x370/0x370 [ 22.049265] ? check_noncircular+0x20/0x20 [ 22.049273] ? locks_remove_file+0x3fa/0x5a0 [ 22.049282] ep_free+0x13f/0x320 [ 22.049288] ? ep_remove+0x800/0x800 [ 22.049293] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.049300] ? ep_free+0x320/0x320 [ 22.049307] ep_eventpoll_release+0x44/0x60 [ 22.049313] __fput+0x327/0x7e0 [ 22.049320] ? fput+0x140/0x140 [ 22.049327] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.049335] ____fput+0x15/0x20 [ 22.049342] task_work_run+0x199/0x270 [ 22.049349] ? task_work_cancel+0x210/0x210 [ 22.049355] ? _raw_spin_unlock+0x22/0x30 [ 22.049361] ? switch_task_namespaces+0x87/0xc0 [ 22.049369] do_exit+0x9bb/0x1ad0 [ 22.049374] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.049382] ? mm_update_next_owner+0x930/0x930 [ 22.049394] ? do_raw_spin_trylock+0x190/0x190 [ 22.049401] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.049407] ? check_noncircular+0x20/0x20 [ 22.049414] ? _raw_spin_unlock+0x22/0x30 [ 22.049419] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.049427] ? check_noncircular+0x20/0x20 [ 22.049431] ? __pmd_alloc+0x4e0/0x4e0 [ 22.049437] ? lock_downgrade+0x980/0x980 [ 22.049445] ? find_held_lock+0x35/0x1d0 [ 22.049453] ? handle_mm_fault+0x248/0x8d0 [ 22.049459] ? find_held_lock+0x35/0x1d0 [ 22.049468] ? __do_page_fault+0x5f7/0xc90 [ 22.049474] ? lock_downgrade+0x980/0x980 [ 22.049483] ? handle_mm_fault+0x410/0x8d0 [ 22.049488] ? down_read_trylock+0xdb/0x170 [ 22.049493] ? __do_page_fault+0x32d/0xc90 [ 22.049500] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.049505] ? vmacache_find+0x5f/0x280 [ 22.049513] do_group_exit+0x149/0x400 [ 22.049520] ? __do_page_fault+0x3d6/0xc90 [ 22.049525] ? SyS_exit+0x30/0x30 [ 22.049532] ? do_fast_syscall_32+0x156/0xf9d [ 22.049538] ? do_group_exit+0x400/0x400 [ 22.049545] SyS_exit_group+0x1d/0x20 [ 22.049551] do_fast_syscall_32+0x3ee/0xf9d [ 22.049559] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.049565] ? kasan_check_read+0x11/0x20 [ 22.049572] ? syscall_return_slowpath+0x550/0x550 [ 22.049578] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.049585] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.049590] ? SyS_read+0x184/0x220 [ 22.049596] ? retint_user+0x18/0x18 [ 22.049604] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.049611] entry_SYSENTER_compat+0x54/0x63 [ 22.049615] RIP: 0023:0xf7f77c79 [ 22.049618] RSP: 002b:00000000ffe39bdc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 22.049623] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.049627] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.049629] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.049633] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.049635] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.067743] Dumping ftrace buffer: [ 22.067747] (ftrace buffer empty) [ 22.067750] Kernel Offset: disabled [ 23.350734] Rebooting in 86400 seconds..