[....] Starting enhanced syslogd: rsyslogd[ 11.182867] audit: type=1400 audit(1514551902.122:5): avc: denied { syslog } for pid=2993 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 file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?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: [ 16.243545] audit: type=1400 audit(1514551907.183:6): avc: denied { map } for pid=3133 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.43' (ECDSA) to the list of known hosts. executing program [ 22.449208] audit: type=1400 audit(1514551913.388:7): avc: denied { map } for pid=3148 comm="syzkaller130353" path="/root/syzkaller130353222" 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.456341] ================================================================== [ 22.456362] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.456368] Read of size 8 at addr ffff8801c86ee3b0 by task syzkaller130353/3148 [ 22.456369] [ 22.456377] CPU: 1 PID: 3148 Comm: syzkaller130353 Not tainted 4.15.0-rc5+ #150 [ 22.456381] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.456383] Call Trace: [ 22.456393] dump_stack+0x194/0x257 [ 22.456401] ? arch_local_irq_restore+0x53/0x53 [ 22.456410] ? show_regs_print_info+0x18/0x18 [ 22.456415] ? print_irqtrace_events+0x270/0x270 [ 22.456422] ? __lock_acquire+0x664/0x3e00 [ 22.456428] ? __lock_acquire+0x3d4d/0x3e00 [ 22.456437] print_address_description+0x73/0x250 [ 22.456443] ? __lock_acquire+0x3d4d/0x3e00 [ 22.456449] kasan_report+0x25b/0x340 [ 22.456457] __asan_report_load8_noabort+0x14/0x20 [ 22.456463] __lock_acquire+0x3d4d/0x3e00 [ 22.456468] ? __lock_acquire+0x664/0x3e00 [ 22.456474] ? lock_downgrade+0x980/0x980 [ 22.456479] ? lock_downgrade+0x980/0x980 [ 22.456486] ? print_irqtrace_events+0x270/0x270 [ 22.456493] ? remove_wait_queue+0x81/0x350 [ 22.456502] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.456509] ? __lock_acquire+0x664/0x3e00 [ 22.456514] ? check_noncircular+0x20/0x20 [ 22.456526] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.456533] ? lock_acquire+0x1d5/0x580 [ 22.456539] ? lock_acquire+0x1d5/0x580 [ 22.456546] ? ep_free+0xf4/0x320 [ 22.456555] ? lock_release+0xa40/0xa40 [ 22.456562] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.456567] ? print_irqtrace_events+0x270/0x270 [ 22.456573] ? print_irqtrace_events+0x270/0x270 [ 22.456581] ? rcu_note_context_switch+0x710/0x710 [ 22.456588] ? __might_sleep+0x95/0x190 [ 22.456594] ? ep_free+0xf4/0x320 [ 22.456601] ? __mutex_lock+0x16f/0x1a80 [ 22.456605] ? ep_free+0xf4/0x320 [ 22.456617] ? print_irqtrace_events+0x270/0x270 [ 22.456621] ? ep_free+0xf4/0x320 [ 22.456629] lock_acquire+0x1d5/0x580 [ 22.456635] ? lock_acquire+0x1d5/0x580 [ 22.456640] ? remove_wait_queue+0x81/0x350 [ 22.456649] ? lock_release+0xa40/0xa40 [ 22.456657] ? lock_acquire+0x1d5/0x580 [ 22.456663] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.456668] ? lock_acquire+0x1d5/0x580 [ 22.456674] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.456683] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.456688] ? remove_wait_queue+0x81/0x350 [ 22.456694] remove_wait_queue+0x81/0x350 [ 22.456704] ? depot_save_stack+0x3b5/0x490 [ 22.456711] ? add_wait_queue+0x290/0x290 [ 22.456717] ? rcutorture_record_progress+0x10/0x10 [ 22.456722] ? lock_release+0xa40/0xa40 [ 22.456730] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.456741] ? __kernel_text_address+0xd/0x40 [ 22.456748] ? clear_tfile_check_list+0x370/0x370 [ 22.456756] ? check_noncircular+0x20/0x20 [ 22.456764] ? locks_remove_file+0x3fa/0x5a0 [ 22.456773] ep_free+0x13f/0x320 [ 22.456779] ? ep_remove+0x800/0x800 [ 22.456787] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.456794] ? ep_free+0x320/0x320 [ 22.456800] ep_eventpoll_release+0x44/0x60 [ 22.456807] __fput+0x327/0x7e0 [ 22.456815] ? fput+0x140/0x140 [ 22.456822] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.456830] ____fput+0x15/0x20 [ 22.456836] task_work_run+0x199/0x270 [ 22.456843] ? task_work_cancel+0x210/0x210 [ 22.456849] ? _raw_spin_unlock+0x22/0x30 [ 22.456855] ? switch_task_namespaces+0x87/0xc0 [ 22.456865] do_exit+0x9bb/0x1ad0 [ 22.456873] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.456881] ? mm_update_next_owner+0x930/0x930 [ 22.456891] ? do_raw_spin_trylock+0x190/0x190 [ 22.456898] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.456904] ? check_noncircular+0x20/0x20 [ 22.456911] ? _raw_spin_unlock+0x22/0x30 [ 22.456917] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.456925] ? check_noncircular+0x20/0x20 [ 22.456929] ? __pmd_alloc+0x4e0/0x4e0 [ 22.456935] ? lock_downgrade+0x980/0x980 [ 22.456943] ? find_held_lock+0x35/0x1d0 [ 22.456951] ? handle_mm_fault+0x248/0x8d0 [ 22.456958] ? find_held_lock+0x35/0x1d0 [ 22.456970] ? __do_page_fault+0x5f7/0xc90 [ 22.456977] ? lock_downgrade+0x980/0x980 [ 22.456985] ? handle_mm_fault+0x410/0x8d0 [ 22.456990] ? down_read_trylock+0xdb/0x170 [ 22.456996] ? __do_page_fault+0x32d/0xc90 [ 22.457005] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.457011] ? vmacache_find+0x5f/0x280 [ 22.457020] do_group_exit+0x149/0x400 [ 22.457026] ? __do_page_fault+0x3d6/0xc90 [ 22.457032] ? SyS_exit+0x30/0x30 [ 22.457041] ? do_fast_syscall_32+0x156/0xf9d [ 22.457047] ? do_group_exit+0x400/0x400 [ 22.457053] SyS_exit_group+0x1d/0x20 [ 22.457059] do_fast_syscall_32+0x3ee/0xf9d [ 22.457068] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.457074] ? kasan_check_read+0x11/0x20 [ 22.457081] ? syscall_return_slowpath+0x550/0x550 [ 22.457088] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.457095] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.457100] ? SyS_read+0x184/0x220 [ 22.457105] ? retint_user+0x18/0x18 [ 22.457113] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.457122] entry_SYSENTER_compat+0x54/0x63 [ 22.457128] RIP: 0023:0xf7f28c79 [ 22.457131] RSP: 002b:00000000ffd9ee5c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 22.457138] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.457141] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.457144] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.457148] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.457151] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.457159] [ 22.457161] Allocated by task 3148: [ 22.457167] save_stack+0x43/0xd0 [ 22.457172] kasan_kmalloc+0xad/0xe0 [ 22.457179] kmem_cache_alloc_trace+0x136/0x750 [ 22.457186] binder_get_thread+0x1cf/0x870 [ 22.457191] binder_poll+0x8c/0x390 [ 22.457196] ep_item_poll.isra.10+0xec/0x320 [ 22.457200] ep_insert+0x6a3/0x1b10 [ 22.457204] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.457209] do_fast_syscall_32+0x3ee/0xf9d [ 22.457215] entry_SYSENTER_compat+0x54/0x63 [ 22.457216] [ 22.457218] Freed by task 3148: [ 22.457222] save_stack+0x43/0xd0 [ 22.457227] kasan_slab_free+0x71/0xc0 [ 22.457230] kfree+0xd6/0x260 [ 22.457235] binder_thread_dec_tmpref+0x27f/0x310 [ 22.457240] binder_thread_release+0x27d/0x540 [ 22.457245] binder_ioctl+0xc02/0x1417 [ 22.457250] compat_SyS_ioctl+0x151/0x2a30 [ 22.457255] do_fast_syscall_32+0x3ee/0xf9d [ 22.457260] entry_SYSENTER_compat+0x54/0x63 [ 22.457261] [ 22.457266] The buggy address belongs to the object at ffff8801c86ee300 [ 22.457266] which belongs to the cache kmalloc-512 of size 512 [ 22.457270] The buggy address is located 176 bytes inside of [ 22.457270] 512-byte region [ffff8801c86ee300, ffff8801c86ee500) [ 22.457272] The buggy address belongs to the page: [ 22.457278] page:00000000ae84cfc4 count:1 mapcount:0 mapping:0000000012780922 index:0x0 [ 22.457284] flags: 0x2fffc0000000100(slab) [ 22.457293] raw: 02fffc0000000100 ffff8801c86ee080 0000000000000000 0000000100000006 [ 22.457300] raw: ffffea0007296760 ffffea00072965a0 ffff8801db000940 0000000000000000 [ 22.457302] page dumped because: kasan: bad access detected [ 22.457304] [ 22.457305] Memory state around the buggy address: [ 22.457310] ffff8801c86ee280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.457314] ffff8801c86ee300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.457319] >ffff8801c86ee380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.457321] ^ [ 22.457325] ffff8801c86ee400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.457329] ffff8801c86ee480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.457331] ================================================================== [ 22.457333] Disabling lock debugging due to kernel taint [ 22.457337] Kernel panic - not syncing: panic_on_warn set ... [ 22.457337] [ 22.457343] CPU: 1 PID: 3148 Comm: syzkaller130353 Tainted: G B 4.15.0-rc5+ #150 [ 22.457345] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.457347] Call Trace: [ 22.457353] dump_stack+0x194/0x257 [ 22.457360] ? arch_local_irq_restore+0x53/0x53 [ 22.457365] ? kasan_end_report+0x32/0x50 [ 22.457371] ? lock_downgrade+0x980/0x980 [ 22.457378] ? vsnprintf+0x1ed/0x1900 [ 22.457384] ? __lock_acquire+0x3cd0/0x3e00 [ 22.457389] panic+0x1e4/0x41c [ 22.457395] ? refcount_error_report+0x214/0x214 [ 22.457402] ? add_taint+0x40/0x50 [ 22.457407] ? add_taint+0x1c/0x50 [ 22.457413] ? __lock_acquire+0x3d4d/0x3e00 [ 22.457419] kasan_end_report+0x50/0x50 [ 22.457424] kasan_report+0x144/0x340 [ 22.457432] __asan_report_load8_noabort+0x14/0x20 [ 22.457437] __lock_acquire+0x3d4d/0x3e00 [ 22.457443] ? __lock_acquire+0x664/0x3e00 [ 22.457449] ? lock_downgrade+0x980/0x980 [ 22.457454] ? lock_downgrade+0x980/0x980 [ 22.457460] ? print_irqtrace_events+0x270/0x270 [ 22.457466] ? remove_wait_queue+0x81/0x350 [ 22.457474] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.457481] ? __lock_acquire+0x664/0x3e00 [ 22.457486] ? check_noncircular+0x20/0x20 [ 22.457497] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.457504] ? lock_acquire+0x1d5/0x580 [ 22.457509] ? lock_acquire+0x1d5/0x580 [ 22.457514] ? ep_free+0xf4/0x320 [ 22.457522] ? lock_release+0xa40/0xa40 [ 22.457528] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.457533] ? print_irqtrace_events+0x270/0x270 [ 22.457539] ? print_irqtrace_events+0x270/0x270 [ 22.457545] ? rcu_note_context_switch+0x710/0x710 [ 22.457552] ? __might_sleep+0x95/0x190 [ 22.457557] ? ep_free+0xf4/0x320 [ 22.457562] ? __mutex_lock+0x16f/0x1a80 [ 22.457567] ? ep_free+0xf4/0x320 [ 22.457574] ? print_irqtrace_events+0x270/0x270 [ 22.457578] ? ep_free+0xf4/0x320 [ 22.457586] lock_acquire+0x1d5/0x580 [ 22.457591] ? lock_acquire+0x1d5/0x580 [ 22.457597] ? remove_wait_queue+0x81/0x350 [ 22.457605] ? lock_release+0xa40/0xa40 [ 22.457617] ? lock_acquire+0x1d5/0x580 [ 22.457623] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.457628] ? lock_acquire+0x1d5/0x580 [ 22.457633] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.457640] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.457646] ? remove_wait_queue+0x81/0x350 [ 22.457652] remove_wait_queue+0x81/0x350 [ 22.457658] ? depot_save_stack+0x3b5/0x490 [ 22.457665] ? add_wait_queue+0x290/0x290 [ 22.457670] ? rcutorture_record_progress+0x10/0x10 [ 22.457676] ? lock_release+0xa40/0xa40 [ 22.457684] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.457691] ? __kernel_text_address+0xd/0x40 [ 22.457698] ? clear_tfile_check_list+0x370/0x370 [ 22.457705] ? check_noncircular+0x20/0x20 [ 22.457712] ? locks_remove_file+0x3fa/0x5a0 [ 22.457721] ep_free+0x13f/0x320 [ 22.457726] ? ep_remove+0x800/0x800 [ 22.457733] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.457740] ? ep_free+0x320/0x320 [ 22.457745] ep_eventpoll_release+0x44/0x60 [ 22.457750] __fput+0x327/0x7e0 [ 22.457758] ? fput+0x140/0x140 [ 22.457764] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.457772] ____fput+0x15/0x20 [ 22.457778] task_work_run+0x199/0x270 [ 22.457786] ? task_work_cancel+0x210/0x210 [ 22.457792] ? _raw_spin_unlock+0x22/0x30 [ 22.457797] ? switch_task_namespaces+0x87/0xc0 [ 22.457804] do_exit+0x9bb/0x1ad0 [ 22.457810] ? __handle_mm_fault+0x2330/0x3ce0 [ 22.457818] ? mm_update_next_owner+0x930/0x930 [ 22.457827] ? do_raw_spin_trylock+0x190/0x190 [ 22.457834] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.457839] ? check_noncircular+0x20/0x20 [ 22.457846] ? _raw_spin_unlock+0x22/0x30 [ 22.457852] ? __handle_mm_fault+0x80e/0x3ce0 [ 22.457859] ? check_noncircular+0x20/0x20 [ 22.457864] ? __pmd_alloc+0x4e0/0x4e0 [ 22.457869] ? lock_downgrade+0x980/0x980 [ 22.457877] ? find_held_lock+0x35/0x1d0 [ 22.457885] ? handle_mm_fault+0x248/0x8d0 [ 22.457892] ? find_held_lock+0x35/0x1d0 [ 22.457901] ? __do_page_fault+0x5f7/0xc90 [ 22.457907] ? lock_downgrade+0x980/0x980 [ 22.457915] ? handle_mm_fault+0x410/0x8d0 [ 22.457920] ? down_read_trylock+0xdb/0x170 [ 22.457925] ? __do_page_fault+0x32d/0xc90 [ 22.457931] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.457937] ? vmacache_find+0x5f/0x280 [ 22.457945] do_group_exit+0x149/0x400 [ 22.457951] ? __do_page_fault+0x3d6/0xc90 [ 22.457957] ? SyS_exit+0x30/0x30 [ 22.457964] ? do_fast_syscall_32+0x156/0xf9d [ 22.457970] ? do_group_exit+0x400/0x400 [ 22.457976] SyS_exit_group+0x1d/0x20 [ 22.457983] do_fast_syscall_32+0x3ee/0xf9d [ 22.457991] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.457996] ? kasan_check_read+0x11/0x20 [ 22.458003] ? syscall_return_slowpath+0x550/0x550 [ 22.458009] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.458016] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.458020] ? SyS_read+0x184/0x220 [ 22.458026] ? retint_user+0x18/0x18 [ 22.458034] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.458042] entry_SYSENTER_compat+0x54/0x63 [ 22.458046] RIP: 0023:0xf7f28c79 [ 22.458049] RSP: 002b:00000000ffd9ee5c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 22.458055] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 22.458058] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 22.458061] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 22.458064] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.458067] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.475632] Dumping ftrace buffer: [ 22.475635] (ftrace buffer empty) [ 22.475637] Kernel Offset: disabled [ 23.757105] Rebooting in 86400 seconds..