[....] Starting enhanced syslogd: rsyslogd[ 11.901877] audit: type=1400 audit(1514553208.260:5): avc: denied { syslog } for pid=2994 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: [ 17.190115] audit: type=1400 audit(1514553213.548:6): avc: denied { map } for pid=3134 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.15.220' (ECDSA) to the list of known hosts. executing program [ 29.014893] audit: type=1400 audit(1514553225.373:7): avc: denied { map } for pid=3150 comm="syzkaller727965" path="/root/syzkaller727965076" 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 [ 29.018563] ================================================================== [ 29.018577] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 29.018580] Read of size 8 at addr ffff8801cac6b8b0 by task syzkaller727965/3150 [ 29.018581] [ 29.018586] CPU: 1 PID: 3150 Comm: syzkaller727965 Not tainted 4.15.0-rc5+ #150 [ 29.018589] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.018590] Call Trace: [ 29.018598] dump_stack+0x194/0x257 [ 29.018603] ? arch_local_irq_restore+0x53/0x53 [ 29.018608] ? show_regs_print_info+0x18/0x18 [ 29.018612] ? print_irqtrace_events+0x270/0x270 [ 29.018616] ? __lock_acquire+0x664/0x3e00 [ 29.018619] ? __lock_acquire+0x3d4d/0x3e00 [ 29.018626] print_address_description+0x73/0x250 [ 29.018629] ? __lock_acquire+0x3d4d/0x3e00 [ 29.018633] kasan_report+0x25b/0x340 [ 29.018637] __asan_report_load8_noabort+0x14/0x20 [ 29.018641] __lock_acquire+0x3d4d/0x3e00 [ 29.018644] ? __lock_acquire+0x664/0x3e00 [ 29.018648] ? lock_downgrade+0x980/0x980 [ 29.018651] ? lock_downgrade+0x980/0x980 [ 29.018655] ? print_irqtrace_events+0x270/0x270 [ 29.018660] ? remove_wait_queue+0x81/0x350 [ 29.018665] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.018669] ? __lock_acquire+0x664/0x3e00 [ 29.018672] ? check_noncircular+0x20/0x20 [ 29.018679] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.018683] ? lock_acquire+0x1d5/0x580 [ 29.018686] ? lock_acquire+0x1d5/0x580 [ 29.018691] ? ep_free+0xf4/0x320 [ 29.018696] ? lock_release+0xa40/0xa40 [ 29.018701] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.018704] ? print_irqtrace_events+0x270/0x270 [ 29.018708] ? print_irqtrace_events+0x270/0x270 [ 29.018713] ? rcu_note_context_switch+0x710/0x710 [ 29.018717] ? __might_sleep+0x95/0x190 [ 29.018720] ? ep_free+0xf4/0x320 [ 29.018725] ? __mutex_lock+0x16f/0x1a80 [ 29.018727] ? ep_free+0xf4/0x320 [ 29.018732] ? print_irqtrace_events+0x270/0x270 [ 29.018734] ? ep_free+0xf4/0x320 [ 29.018739] lock_acquire+0x1d5/0x580 [ 29.018742] ? lock_acquire+0x1d5/0x580 [ 29.018746] ? remove_wait_queue+0x81/0x350 [ 29.018750] ? lock_release+0xa40/0xa40 [ 29.018755] ? lock_acquire+0x1d5/0x580 [ 29.018759] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.018762] ? lock_acquire+0x1d5/0x580 [ 29.018765] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.018770] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.018774] ? remove_wait_queue+0x81/0x350 [ 29.018777] remove_wait_queue+0x81/0x350 [ 29.018784] ? depot_save_stack+0x3b5/0x490 [ 29.018788] ? add_wait_queue+0x290/0x290 [ 29.018791] ? rcutorture_record_progress+0x10/0x10 [ 29.018795] ? lock_release+0xa40/0xa40 [ 29.018800] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.018806] ? __kernel_text_address+0xd/0x40 [ 29.018810] ? clear_tfile_check_list+0x370/0x370 [ 29.018814] ? check_noncircular+0x20/0x20 [ 29.018820] ? locks_remove_file+0x3fa/0x5a0 [ 29.018825] ep_free+0x13f/0x320 [ 29.018828] ? ep_remove+0x800/0x800 [ 29.018832] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.018836] ? ep_free+0x320/0x320 [ 29.018840] ep_eventpoll_release+0x44/0x60 [ 29.018843] __fput+0x327/0x7e0 [ 29.018848] ? fput+0x140/0x140 [ 29.018852] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.018856] ____fput+0x15/0x20 [ 29.018860] task_work_run+0x199/0x270 [ 29.018865] ? task_work_cancel+0x210/0x210 [ 29.018868] ? _raw_spin_unlock+0x22/0x30 [ 29.018872] ? switch_task_namespaces+0x87/0xc0 [ 29.018877] do_exit+0x9bb/0x1ad0 [ 29.018882] ? __handle_mm_fault+0x2330/0x3ce0 [ 29.018886] ? mm_update_next_owner+0x930/0x930 [ 29.018892] ? do_raw_spin_trylock+0x190/0x190 [ 29.018896] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.018900] ? check_noncircular+0x20/0x20 [ 29.018904] ? _raw_spin_unlock+0x22/0x30 [ 29.018907] ? __handle_mm_fault+0x80e/0x3ce0 [ 29.018911] ? check_noncircular+0x20/0x20 [ 29.018914] ? __pmd_alloc+0x4e0/0x4e0 [ 29.018917] ? lock_downgrade+0x980/0x980 [ 29.018922] ? find_held_lock+0x35/0x1d0 [ 29.018927] ? handle_mm_fault+0x248/0x8d0 [ 29.018931] ? find_held_lock+0x35/0x1d0 [ 29.018937] ? __do_page_fault+0x5f7/0xc90 [ 29.018941] ? lock_downgrade+0x980/0x980 [ 29.018945] ? handle_mm_fault+0x410/0x8d0 [ 29.018949] ? down_read_trylock+0xdb/0x170 [ 29.018953] ? __do_page_fault+0x32d/0xc90 [ 29.018958] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 29.018964] ? vmacache_find+0x5f/0x280 [ 29.018971] do_group_exit+0x149/0x400 [ 29.018974] ? __do_page_fault+0x3d6/0xc90 [ 29.018978] ? SyS_exit+0x30/0x30 [ 29.018985] ? do_fast_syscall_32+0x156/0xf9d [ 29.018989] ? do_group_exit+0x400/0x400 [ 29.018992] SyS_exit_group+0x1d/0x20 [ 29.018996] do_fast_syscall_32+0x3ee/0xf9d [ 29.019005] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.019009] ? kasan_check_read+0x11/0x20 [ 29.019013] ? syscall_return_slowpath+0x550/0x550 [ 29.019018] ? SyS_rt_sigaction+0x94/0x1b0 [ 29.019022] ? SyS_sigprocmask+0x4b0/0x4b0 [ 29.019024] ? SyS_read+0x184/0x220 [ 29.019028] ? retint_user+0x18/0x18 [ 29.019033] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.019039] entry_SYSENTER_compat+0x54/0x63 [ 29.019042] RIP: 0023:0xf7fa2c79 [ 29.019044] RSP: 002b:00000000ff889f4c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.019049] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 29.019051] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 29.019053] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.019054] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.019056] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.019061] [ 29.019063] Allocated by task 3150: [ 29.019067] save_stack+0x43/0xd0 [ 29.019069] kasan_kmalloc+0xad/0xe0 [ 29.019075] kmem_cache_alloc_trace+0x136/0x750 [ 29.019080] binder_get_thread+0x1cf/0x870 [ 29.019083] binder_poll+0x8c/0x390 [ 29.019086] ep_item_poll.isra.10+0xec/0x320 [ 29.019088] ep_insert+0x6a3/0x1b10 [ 29.019091] SyS_epoll_ctl+0x12e4/0x1ab0 [ 29.019094] do_fast_syscall_32+0x3ee/0xf9d [ 29.019097] entry_SYSENTER_compat+0x54/0x63 [ 29.019098] [ 29.019099] Freed by task 3150: [ 29.019102] save_stack+0x43/0xd0 [ 29.019105] kasan_slab_free+0x71/0xc0 [ 29.019107] kfree+0xd6/0x260 [ 29.019110] binder_thread_dec_tmpref+0x27f/0x310 [ 29.019113] binder_thread_release+0x27d/0x540 [ 29.019116] binder_ioctl+0xc02/0x1417 [ 29.019119] compat_SyS_ioctl+0x151/0x2a30 [ 29.019122] do_fast_syscall_32+0x3ee/0xf9d [ 29.019125] entry_SYSENTER_compat+0x54/0x63 [ 29.019126] [ 29.019129] The buggy address belongs to the object at ffff8801cac6b800 [ 29.019129] which belongs to the cache kmalloc-512 of size 512 [ 29.019132] The buggy address is located 176 bytes inside of [ 29.019132] 512-byte region [ffff8801cac6b800, ffff8801cac6ba00) [ 29.019133] The buggy address belongs to the page: [ 29.019137] page:000000006ac94347 count:1 mapcount:0 mapping:0000000083c59b48 index:0xffff8801cac6ba80 [ 29.019140] flags: 0x2fffc0000000100(slab) [ 29.019146] raw: 02fffc0000000100 ffff8801cac6b080 ffff8801cac6ba80 0000000100000004 [ 29.019150] raw: ffffea00072a1520 ffffea00072bf720 ffff8801db000940 0000000000000000 [ 29.019151] page dumped because: kasan: bad access detected [ 29.019152] [ 29.019153] Memory state around the buggy address: [ 29.019157] ffff8801cac6b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.019161] ffff8801cac6b800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.019164] >ffff8801cac6b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.019166] ^ [ 29.019169] ffff8801cac6b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.019173] ffff8801cac6b980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.019174] ================================================================== [ 29.019176] Disabling lock debugging due to kernel taint [ 29.019179] Kernel panic - not syncing: panic_on_warn set ... [ 29.019179] [ 29.019183] CPU: 1 PID: 3150 Comm: syzkaller727965 Tainted: G B 4.15.0-rc5+ #150 [ 29.019184] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.019185] Call Trace: [ 29.019189] dump_stack+0x194/0x257 [ 29.019193] ? arch_local_irq_restore+0x53/0x53 [ 29.019196] ? kasan_end_report+0x32/0x50 [ 29.019200] ? lock_downgrade+0x980/0x980 [ 29.019204] ? vsnprintf+0x1ed/0x1900 [ 29.019208] ? __lock_acquire+0x3cd0/0x3e00 [ 29.019211] panic+0x1e4/0x41c [ 29.019215] ? refcount_error_report+0x214/0x214 [ 29.019219] ? add_taint+0x40/0x50 [ 29.019227] ? add_taint+0x1c/0x50 [ 29.019231] ? __lock_acquire+0x3d4d/0x3e00 [ 29.019234] kasan_end_report+0x50/0x50 [ 29.019237] kasan_report+0x144/0x340 [ 29.019242] __asan_report_load8_noabort+0x14/0x20 [ 29.019245] __lock_acquire+0x3d4d/0x3e00 [ 29.019248] ? __lock_acquire+0x664/0x3e00 [ 29.019252] ? lock_downgrade+0x980/0x980 [ 29.019255] ? lock_downgrade+0x980/0x980 [ 29.019258] ? print_irqtrace_events+0x270/0x270 [ 29.019262] ? remove_wait_queue+0x81/0x350 [ 29.019267] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.019271] ? __lock_acquire+0x664/0x3e00 [ 29.019274] ? check_noncircular+0x20/0x20 [ 29.019281] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.019285] ? lock_acquire+0x1d5/0x580 [ 29.019288] ? lock_acquire+0x1d5/0x580 [ 29.019291] ? ep_free+0xf4/0x320 [ 29.019295] ? lock_release+0xa40/0xa40 [ 29.019299] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.019302] ? print_irqtrace_events+0x270/0x270 [ 29.019305] ? print_irqtrace_events+0x270/0x270 [ 29.019309] ? rcu_note_context_switch+0x710/0x710 [ 29.019313] ? __might_sleep+0x95/0x190 [ 29.019316] ? ep_free+0xf4/0x320 [ 29.019319] ? __mutex_lock+0x16f/0x1a80 [ 29.019322] ? ep_free+0xf4/0x320 [ 29.019326] ? print_irqtrace_events+0x270/0x270 [ 29.019329] ? ep_free+0xf4/0x320 [ 29.019333] lock_acquire+0x1d5/0x580 [ 29.019336] ? lock_acquire+0x1d5/0x580 [ 29.019340] ? remove_wait_queue+0x81/0x350 [ 29.019345] ? lock_release+0xa40/0xa40 [ 29.019352] ? lock_acquire+0x1d5/0x580 [ 29.019356] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.019360] ? lock_acquire+0x1d5/0x580 [ 29.019365] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.019371] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.019375] ? remove_wait_queue+0x81/0x350 [ 29.019378] remove_wait_queue+0x81/0x350 [ 29.019382] ? depot_save_stack+0x3b5/0x490 [ 29.019386] ? add_wait_queue+0x290/0x290 [ 29.019389] ? rcutorture_record_progress+0x10/0x10 [ 29.019393] ? lock_release+0xa40/0xa40 [ 29.019398] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.019401] ? __kernel_text_address+0xd/0x40 [ 29.019406] ? clear_tfile_check_list+0x370/0x370 [ 29.019410] ? check_noncircular+0x20/0x20 [ 29.019414] ? locks_remove_file+0x3fa/0x5a0 [ 29.019419] ep_free+0x13f/0x320 [ 29.019422] ? ep_remove+0x800/0x800 [ 29.019426] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.019430] ? ep_free+0x320/0x320 [ 29.019433] ep_eventpoll_release+0x44/0x60 [ 29.019436] __fput+0x327/0x7e0 [ 29.019441] ? fput+0x140/0x140 [ 29.019444] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.019449] ____fput+0x15/0x20 [ 29.019453] task_work_run+0x199/0x270 [ 29.019457] ? task_work_cancel+0x210/0x210 [ 29.019460] ? _raw_spin_unlock+0x22/0x30 [ 29.019464] ? switch_task_namespaces+0x87/0xc0 [ 29.019468] do_exit+0x9bb/0x1ad0 [ 29.019472] ? __handle_mm_fault+0x2330/0x3ce0 [ 29.019476] ? mm_update_next_owner+0x930/0x930 [ 29.019481] ? do_raw_spin_trylock+0x190/0x190 [ 29.019485] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.019489] ? check_noncircular+0x20/0x20 [ 29.019493] ? _raw_spin_unlock+0x22/0x30 [ 29.019496] ? __handle_mm_fault+0x80e/0x3ce0 [ 29.019500] ? check_noncircular+0x20/0x20 [ 29.019503] ? __pmd_alloc+0x4e0/0x4e0 [ 29.019506] ? lock_downgrade+0x980/0x980 [ 29.019511] ? find_held_lock+0x35/0x1d0 [ 29.019516] ? handle_mm_fault+0x248/0x8d0 [ 29.019520] ? find_held_lock+0x35/0x1d0 [ 29.019525] ? __do_page_fault+0x5f7/0xc90 [ 29.019528] ? lock_downgrade+0x980/0x980 [ 29.019533] ? handle_mm_fault+0x410/0x8d0 [ 29.019536] ? down_read_trylock+0xdb/0x170 [ 29.019539] ? __do_page_fault+0x32d/0xc90 [ 29.019543] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 29.019546] ? vmacache_find+0x5f/0x280 [ 29.019551] do_group_exit+0x149/0x400 [ 29.019555] ? __do_page_fault+0x3d6/0xc90 [ 29.019558] ? SyS_exit+0x30/0x30 [ 29.019562] ? do_fast_syscall_32+0x156/0xf9d [ 29.019566] ? do_group_exit+0x400/0x400 [ 29.019569] SyS_exit_group+0x1d/0x20 [ 29.019573] do_fast_syscall_32+0x3ee/0xf9d [ 29.019578] ? do_int80_syscall_32+0x9d0/0x9d0 [ 29.019581] ? kasan_check_read+0x11/0x20 [ 29.019585] ? syscall_return_slowpath+0x550/0x550 [ 29.019589] ? SyS_rt_sigaction+0x94/0x1b0 [ 29.019593] ? SyS_sigprocmask+0x4b0/0x4b0 [ 29.019595] ? SyS_read+0x184/0x220 [ 29.019599] ? retint_user+0x18/0x18 [ 29.019603] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.019609] entry_SYSENTER_compat+0x54/0x63 [ 29.019611] RIP: 0023:0xf7fa2c79 [ 29.019613] RSP: 002b:00000000ff889f4c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.019616] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080f0298 [ 29.019618] RDX: 0000000000000000 RSI: 00000000080d9ad8 RDI: 00000000080f02a0 [ 29.019620] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.019621] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.019623] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.040790] Dumping ftrace buffer: [ 29.040794] (ftrace buffer empty) [ 29.040798] Kernel Offset: disabled [ 30.324054] Rebooting in 86400 seconds..