[....] Starting enhanced syslogd: rsyslogd[ 12.734606] audit: type=1400 audit(1515014462.421:5): avc: denied { syslog } for pid=3349 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: [ 18.935115] audit: type=1400 audit(1515014468.621:6): avc: denied { map } for pid=3490 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.19' (ECDSA) to the list of known hosts. executing program [ 25.107629] audit: type=1400 audit(1515014474.794:7): avc: denied { map } for pid=3504 comm="syzkaller289936" path="/root/syzkaller289936152" 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.112989] ================================================================== [ 25.112999] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.113006] Read of size 8 at addr ffff8801c6d02130 by task syzkaller289936/3504 [ 25.113007] [ 25.113012] CPU: 1 PID: 3504 Comm: syzkaller289936 Not tainted 4.15.0-rc6+ #156 [ 25.113014] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.113016] Call Trace: [ 25.113028] dump_stack+0x194/0x257 [ 25.113032] ? arch_local_irq_restore+0x53/0x53 [ 25.113037] ? show_regs_print_info+0x18/0x18 [ 25.113041] ? print_irqtrace_events+0x270/0x270 [ 25.113045] ? __lock_acquire+0x664/0x3e00 [ 25.113049] ? __lock_acquire+0x3d4d/0x3e00 [ 25.113055] print_address_description+0x73/0x250 [ 25.113059] ? __lock_acquire+0x3d4d/0x3e00 [ 25.113065] kasan_report+0x25b/0x340 [ 25.113072] __asan_report_load8_noabort+0x14/0x20 [ 25.113077] __lock_acquire+0x3d4d/0x3e00 [ 25.113080] ? __lock_acquire+0x664/0x3e00 [ 25.113084] ? lock_downgrade+0x980/0x980 [ 25.113087] ? lock_downgrade+0x980/0x980 [ 25.113091] ? print_irqtrace_events+0x270/0x270 [ 25.113096] ? remove_wait_queue+0x81/0x350 [ 25.113101] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.113105] ? __lock_acquire+0x664/0x3e00 [ 25.113108] ? check_noncircular+0x20/0x20 [ 25.113115] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.113119] ? lock_acquire+0x1d5/0x580 [ 25.113123] ? lock_acquire+0x1d5/0x580 [ 25.113128] ? ep_free+0xf4/0x320 [ 25.113132] ? lock_release+0xa40/0xa40 [ 25.113137] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.113141] ? print_irqtrace_events+0x270/0x270 [ 25.113144] ? print_irqtrace_events+0x270/0x270 [ 25.113150] ? rcu_note_context_switch+0x710/0x710 [ 25.113154] ? __might_sleep+0x95/0x190 [ 25.113157] ? ep_free+0xf4/0x320 [ 25.113162] ? __mutex_lock+0x16f/0x1a80 [ 25.113165] ? ep_free+0xf4/0x320 [ 25.113169] ? print_irqtrace_events+0x270/0x270 [ 25.113172] ? ep_free+0xf4/0x320 [ 25.113176] lock_acquire+0x1d5/0x580 [ 25.113180] ? lock_acquire+0x1d5/0x580 [ 25.113183] ? remove_wait_queue+0x81/0x350 [ 25.113188] ? lock_release+0xa40/0xa40 [ 25.113193] ? lock_acquire+0x1d5/0x580 [ 25.113196] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.113199] ? lock_acquire+0x1d5/0x580 [ 25.113203] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.113208] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.113212] ? remove_wait_queue+0x81/0x350 [ 25.113215] remove_wait_queue+0x81/0x350 [ 25.113221] ? depot_save_stack+0x3b5/0x490 [ 25.113225] ? add_wait_queue+0x290/0x290 [ 25.113229] ? rcutorture_record_progress+0x10/0x10 [ 25.113232] ? lock_release+0xa40/0xa40 [ 25.113238] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.113243] ? __kernel_text_address+0xd/0x40 [ 25.113248] ? clear_tfile_check_list+0x370/0x370 [ 25.113252] ? check_noncircular+0x20/0x20 [ 25.113258] ? locks_remove_file+0x3fa/0x5a0 [ 25.113263] ep_free+0x13f/0x320 [ 25.113267] ? ep_remove+0x800/0x800 [ 25.113271] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.113275] ? ep_free+0x320/0x320 [ 25.113279] ep_eventpoll_release+0x44/0x60 [ 25.113283] __fput+0x327/0x7e0 [ 25.113288] ? fput+0x140/0x140 [ 25.113292] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.113297] ____fput+0x15/0x20 [ 25.113301] task_work_run+0x199/0x270 [ 25.113305] ? task_work_cancel+0x210/0x210 [ 25.113309] ? _raw_spin_unlock+0x22/0x30 [ 25.113313] ? switch_task_namespaces+0x87/0xc0 [ 25.113318] do_exit+0x9bb/0x1ad0 [ 25.113322] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.113327] ? mm_update_next_owner+0x930/0x930 [ 25.113332] ? do_raw_spin_trylock+0x190/0x190 [ 25.113337] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.113341] ? check_noncircular+0x20/0x20 [ 25.113345] ? _raw_spin_unlock+0x22/0x30 [ 25.113348] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.113353] ? check_noncircular+0x20/0x20 [ 25.113355] ? __pmd_alloc+0x4e0/0x4e0 [ 25.113358] ? lock_downgrade+0x980/0x980 [ 25.113363] ? find_held_lock+0x35/0x1d0 [ 25.113368] ? handle_mm_fault+0x248/0x8d0 [ 25.113372] ? find_held_lock+0x35/0x1d0 [ 25.113378] ? __do_page_fault+0x5f7/0xc90 [ 25.113382] ? lock_downgrade+0x980/0x980 [ 25.113387] ? handle_mm_fault+0x410/0x8d0 [ 25.113390] ? down_read_trylock+0xdb/0x170 [ 25.113393] ? __do_page_fault+0x32d/0xc90 [ 25.113397] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.113401] ? vmacache_find+0x5f/0x280 [ 25.113406] do_group_exit+0x149/0x400 [ 25.113410] ? __do_page_fault+0x3d6/0xc90 [ 25.113413] ? SyS_exit+0x30/0x30 [ 25.113419] ? do_fast_syscall_32+0x156/0xf9d [ 25.113422] ? do_group_exit+0x400/0x400 [ 25.113426] SyS_exit_group+0x1d/0x20 [ 25.113430] do_fast_syscall_32+0x3ee/0xf9d [ 25.113435] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.113438] ? kasan_check_read+0x11/0x20 [ 25.113442] ? syscall_return_slowpath+0x550/0x550 [ 25.113447] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.113451] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.113454] ? SyS_read+0x184/0x220 [ 25.113457] ? retint_user+0x18/0x18 [ 25.113462] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.113468] entry_SYSENTER_compat+0x54/0x63 [ 25.113471] RIP: 0023:0xf7fe6c79 [ 25.113473] RSP: 002b:00000000ff82251c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.113477] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.113479] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.113481] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.113483] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.113485] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.113489] [ 25.113491] Allocated by task 3504: [ 25.113495] save_stack+0x43/0xd0 [ 25.113497] kasan_kmalloc+0xad/0xe0 [ 25.113500] kmem_cache_alloc_trace+0x136/0x750 [ 25.113504] binder_get_thread+0x1cf/0x870 [ 25.113507] binder_poll+0x8c/0x390 [ 25.113510] ep_item_poll.isra.10+0xec/0x320 [ 25.113513] ep_insert+0x6a3/0x1b10 [ 25.113516] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.113519] do_fast_syscall_32+0x3ee/0xf9d [ 25.113522] entry_SYSENTER_compat+0x54/0x63 [ 25.113523] [ 25.113524] Freed by task 3504: [ 25.113527] save_stack+0x43/0xd0 [ 25.113530] kasan_slab_free+0x71/0xc0 [ 25.113533] kfree+0xd6/0x260 [ 25.113535] binder_thread_dec_tmpref+0x27f/0x310 [ 25.113538] binder_thread_release+0x27d/0x540 [ 25.113541] binder_ioctl+0xc02/0x1417 [ 25.113544] compat_SyS_ioctl+0x151/0x2a30 [ 25.113547] do_fast_syscall_32+0x3ee/0xf9d [ 25.113550] entry_SYSENTER_compat+0x54/0x63 [ 25.113551] [ 25.113553] The buggy address belongs to the object at ffff8801c6d02080 [ 25.113553] which belongs to the cache kmalloc-512 of size 512 [ 25.113556] The buggy address is located 176 bytes inside of [ 25.113556] 512-byte region [ffff8801c6d02080, ffff8801c6d02280) [ 25.113557] The buggy address belongs to the page: [ 25.113561] page:000000005b43557c count:1 mapcount:0 mapping:00000000512a2ae6 index:0xffff8801c6d02800 [ 25.113564] flags: 0x2fffc0000000100(slab) [ 25.113570] raw: 02fffc0000000100 ffff8801c6d02080 ffff8801c6d02800 0000000100000003 [ 25.113574] raw: ffffea000717ce60 ffff8801dac01738 ffff8801dac00940 0000000000000000 [ 25.113575] page dumped because: kasan: bad access detected [ 25.113576] [ 25.113577] Memory state around the buggy address: [ 25.113580] ffff8801c6d02000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.113583] ffff8801c6d02080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.113585] >ffff8801c6d02100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.113587] ^ [ 25.113589] ffff8801c6d02180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.113592] ffff8801c6d02200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.113593] ================================================================== [ 25.113594] Disabling lock debugging due to kernel taint [ 25.113596] Kernel panic - not syncing: panic_on_warn set ... [ 25.113596] [ 25.113600] CPU: 1 PID: 3504 Comm: syzkaller289936 Tainted: G B 4.15.0-rc6+ #156 [ 25.113601] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.113603] Call Trace: [ 25.113606] dump_stack+0x194/0x257 [ 25.113611] ? arch_local_irq_restore+0x53/0x53 [ 25.113614] ? kasan_end_report+0x32/0x50 [ 25.113618] ? lock_downgrade+0x980/0x980 [ 25.113622] ? vsnprintf+0x1ed/0x1900 [ 25.113626] ? __lock_acquire+0x3cb0/0x3e00 [ 25.113629] panic+0x1e4/0x41c [ 25.113633] ? refcount_error_report+0x214/0x214 [ 25.113637] ? add_taint+0x40/0x50 [ 25.113639] ? add_taint+0x1c/0x50 [ 25.113644] ? __lock_acquire+0x3d4d/0x3e00 [ 25.113647] kasan_end_report+0x50/0x50 [ 25.113650] kasan_report+0x144/0x340 [ 25.113655] __asan_report_load8_noabort+0x14/0x20 [ 25.113659] __lock_acquire+0x3d4d/0x3e00 [ 25.113662] ? __lock_acquire+0x664/0x3e00 [ 25.113665] ? lock_downgrade+0x980/0x980 [ 25.113668] ? lock_downgrade+0x980/0x980 [ 25.113672] ? print_irqtrace_events+0x270/0x270 [ 25.113676] ? remove_wait_queue+0x81/0x350 [ 25.113681] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.113685] ? __lock_acquire+0x664/0x3e00 [ 25.113688] ? check_noncircular+0x20/0x20 [ 25.113694] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.113698] ? lock_acquire+0x1d5/0x580 [ 25.113701] ? lock_acquire+0x1d5/0x580 [ 25.113705] ? ep_free+0xf4/0x320 [ 25.113709] ? lock_release+0xa40/0xa40 [ 25.113713] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.113716] ? print_irqtrace_events+0x270/0x270 [ 25.113719] ? print_irqtrace_events+0x270/0x270 [ 25.113723] ? rcu_note_context_switch+0x710/0x710 [ 25.113727] ? __might_sleep+0x95/0x190 [ 25.113731] ? ep_free+0xf4/0x320 [ 25.113734] ? __mutex_lock+0x16f/0x1a80 [ 25.113737] ? ep_free+0xf4/0x320 [ 25.113741] ? print_irqtrace_events+0x270/0x270 [ 25.113744] ? ep_free+0xf4/0x320 [ 25.113748] lock_acquire+0x1d5/0x580 [ 25.113751] ? lock_acquire+0x1d5/0x580 [ 25.113755] ? remove_wait_queue+0x81/0x350 [ 25.113760] ? lock_release+0xa40/0xa40 [ 25.113764] ? lock_acquire+0x1d5/0x580 [ 25.113768] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.113771] ? lock_acquire+0x1d5/0x580 [ 25.113774] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.113779] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.113782] ? remove_wait_queue+0x81/0x350 [ 25.113786] remove_wait_queue+0x81/0x350 [ 25.113789] ? depot_save_stack+0x3b5/0x490 [ 25.113793] ? add_wait_queue+0x290/0x290 [ 25.113797] ? rcutorture_record_progress+0x10/0x10 [ 25.113800] ? lock_release+0xa40/0xa40 [ 25.113805] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.113809] ? __kernel_text_address+0xd/0x40 [ 25.113814] ? clear_tfile_check_list+0x370/0x370 [ 25.113818] ? check_noncircular+0x20/0x20 [ 25.113823] ? locks_remove_file+0x3fa/0x5a0 [ 25.113828] ep_free+0x13f/0x320 [ 25.113831] ? ep_remove+0x800/0x800 [ 25.113835] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.113839] ? ep_free+0x320/0x320 [ 25.113842] ep_eventpoll_release+0x44/0x60 [ 25.113846] __fput+0x327/0x7e0 [ 25.113851] ? fput+0x140/0x140 [ 25.113855] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.113859] ____fput+0x15/0x20 [ 25.113863] task_work_run+0x199/0x270 [ 25.113868] ? task_work_cancel+0x210/0x210 [ 25.113871] ? _raw_spin_unlock+0x22/0x30 [ 25.113875] ? switch_task_namespaces+0x87/0xc0 [ 25.113879] do_exit+0x9bb/0x1ad0 [ 25.113882] ? __handle_mm_fault+0x2330/0x3ce0 [ 25.113887] ? mm_update_next_owner+0x930/0x930 [ 25.113892] ? do_raw_spin_trylock+0x190/0x190 [ 25.113896] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.113900] ? check_noncircular+0x20/0x20 [ 25.113904] ? _raw_spin_unlock+0x22/0x30 [ 25.113907] ? __handle_mm_fault+0x80e/0x3ce0 [ 25.113912] ? check_noncircular+0x20/0x20 [ 25.113914] ? __pmd_alloc+0x4e0/0x4e0 [ 25.113917] ? lock_downgrade+0x980/0x980 [ 25.113922] ? find_held_lock+0x35/0x1d0 [ 25.113927] ? handle_mm_fault+0x248/0x8d0 [ 25.113931] ? find_held_lock+0x35/0x1d0 [ 25.113936] ? __do_page_fault+0x5f7/0xc90 [ 25.113943] ? lock_downgrade+0x980/0x980 [ 25.113948] ? handle_mm_fault+0x410/0x8d0 [ 25.113951] ? down_read_trylock+0xdb/0x170 [ 25.113954] ? __do_page_fault+0x32d/0xc90 [ 25.113958] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 25.113961] ? vmacache_find+0x5f/0x280 [ 25.113966] do_group_exit+0x149/0x400 [ 25.113970] ? __do_page_fault+0x3d6/0xc90 [ 25.113973] ? SyS_exit+0x30/0x30 [ 25.113977] ? do_fast_syscall_32+0x156/0xf9d [ 25.113981] ? do_group_exit+0x400/0x400 [ 25.113984] SyS_exit_group+0x1d/0x20 [ 25.113988] do_fast_syscall_32+0x3ee/0xf9d [ 25.113993] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.113996] ? kasan_check_read+0x11/0x20 [ 25.114000] ? syscall_return_slowpath+0x550/0x550 [ 25.114004] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.114008] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.114011] ? SyS_read+0x184/0x220 [ 25.114015] ? retint_user+0x18/0x18 [ 25.114023] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.114028] entry_SYSENTER_compat+0x54/0x63 [ 25.114031] RIP: 0023:0xf7fe6c79 [ 25.114032] RSP: 002b:00000000ff82251c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 25.114036] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 25.114038] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 25.114040] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.114042] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.114043] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.133505] Dumping ftrace buffer: [ 25.133508] (ftrace buffer empty) [ 25.133510] Kernel Offset: disabled [ 26.414182] Rebooting in 86400 seconds..