[....] Starting enhanced syslogd: rsyslogd[ 13.185876] audit: type=1400 audit(1516141406.439:5): avc: denied { syslog } for pid=3493 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.649141] audit: type=1400 audit(1516141412.902:6): avc: denied { map } for pid=3633 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.45' (ECDSA) to the list of known hosts. executing program [ 36.029979] audit: type=1400 audit(1516141429.283:7): avc: denied { map } for pid=3651 comm="syzkaller829225" path="/root/syzkaller829225638" 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 [ 36.035035] ================================================================== [ 36.035048] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 36.035052] Read of size 8 at addr ffff8801d95a1db0 by task syzkaller829225/3651 [ 36.035053] [ 36.035059] CPU: 0 PID: 3651 Comm: syzkaller829225 Not tainted 4.15.0-rc8+ #174 [ 36.035061] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.035063] Call Trace: [ 36.035074] dump_stack+0x194/0x257 [ 36.035079] ? arch_local_irq_restore+0x53/0x53 [ 36.035085] ? show_regs_print_info+0x18/0x18 [ 36.035089] ? print_irqtrace_events+0x270/0x270 [ 36.035093] ? __lock_acquire+0x664/0x3e00 [ 36.035097] ? __lock_acquire+0x3d4d/0x3e00 [ 36.035104] print_address_description+0x73/0x250 [ 36.035108] ? __lock_acquire+0x3d4d/0x3e00 [ 36.035111] kasan_report+0x25b/0x340 [ 36.035116] __asan_report_load8_noabort+0x14/0x20 [ 36.035120] __lock_acquire+0x3d4d/0x3e00 [ 36.035123] ? __lock_acquire+0x664/0x3e00 [ 36.035127] ? lock_downgrade+0x980/0x980 [ 36.035130] ? lock_downgrade+0x980/0x980 [ 36.035134] ? print_irqtrace_events+0x270/0x270 [ 36.035140] ? remove_wait_queue+0x81/0x350 [ 36.035146] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.035150] ? __lock_acquire+0x664/0x3e00 [ 36.035153] ? check_noncircular+0x20/0x20 [ 36.035160] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.035164] ? lock_acquire+0x1d5/0x580 [ 36.035168] ? lock_acquire+0x1d5/0x580 [ 36.035174] ? ep_free+0xf4/0x320 [ 36.035179] ? lock_release+0xa40/0xa40 [ 36.035184] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.035187] ? print_irqtrace_events+0x270/0x270 [ 36.035191] ? print_irqtrace_events+0x270/0x270 [ 36.035198] ? rcu_note_context_switch+0x710/0x710 [ 36.035202] ? __might_sleep+0x95/0x190 [ 36.035206] ? ep_free+0xf4/0x320 [ 36.035212] ? __mutex_lock+0x16f/0x1a80 [ 36.035215] ? ep_free+0xf4/0x320 [ 36.035219] ? print_irqtrace_events+0x270/0x270 [ 36.035222] ? ep_free+0xf4/0x320 [ 36.035227] lock_acquire+0x1d5/0x580 [ 36.035230] ? lock_acquire+0x1d5/0x580 [ 36.035234] ? remove_wait_queue+0x81/0x350 [ 36.035238] ? lock_release+0xa40/0xa40 [ 36.035244] ? lock_acquire+0x1d5/0x580 [ 36.035247] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.035250] ? lock_acquire+0x1d5/0x580 [ 36.035254] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 36.035259] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.035263] ? remove_wait_queue+0x81/0x350 [ 36.035267] remove_wait_queue+0x81/0x350 [ 36.035274] ? depot_save_stack+0x3b5/0x490 [ 36.035278] ? add_wait_queue+0x290/0x290 [ 36.035281] ? rcutorture_record_progress+0x10/0x10 [ 36.035285] ? lock_release+0xa40/0xa40 [ 36.035290] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 36.035297] ? __kernel_text_address+0xd/0x40 [ 36.035301] ? clear_tfile_check_list+0x370/0x370 [ 36.035306] ? check_noncircular+0x20/0x20 [ 36.035313] ? locks_remove_file+0x3fa/0x5a0 [ 36.035318] ep_free+0x13f/0x320 [ 36.035322] ? ep_remove+0x800/0x800 [ 36.035326] ? fsnotify_first_mark+0x2b0/0x2b0 [ 36.035330] ? ep_free+0x320/0x320 [ 36.035334] ep_eventpoll_release+0x44/0x60 [ 36.035341] __fput+0x327/0x7e0 [ 36.035346] ? fput+0x140/0x140 [ 36.035350] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.035355] ____fput+0x15/0x20 [ 36.035359] task_work_run+0x199/0x270 [ 36.035364] ? task_work_cancel+0x210/0x210 [ 36.035368] ? _raw_spin_unlock+0x22/0x30 [ 36.035372] ? switch_task_namespaces+0x87/0xc0 [ 36.035378] do_exit+0x9bb/0x1ad0 [ 36.035383] ? __handle_mm_fault+0x2330/0x3ce0 [ 36.035388] ? mm_update_next_owner+0x930/0x930 [ 36.035394] ? do_raw_spin_trylock+0x190/0x190 [ 36.035403] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.035407] ? check_noncircular+0x20/0x20 [ 36.035412] ? _raw_spin_unlock+0x22/0x30 [ 36.035415] ? __handle_mm_fault+0x80e/0x3ce0 [ 36.035420] ? check_noncircular+0x20/0x20 [ 36.035423] ? __pmd_alloc+0x4e0/0x4e0 [ 36.035426] ? lock_downgrade+0x980/0x980 [ 36.035431] ? find_held_lock+0x35/0x1d0 [ 36.035436] ? handle_mm_fault+0x248/0x8d0 [ 36.035440] ? find_held_lock+0x35/0x1d0 [ 36.035448] ? __do_page_fault+0x5f7/0xc90 [ 36.035451] ? lock_downgrade+0x980/0x980 [ 36.035457] ? handle_mm_fault+0x410/0x8d0 [ 36.035460] ? down_read_trylock+0xdb/0x170 [ 36.035464] ? __do_page_fault+0x32d/0xc90 [ 36.035467] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 36.035474] ? vmacache_find+0x5f/0x280 [ 36.035479] do_group_exit+0x149/0x400 [ 36.035483] ? __do_page_fault+0x3d6/0xc90 [ 36.035487] ? SyS_exit+0x30/0x30 [ 36.035495] ? do_fast_syscall_32+0x156/0xf9d [ 36.035498] ? do_group_exit+0x400/0x400 [ 36.035502] SyS_exit_group+0x1d/0x20 [ 36.035506] do_fast_syscall_32+0x3ee/0xf9d [ 36.035511] ? do_int80_syscall_32+0x9d0/0x9d0 [ 36.035515] ? kasan_check_read+0x11/0x20 [ 36.035519] ? syscall_return_slowpath+0x550/0x550 [ 36.035526] ? SyS_rt_sigaction+0x94/0x1b0 [ 36.035530] ? SyS_sigprocmask+0x4b0/0x4b0 [ 36.035533] ? SyS_read+0x184/0x220 [ 36.035537] ? retint_user+0x18/0x18 [ 36.035543] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.035548] entry_SYSENTER_compat+0x54/0x63 [ 36.035552] RIP: 0023:0xf7f78c79 [ 36.035554] RSP: 002b:00000000ffd8962c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 36.035559] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 36.035561] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 36.035563] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 36.035565] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.035567] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.035572] [ 36.035574] Allocated by task 3651: [ 36.035579] save_stack+0x43/0xd0 [ 36.035581] kasan_kmalloc+0xad/0xe0 [ 36.035585] kmem_cache_alloc_trace+0x136/0x750 [ 36.035591] binder_get_thread+0x1cf/0x870 [ 36.035594] binder_poll+0x8c/0x390 [ 36.035597] ep_item_poll.isra.10+0xec/0x320 [ 36.035600] ep_insert+0x6a3/0x1b10 [ 36.035603] SyS_epoll_ctl+0x12e4/0x1ab0 [ 36.035606] do_fast_syscall_32+0x3ee/0xf9d [ 36.035609] entry_SYSENTER_compat+0x54/0x63 [ 36.035610] [ 36.035611] Freed by task 3651: [ 36.035614] save_stack+0x43/0xd0 [ 36.035617] kasan_slab_free+0x71/0xc0 [ 36.035620] kfree+0xd6/0x260 [ 36.035623] binder_thread_dec_tmpref+0x27f/0x310 [ 36.035626] binder_thread_release+0x27d/0x540 [ 36.035630] binder_ioctl+0xc02/0x1417 [ 36.035633] compat_SyS_ioctl+0x151/0x2a30 [ 36.035636] do_fast_syscall_32+0x3ee/0xf9d [ 36.035639] entry_SYSENTER_compat+0x54/0x63 [ 36.035639] [ 36.035642] The buggy address belongs to the object at ffff8801d95a1d00 [ 36.035642] which belongs to the cache kmalloc-512 of size 512 [ 36.035645] The buggy address is located 176 bytes inside of [ 36.035645] 512-byte region [ffff8801d95a1d00, ffff8801d95a1f00) [ 36.035646] The buggy address belongs to the page: [ 36.035650] page:ffffea0007656840 count:1 mapcount:0 mapping:ffff8801d95a1080 index:0x0 [ 36.035654] flags: 0x2fffc0000000100(slab) [ 36.035660] raw: 02fffc0000000100 ffff8801d95a1080 0000000000000000 0000000100000006 [ 36.035664] raw: ffffea0007669e20 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 36.035666] page dumped because: kasan: bad access detected [ 36.035667] [ 36.035668] Memory state around the buggy address: [ 36.035671] ffff8801d95a1c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.035674] ffff8801d95a1d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.035676] >ffff8801d95a1d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.035678] ^ [ 36.035680] ffff8801d95a1e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.035683] ffff8801d95a1e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.035684] ================================================================== [ 36.035685] Disabling lock debugging due to kernel taint [ 36.035687] Kernel panic - not syncing: panic_on_warn set ... [ 36.035687] [ 36.035691] CPU: 0 PID: 3651 Comm: syzkaller829225 Tainted: G B 4.15.0-rc8+ #174 [ 36.035693] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.035694] Call Trace: [ 36.035699] dump_stack+0x194/0x257 [ 36.035703] ? arch_local_irq_restore+0x53/0x53 [ 36.035707] ? kasan_end_report+0x32/0x50 [ 36.035710] ? lock_downgrade+0x980/0x980 [ 36.035716] ? vsnprintf+0x1ed/0x1900 [ 36.035720] ? __lock_acquire+0x3c70/0x3e00 [ 36.035724] panic+0x1e4/0x41c [ 36.035727] ? refcount_error_report+0x214/0x214 [ 36.035731] ? add_taint+0x40/0x50 [ 36.035735] ? add_taint+0x1c/0x50 [ 36.035739] ? __lock_acquire+0x3d4d/0x3e00 [ 36.035742] kasan_end_report+0x50/0x50 [ 36.035746] kasan_report+0x144/0x340 [ 36.035751] __asan_report_load8_noabort+0x14/0x20 [ 36.035754] __lock_acquire+0x3d4d/0x3e00 [ 36.035757] ? __lock_acquire+0x664/0x3e00 [ 36.035761] ? lock_downgrade+0x980/0x980 [ 36.035764] ? lock_downgrade+0x980/0x980 [ 36.035768] ? print_irqtrace_events+0x270/0x270 [ 36.035772] ? remove_wait_queue+0x81/0x350 [ 36.035777] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.035781] ? __lock_acquire+0x664/0x3e00 [ 36.035784] ? check_noncircular+0x20/0x20 [ 36.035790] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.035795] ? lock_acquire+0x1d5/0x580 [ 36.035798] ? lock_acquire+0x1d5/0x580 [ 36.035801] ? ep_free+0xf4/0x320 [ 36.035806] ? lock_release+0xa40/0xa40 [ 36.035809] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.035813] ? print_irqtrace_events+0x270/0x270 [ 36.035816] ? print_irqtrace_events+0x270/0x270 [ 36.035820] ? rcu_note_context_switch+0x710/0x710 [ 36.035824] ? __might_sleep+0x95/0x190 [ 36.035828] ? ep_free+0xf4/0x320 [ 36.035831] ? __mutex_lock+0x16f/0x1a80 [ 36.035834] ? ep_free+0xf4/0x320 [ 36.035838] ? print_irqtrace_events+0x270/0x270 [ 36.035841] ? ep_free+0xf4/0x320 [ 36.035846] lock_acquire+0x1d5/0x580 [ 36.035849] ? lock_acquire+0x1d5/0x580 [ 36.035853] ? remove_wait_queue+0x81/0x350 [ 36.035857] ? lock_release+0xa40/0xa40 [ 36.035862] ? lock_acquire+0x1d5/0x580 [ 36.035866] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 36.035869] ? lock_acquire+0x1d5/0x580 [ 36.035873] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 36.035877] _raw_spin_lock_irqsave+0x96/0xc0 [ 36.035881] ? remove_wait_queue+0x81/0x350 [ 36.035884] remove_wait_queue+0x81/0x350 [ 36.035888] ? depot_save_stack+0x3b5/0x490 [ 36.035892] ? add_wait_queue+0x290/0x290 [ 36.035896] ? rcutorture_record_progress+0x10/0x10 [ 36.035899] ? lock_release+0xa40/0xa40 [ 36.035905] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 36.035909] ? __kernel_text_address+0xd/0x40 [ 36.035913] ? clear_tfile_check_list+0x370/0x370 [ 36.035918] ? check_noncircular+0x20/0x20 [ 36.035922] ? locks_remove_file+0x3fa/0x5a0 [ 36.035927] ep_free+0x13f/0x320 [ 36.035931] ? ep_remove+0x800/0x800 [ 36.035935] ? fsnotify_first_mark+0x2b0/0x2b0 [ 36.035939] ? ep_free+0x320/0x320 [ 36.035943] ep_eventpoll_release+0x44/0x60 [ 36.035947] __fput+0x327/0x7e0 [ 36.035951] ? fput+0x140/0x140 [ 36.035956] ? _raw_spin_unlock_irq+0x27/0x70 [ 36.035960] ____fput+0x15/0x20 [ 36.035964] task_work_run+0x199/0x270 [ 36.035969] ? task_work_cancel+0x210/0x210 [ 36.035973] ? _raw_spin_unlock+0x22/0x30 [ 36.035976] ? switch_task_namespaces+0x87/0xc0 [ 36.035981] do_exit+0x9bb/0x1ad0 [ 36.035984] ? __handle_mm_fault+0x2330/0x3ce0 [ 36.035989] ? mm_update_next_owner+0x930/0x930 [ 36.035994] ? do_raw_spin_trylock+0x190/0x190 [ 36.035999] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 36.036005] ? check_noncircular+0x20/0x20 [ 36.036010] ? _raw_spin_unlock+0x22/0x30 [ 36.036013] ? __handle_mm_fault+0x80e/0x3ce0 [ 36.036018] ? check_noncircular+0x20/0x20 [ 36.036021] ? __pmd_alloc+0x4e0/0x4e0 [ 36.036024] ? lock_downgrade+0x980/0x980 [ 36.036028] ? find_held_lock+0x35/0x1d0 [ 36.036033] ? handle_mm_fault+0x248/0x8d0 [ 36.036037] ? find_held_lock+0x35/0x1d0 [ 36.036042] ? __do_page_fault+0x5f7/0xc90 [ 36.036046] ? lock_downgrade+0x980/0x980 [ 36.036051] ? handle_mm_fault+0x410/0x8d0 [ 36.036054] ? down_read_trylock+0xdb/0x170 [ 36.036058] ? __do_page_fault+0x32d/0xc90 [ 36.036061] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 36.036065] ? vmacache_find+0x5f/0x280 [ 36.036070] do_group_exit+0x149/0x400 [ 36.036074] ? __do_page_fault+0x3d6/0xc90 [ 36.036077] ? SyS_exit+0x30/0x30 [ 36.036082] ? do_fast_syscall_32+0x156/0xf9d [ 36.036086] ? do_group_exit+0x400/0x400 [ 36.036089] SyS_exit_group+0x1d/0x20 [ 36.036093] do_fast_syscall_32+0x3ee/0xf9d [ 36.036098] ? do_int80_syscall_32+0x9d0/0x9d0 [ 36.036101] ? kasan_check_read+0x11/0x20 [ 36.036106] ? syscall_return_slowpath+0x550/0x550 [ 36.036110] ? SyS_rt_sigaction+0x94/0x1b0 [ 36.036114] ? SyS_sigprocmask+0x4b0/0x4b0 [ 36.036117] ? SyS_read+0x184/0x220 [ 36.036120] ? retint_user+0x18/0x18 [ 36.036124] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.036129] entry_SYSENTER_compat+0x54/0x63 [ 36.036131] RIP: 0023:0xf7f78c79 [ 36.036133] RSP: 002b:00000000ffd8962c EFLAGS: 00000296 ORIG_RAX: 00000000000000fc [ 36.036137] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 36.036139] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 36.036140] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 36.036142] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.036144] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.055896] Dumping ftrace buffer: [ 36.055901] (ftrace buffer empty) [ 36.055903] Kernel Offset: disabled [ 37.338493] Rebooting in 86400 seconds..