[....] Starting enhanced syslogd: rsyslogd[ 12.510722] audit: type=1400 audit(1515671251.914: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: [ 20.606280] audit: type=1400 audit(1515671260.009:6): avc: denied { map } for pid=3483 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.18' (ECDSA) to the list of known hosts. executing program [ 28.054704] audit: type=1400 audit(1515671267.458:7): avc: denied { map } for pid=3498 comm="syzkaller243091" path="/root/syzkaller243091217" 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 [ 28.059652] ================================================================== [ 28.059664] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 28.059667] Read of size 8 at addr ffff8801c7abfb30 by task syzkaller243091/3498 [ 28.059668] [ 28.059673] CPU: 0 PID: 3498 Comm: syzkaller243091 Not tainted 4.15.0-rc7+ #167 [ 28.059676] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.059677] Call Trace: [ 28.059685] dump_stack+0x194/0x257 [ 28.059689] ? arch_local_irq_restore+0x53/0x53 [ 28.059694] ? show_regs_print_info+0x18/0x18 [ 28.059698] ? print_irqtrace_events+0x270/0x270 [ 28.059702] ? __lock_acquire+0x664/0x3e00 [ 28.059706] ? __lock_acquire+0x3d4d/0x3e00 [ 28.059712] print_address_description+0x73/0x250 [ 28.059716] ? __lock_acquire+0x3d4d/0x3e00 [ 28.059720] kasan_report+0x25b/0x340 [ 28.059725] __asan_report_load8_noabort+0x14/0x20 [ 28.059729] __lock_acquire+0x3d4d/0x3e00 [ 28.059732] ? __lock_acquire+0x664/0x3e00 [ 28.059736] ? lock_downgrade+0x980/0x980 [ 28.059739] ? lock_downgrade+0x980/0x980 [ 28.059743] ? print_irqtrace_events+0x270/0x270 [ 28.059754] ? remove_wait_queue+0x81/0x350 [ 28.059759] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.059763] ? __lock_acquire+0x664/0x3e00 [ 28.059767] ? check_noncircular+0x20/0x20 [ 28.059773] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.059778] ? lock_acquire+0x1d5/0x580 [ 28.059781] ? lock_acquire+0x1d5/0x580 [ 28.059786] ? ep_free+0xf4/0x320 [ 28.059791] ? lock_release+0xa40/0xa40 [ 28.059795] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.059798] ? print_irqtrace_events+0x270/0x270 [ 28.059802] ? print_irqtrace_events+0x270/0x270 [ 28.059807] ? rcu_note_context_switch+0x710/0x710 [ 28.059811] ? __might_sleep+0x95/0x190 [ 28.059815] ? ep_free+0xf4/0x320 [ 28.059820] ? __mutex_lock+0x16f/0x1a80 [ 28.059822] ? ep_free+0xf4/0x320 [ 28.059827] ? print_irqtrace_events+0x270/0x270 [ 28.059830] ? ep_free+0xf4/0x320 [ 28.059834] lock_acquire+0x1d5/0x580 [ 28.059838] ? lock_acquire+0x1d5/0x580 [ 28.059841] ? remove_wait_queue+0x81/0x350 [ 28.059846] ? lock_release+0xa40/0xa40 [ 28.059851] ? lock_acquire+0x1d5/0x580 [ 28.059855] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.059858] ? lock_acquire+0x1d5/0x580 [ 28.059861] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 28.059867] _raw_spin_lock_irqsave+0x96/0xc0 [ 28.059870] ? remove_wait_queue+0x81/0x350 [ 28.059874] remove_wait_queue+0x81/0x350 [ 28.059880] ? depot_save_stack+0x3b5/0x490 [ 28.059884] ? add_wait_queue+0x290/0x290 [ 28.059887] ? rcutorture_record_progress+0x10/0x10 [ 28.059891] ? lock_release+0xa40/0xa40 [ 28.059896] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 28.059902] ? __kernel_text_address+0xd/0x40 [ 28.059907] ? clear_tfile_check_list+0x370/0x370 [ 28.059912] ? check_noncircular+0x20/0x20 [ 28.059918] ? locks_remove_file+0x3fa/0x5a0 [ 28.059923] ep_free+0x13f/0x320 [ 28.059927] ? ep_remove+0x800/0x800 [ 28.059930] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.059935] ? ep_free+0x320/0x320 [ 28.059939] ep_eventpoll_release+0x44/0x60 [ 28.059943] __fput+0x327/0x7e0 [ 28.059948] ? fput+0x140/0x140 [ 28.059952] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.059957] ____fput+0x15/0x20 [ 28.059961] task_work_run+0x199/0x270 [ 28.059966] ? task_work_cancel+0x210/0x210 [ 28.059970] ? _raw_spin_unlock+0x22/0x30 [ 28.059974] ? switch_task_namespaces+0x87/0xc0 [ 28.059981] do_exit+0x9bb/0x1ad0 [ 28.059987] ? __handle_mm_fault+0x2330/0x3ce0 [ 28.059991] ? mm_update_next_owner+0x930/0x930 [ 28.059998] ? do_raw_spin_trylock+0x190/0x190 [ 28.060005] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.060009] ? check_noncircular+0x20/0x20 [ 28.060013] ? _raw_spin_unlock+0x22/0x30 [ 28.060017] ? __handle_mm_fault+0x80e/0x3ce0 [ 28.060021] ? check_noncircular+0x20/0x20 [ 28.060024] ? __pmd_alloc+0x4e0/0x4e0 [ 28.060027] ? lock_downgrade+0x980/0x980 [ 28.060032] ? find_held_lock+0x35/0x1d0 [ 28.060037] ? handle_mm_fault+0x248/0x8d0 [ 28.060041] ? find_held_lock+0x35/0x1d0 [ 28.060047] ? __do_page_fault+0x5f7/0xc90 [ 28.060051] ? lock_downgrade+0x980/0x980 [ 28.060056] ? handle_mm_fault+0x410/0x8d0 [ 28.060059] ? down_read_trylock+0xdb/0x170 [ 28.060062] ? __do_page_fault+0x32d/0xc90 [ 28.060066] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 28.060070] ? vmacache_find+0x5f/0x280 [ 28.060075] do_group_exit+0x149/0x400 [ 28.060079] ? __do_page_fault+0x3d6/0xc90 [ 28.060083] ? SyS_exit+0x30/0x30 [ 28.060088] ? do_fast_syscall_32+0x156/0xf9d [ 28.060091] ? do_group_exit+0x400/0x400 [ 28.060095] SyS_exit_group+0x1d/0x20 [ 28.060099] do_fast_syscall_32+0x3ee/0xf9d [ 28.060104] ? do_int80_syscall_32+0x9d0/0x9d0 [ 28.060107] ? kasan_check_read+0x11/0x20 [ 28.060112] ? syscall_return_slowpath+0x550/0x550 [ 28.060116] ? SyS_rt_sigaction+0x94/0x1b0 [ 28.060120] ? SyS_sigprocmask+0x4b0/0x4b0 [ 28.060124] ? SyS_read+0x184/0x220 [ 28.060127] ? retint_user+0x18/0x18 [ 28.060132] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.060137] entry_SYSENTER_compat+0x54/0x63 [ 28.060140] RIP: 0023:0xf7f8ac79 [ 28.060142] RSP: 002b:00000000ffe5b7dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 28.060147] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 28.060149] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 28.060151] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 28.060153] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 28.060155] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 28.060159] [ 28.060161] Allocated by task 3498: [ 28.060165] save_stack+0x43/0xd0 [ 28.060168] kasan_kmalloc+0xad/0xe0 [ 28.060171] kmem_cache_alloc_trace+0x136/0x750 [ 28.060175] binder_get_thread+0x1cf/0x870 [ 28.060177] binder_poll+0x8c/0x390 [ 28.060180] ep_item_poll.isra.10+0xec/0x320 [ 28.060183] ep_insert+0x6a3/0x1b10 [ 28.060186] SyS_epoll_ctl+0x12e4/0x1ab0 [ 28.060190] do_fast_syscall_32+0x3ee/0xf9d [ 28.060192] entry_SYSENTER_compat+0x54/0x63 [ 28.060193] [ 28.060194] Freed by task 3498: [ 28.060197] save_stack+0x43/0xd0 [ 28.060200] kasan_slab_free+0x71/0xc0 [ 28.060202] kfree+0xd6/0x260 [ 28.060205] binder_thread_dec_tmpref+0x27f/0x310 [ 28.060207] binder_thread_release+0x27d/0x540 [ 28.060210] binder_ioctl+0xc02/0x1417 [ 28.060213] compat_SyS_ioctl+0x151/0x2a30 [ 28.060216] do_fast_syscall_32+0x3ee/0xf9d [ 28.060219] entry_SYSENTER_compat+0x54/0x63 [ 28.060219] [ 28.060222] The buggy address belongs to the object at ffff8801c7abfa80 [ 28.060222] which belongs to the cache kmalloc-512 of size 512 [ 28.060225] The buggy address is located 176 bytes inside of [ 28.060225] 512-byte region [ffff8801c7abfa80, ffff8801c7abfc80) [ 28.060226] The buggy address belongs to the page: [ 28.060229] page:ffffea00071eafc0 count:1 mapcount:0 mapping:ffff8801c7abf080 index:0x0 [ 28.060233] flags: 0x2fffc0000000100(slab) [ 28.060238] raw: 02fffc0000000100 ffff8801c7abf080 0000000000000000 0000000100000006 [ 28.060242] raw: ffffea00073703e0 ffffea00071d62e0 ffff8801dac00940 0000000000000000 [ 28.060243] page dumped because: kasan: bad access detected [ 28.060244] [ 28.060245] Memory state around the buggy address: [ 28.060248] ffff8801c7abfa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.060250] ffff8801c7abfa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.060253] >ffff8801c7abfb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.060254] ^ [ 28.060257] ffff8801c7abfb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.060259] ffff8801c7abfc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.060260] ================================================================== [ 28.060261] Disabling lock debugging due to kernel taint [ 28.060263] Kernel panic - not syncing: panic_on_warn set ... [ 28.060263] [ 28.060267] CPU: 0 PID: 3498 Comm: syzkaller243091 Tainted: G B 4.15.0-rc7+ #167 [ 28.060269] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.060270] Call Trace: [ 28.060274] dump_stack+0x194/0x257 [ 28.060278] ? arch_local_irq_restore+0x53/0x53 [ 28.060281] ? kasan_end_report+0x32/0x50 [ 28.060285] ? lock_downgrade+0x980/0x980 [ 28.060289] ? vsnprintf+0x1ed/0x1900 [ 28.060293] ? __lock_acquire+0x3cb0/0x3e00 [ 28.060296] panic+0x1e4/0x41c [ 28.060299] ? refcount_error_report+0x214/0x214 [ 28.060303] ? add_taint+0x40/0x50 [ 28.060306] ? add_taint+0x1c/0x50 [ 28.060310] ? __lock_acquire+0x3d4d/0x3e00 [ 28.060314] kasan_end_report+0x50/0x50 [ 28.060317] kasan_report+0x144/0x340 [ 28.060322] __asan_report_load8_noabort+0x14/0x20 [ 28.060325] __lock_acquire+0x3d4d/0x3e00 [ 28.060329] ? __lock_acquire+0x664/0x3e00 [ 28.060332] ? lock_downgrade+0x980/0x980 [ 28.060335] ? lock_downgrade+0x980/0x980 [ 28.060339] ? print_irqtrace_events+0x270/0x270 [ 28.060343] ? remove_wait_queue+0x81/0x350 [ 28.060348] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.060351] ? __lock_acquire+0x664/0x3e00 [ 28.060355] ? check_noncircular+0x20/0x20 [ 28.060361] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.060365] ? lock_acquire+0x1d5/0x580 [ 28.060368] ? lock_acquire+0x1d5/0x580 [ 28.060372] ? ep_free+0xf4/0x320 [ 28.060376] ? lock_release+0xa40/0xa40 [ 28.060380] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.060383] ? print_irqtrace_events+0x270/0x270 [ 28.060387] ? print_irqtrace_events+0x270/0x270 [ 28.060390] ? rcu_note_context_switch+0x710/0x710 [ 28.060394] ? __might_sleep+0x95/0x190 [ 28.060398] ? ep_free+0xf4/0x320 [ 28.060401] ? __mutex_lock+0x16f/0x1a80 [ 28.060404] ? ep_free+0xf4/0x320 [ 28.060408] ? print_irqtrace_events+0x270/0x270 [ 28.060411] ? ep_free+0xf4/0x320 [ 28.060416] lock_acquire+0x1d5/0x580 [ 28.060419] ? lock_acquire+0x1d5/0x580 [ 28.060422] ? remove_wait_queue+0x81/0x350 [ 28.060427] ? lock_release+0xa40/0xa40 [ 28.060432] ? lock_acquire+0x1d5/0x580 [ 28.060435] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.060438] ? lock_acquire+0x1d5/0x580 [ 28.060442] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 28.060446] _raw_spin_lock_irqsave+0x96/0xc0 [ 28.060450] ? remove_wait_queue+0x81/0x350 [ 28.060453] remove_wait_queue+0x81/0x350 [ 28.060457] ? depot_save_stack+0x3b5/0x490 [ 28.060461] ? add_wait_queue+0x290/0x290 [ 28.060464] ? rcutorture_record_progress+0x10/0x10 [ 28.060467] ? lock_release+0xa40/0xa40 [ 28.060473] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 28.060477] ? __kernel_text_address+0xd/0x40 [ 28.060481] ? clear_tfile_check_list+0x370/0x370 [ 28.060485] ? check_noncircular+0x20/0x20 [ 28.060490] ? locks_remove_file+0x3fa/0x5a0 [ 28.060495] ep_free+0x13f/0x320 [ 28.060499] ? ep_remove+0x800/0x800 [ 28.060502] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.060506] ? ep_free+0x320/0x320 [ 28.060510] ep_eventpoll_release+0x44/0x60 [ 28.060514] __fput+0x327/0x7e0 [ 28.060518] ? fput+0x140/0x140 [ 28.060522] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.060527] ____fput+0x15/0x20 [ 28.060531] task_work_run+0x199/0x270 [ 28.060535] ? task_work_cancel+0x210/0x210 [ 28.060539] ? _raw_spin_unlock+0x22/0x30 [ 28.060542] ? switch_task_namespaces+0x87/0xc0 [ 28.060547] do_exit+0x9bb/0x1ad0 [ 28.060550] ? __handle_mm_fault+0x2330/0x3ce0 [ 28.060555] ? mm_update_next_owner+0x930/0x930 [ 28.060560] ? do_raw_spin_trylock+0x190/0x190 [ 28.060564] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 28.060568] ? check_noncircular+0x20/0x20 [ 28.060572] ? _raw_spin_unlock+0x22/0x30 [ 28.060575] ? __handle_mm_fault+0x80e/0x3ce0 [ 28.060579] ? check_noncircular+0x20/0x20 [ 28.060582] ? __pmd_alloc+0x4e0/0x4e0 [ 28.060585] ? lock_downgrade+0x980/0x980 [ 28.060590] ? find_held_lock+0x35/0x1d0 [ 28.060595] ? handle_mm_fault+0x248/0x8d0 [ 28.060599] ? find_held_lock+0x35/0x1d0 [ 28.060604] ? __do_page_fault+0x5f7/0xc90 [ 28.060607] ? lock_downgrade+0x980/0x980 [ 28.060612] ? handle_mm_fault+0x410/0x8d0 [ 28.060615] ? down_read_trylock+0xdb/0x170 [ 28.060618] ? __do_page_fault+0x32d/0xc90 [ 28.060622] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 28.060625] ? vmacache_find+0x5f/0x280 [ 28.060630] do_group_exit+0x149/0x400 [ 28.060634] ? __do_page_fault+0x3d6/0xc90 [ 28.060638] ? SyS_exit+0x30/0x30 [ 28.060642] ? do_fast_syscall_32+0x156/0xf9d [ 28.060645] ? do_group_exit+0x400/0x400 [ 28.060649] SyS_exit_group+0x1d/0x20 [ 28.060653] do_fast_syscall_32+0x3ee/0xf9d [ 28.060658] ? do_int80_syscall_32+0x9d0/0x9d0 [ 28.060661] ? kasan_check_read+0x11/0x20 [ 28.060665] ? syscall_return_slowpath+0x550/0x550 [ 28.060669] ? SyS_rt_sigaction+0x94/0x1b0 [ 28.060673] ? SyS_sigprocmask+0x4b0/0x4b0 [ 28.060676] ? SyS_read+0x184/0x220 [ 28.060680] ? retint_user+0x18/0x18 [ 28.060685] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.060689] entry_SYSENTER_compat+0x54/0x63 [ 28.060691] RIP: 0023:0xf7f8ac79 [ 28.060693] RSP: 002b:00000000ffe5b7dc EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 28.060697] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 28.060698] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 28.060700] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 28.060702] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 28.060704] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 28.080966] Dumping ftrace buffer: [ 28.080970] (ftrace buffer empty) [ 28.080972] Kernel Offset: disabled [ 29.361185] Rebooting in 86400 seconds..