[....] Starting enhanced syslogd: rsyslogd[ 10.161191] audit: type=1400 audit(1514658627.715:5): avc: denied { syslog } for pid=2998 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 file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 12.308733] audit: type=1400 audit(1514658629.863:6): avc: denied { map } for pid=3137 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.211' (ECDSA) to the list of known hosts. executing program [ 53.396833] audit: type=1400 audit(1514658670.951:7): avc: denied { map } for pid=3156 comm="syzkaller245411" path="/root/syzkaller245411665" 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 [ 53.400594] ================================================================== [ 53.400605] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 53.400610] Read of size 8 at addr ffff8801c9b648b8 by task syzkaller245411/3156 [ 53.400610] [ 53.400616] CPU: 0 PID: 3156 Comm: syzkaller245411 Not tainted 4.15.0-rc4-mm1+ #49 [ 53.400618] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.400620] Call Trace: [ 53.400627] dump_stack+0x194/0x257 [ 53.400632] ? arch_local_irq_restore+0x53/0x53 [ 53.400637] ? show_regs_print_info+0x18/0x18 [ 53.400641] ? print_irqtrace_events+0x270/0x270 [ 53.400645] ? __lock_acquire+0x664/0x3e00 [ 53.400649] ? __lock_acquire+0x3d4d/0x3e00 [ 53.400655] print_address_description+0x73/0x250 [ 53.400659] ? __lock_acquire+0x3d4d/0x3e00 [ 53.400663] kasan_report+0x23b/0x360 [ 53.400668] __asan_report_load8_noabort+0x14/0x20 [ 53.400671] __lock_acquire+0x3d4d/0x3e00 [ 53.400674] ? __lock_acquire+0x664/0x3e00 [ 53.400678] ? lock_downgrade+0x980/0x980 [ 53.400681] ? lock_downgrade+0x980/0x980 [ 53.400687] ? remove_wait_queue+0x81/0x350 [ 53.400693] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 53.400696] ? __lock_acquire+0x664/0x3e00 [ 53.400700] ? check_noncircular+0x20/0x20 [ 53.400708] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 53.400712] ? lock_acquire+0x1d5/0x580 [ 53.400715] ? lock_acquire+0x1d5/0x580 [ 53.400720] ? ep_free+0xf4/0x320 [ 53.400726] ? lock_release+0xa40/0xa40 [ 53.400731] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 53.400734] ? print_irqtrace_events+0x270/0x270 [ 53.400740] ? rcu_note_context_switch+0x710/0x710 [ 53.400744] ? __might_sleep+0x95/0x190 [ 53.400748] ? ep_free+0xf4/0x320 [ 53.400752] ? __mutex_lock+0x16f/0x1a80 [ 53.400755] ? ep_free+0xf4/0x320 [ 53.400759] ? print_irqtrace_events+0x270/0x270 [ 53.400762] ? ep_free+0xf4/0x320 [ 53.400767] lock_acquire+0x1d5/0x580 [ 53.400770] ? lock_acquire+0x1d5/0x580 [ 53.400774] ? remove_wait_queue+0x81/0x350 [ 53.400777] ? __lock_acquire+0x664/0x3e00 [ 53.400782] ? lock_release+0xa40/0xa40 [ 53.400788] ? lock_acquire+0x1d5/0x580 [ 53.400791] ? lock_acquire+0x1d5/0x580 [ 53.400794] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 53.400800] _raw_spin_lock_irqsave+0x96/0xc0 [ 53.400803] ? remove_wait_queue+0x81/0x350 [ 53.400807] remove_wait_queue+0x81/0x350 [ 53.400812] ? add_wait_queue+0x290/0x290 [ 53.400815] ? rcutorture_record_progress+0x10/0x10 [ 53.400821] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 53.400828] ? __kernel_text_address+0xd/0x40 [ 53.400832] ? clear_tfile_check_list+0x370/0x370 [ 53.400837] ? check_noncircular+0x20/0x20 [ 53.400843] ? locks_remove_file+0x3fa/0x5a0 [ 53.400849] ep_free+0x13f/0x320 [ 53.400852] ? ep_remove+0x800/0x800 [ 53.400856] ? fsnotify_first_mark+0x2b0/0x2b0 [ 53.400860] ? ep_free+0x320/0x320 [ 53.400864] ep_eventpoll_release+0x44/0x60 [ 53.400868] __fput+0x327/0x7e0 [ 53.400874] ? fput+0x140/0x140 [ 53.400877] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.400883] ____fput+0x15/0x20 [ 53.400887] task_work_run+0x199/0x270 [ 53.400891] ? task_work_cancel+0x210/0x210 [ 53.400895] ? _raw_spin_unlock+0x22/0x30 [ 53.400898] ? switch_task_namespaces+0x87/0xc0 [ 53.400904] do_exit+0x9bb/0x1ad0 [ 53.400909] ? binder_ioctl+0x551/0x1417 [ 53.400913] ? mm_update_next_owner+0x930/0x930 [ 53.400918] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 53.400924] ? avc_ss_reset+0x110/0x110 [ 53.400928] ? mutex_unlock+0xd/0x10 [ 53.400932] ? SyS_epoll_ctl+0x30a/0x1a80 [ 53.400944] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 53.400947] ? up_read+0x1a/0x40 [ 53.400951] ? rcu_note_context_switch+0x710/0x710 [ 53.400954] ? __fd_install+0x288/0x740 [ 53.400959] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 53.400963] ? do_vfs_ioctl+0x486/0x1520 [ 53.400967] ? _cond_resched+0x14/0x30 [ 53.400971] ? ioctl_preallocate+0x2b0/0x2b0 [ 53.400976] ? selinux_capable+0x40/0x40 [ 53.400980] ? __alloc_fd+0x750/0x750 [ 53.400985] do_group_exit+0x149/0x400 [ 53.400989] ? SyS_exit+0x30/0x30 [ 53.400993] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.400998] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.401007] SyS_exit_group+0x1d/0x20 [ 53.401011] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.401014] RIP: 0033:0x4429f8 [ 53.401016] RSP: 002b:00007fff72832bc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 53.401020] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 53.401022] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 53.401025] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 53.401027] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 53.401029] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 53.401034] [ 53.401036] Allocated by task 3156: [ 53.401040] save_stack+0x43/0xd0 [ 53.401042] kasan_kmalloc+0xad/0xe0 [ 53.401046] kmem_cache_alloc_trace+0x136/0x750 [ 53.401048] binder_get_thread+0x1cf/0x870 [ 53.401051] binder_poll+0x8c/0x390 [ 53.401054] ep_item_poll.isra.10+0xf2/0x320 [ 53.401057] ep_insert+0x6a2/0x1ac0 [ 53.401060] SyS_epoll_ctl+0x12bf/0x1a80 [ 53.401063] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.401063] [ 53.401065] Freed by task 3156: [ 53.401068] save_stack+0x43/0xd0 [ 53.401070] kasan_slab_free+0x71/0xc0 [ 53.401073] kfree+0xd6/0x260 [ 53.401076] binder_thread_dec_tmpref+0x27f/0x310 [ 53.401078] binder_thread_release+0x27d/0x540 [ 53.401081] binder_ioctl+0xc02/0x1417 [ 53.401083] do_vfs_ioctl+0x1b1/0x1520 [ 53.401086] SyS_ioctl+0x8f/0xc0 [ 53.401089] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.401089] [ 53.401092] The buggy address belongs to the object at ffff8801c9b64800 [ 53.401092] which belongs to the cache kmalloc-512 of size 512 [ 53.401095] The buggy address is located 184 bytes inside of [ 53.401095] 512-byte region [ffff8801c9b64800, ffff8801c9b64a00) [ 53.401096] The buggy address belongs to the page: [ 53.401099] page:ffffea000726d900 count:1 mapcount:0 mapping:ffff8801c9b64080 index:0x0 [ 53.401103] flags: 0x2fffc0000000100(slab) [ 53.401108] raw: 02fffc0000000100 ffff8801c9b64080 0000000000000000 0000000100000006 [ 53.401113] raw: ffffea0007230820 ffffea0007266aa0 ffff8801dac00940 0000000000000000 [ 53.401114] page dumped because: kasan: bad access detected [ 53.401115] [ 53.401116] Memory state around the buggy address: [ 53.401119] ffff8801c9b64780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 53.401126] ffff8801c9b64800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.401129] >ffff8801c9b64880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.401130] ^ [ 53.401133] ffff8801c9b64900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.401135] ffff8801c9b64980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 53.401137] ================================================================== [ 53.401138] Disabling lock debugging due to kernel taint [ 53.401141] Kernel panic - not syncing: panic_on_warn set ... [ 53.401141] [ 53.401144] CPU: 0 PID: 3156 Comm: syzkaller245411 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 53.401146] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.401147] Call Trace: [ 53.401151] dump_stack+0x194/0x257 [ 53.401155] ? arch_local_irq_restore+0x53/0x53 [ 53.401158] ? kasan_end_report+0x32/0x50 [ 53.401162] ? lock_downgrade+0x980/0x980 [ 53.401165] ? vsnprintf+0x1ed/0x1900 [ 53.401169] ? __lock_acquire+0x3c90/0x3e00 [ 53.401172] panic+0x1e4/0x41c [ 53.401176] ? refcount_error_report+0x214/0x214 [ 53.401180] ? add_taint+0x40/0x50 [ 53.401183] ? add_taint+0x1c/0x50 [ 53.401187] ? __lock_acquire+0x3d4d/0x3e00 [ 53.401190] kasan_end_report+0x50/0x50 [ 53.401194] kasan_report+0x148/0x360 [ 53.401198] __asan_report_load8_noabort+0x14/0x20 [ 53.401202] __lock_acquire+0x3d4d/0x3e00 [ 53.401205] ? __lock_acquire+0x664/0x3e00 [ 53.401208] ? lock_downgrade+0x980/0x980 [ 53.401211] ? lock_downgrade+0x980/0x980 [ 53.401215] ? remove_wait_queue+0x81/0x350 [ 53.401220] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 53.401224] ? __lock_acquire+0x664/0x3e00 [ 53.401227] ? check_noncircular+0x20/0x20 [ 53.401234] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 53.401238] ? lock_acquire+0x1d5/0x580 [ 53.401241] ? lock_acquire+0x1d5/0x580 [ 53.401244] ? ep_free+0xf4/0x320 [ 53.401249] ? lock_release+0xa40/0xa40 [ 53.401253] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 53.401256] ? print_irqtrace_events+0x270/0x270 [ 53.401260] ? rcu_note_context_switch+0x710/0x710 [ 53.401264] ? __might_sleep+0x95/0x190 [ 53.401267] ? ep_free+0xf4/0x320 [ 53.401270] ? __mutex_lock+0x16f/0x1a80 [ 53.401273] ? ep_free+0xf4/0x320 [ 53.401277] ? print_irqtrace_events+0x270/0x270 [ 53.401280] ? ep_free+0xf4/0x320 [ 53.401285] lock_acquire+0x1d5/0x580 [ 53.401288] ? lock_acquire+0x1d5/0x580 [ 53.401291] ? remove_wait_queue+0x81/0x350 [ 53.401294] ? __lock_acquire+0x664/0x3e00 [ 53.401299] ? lock_release+0xa40/0xa40 [ 53.401304] ? lock_acquire+0x1d5/0x580 [ 53.401307] ? lock_acquire+0x1d5/0x580 [ 53.401310] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 53.401314] _raw_spin_lock_irqsave+0x96/0xc0 [ 53.401318] ? remove_wait_queue+0x81/0x350 [ 53.401321] remove_wait_queue+0x81/0x350 [ 53.401326] ? add_wait_queue+0x290/0x290 [ 53.401329] ? rcutorture_record_progress+0x10/0x10 [ 53.401335] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 53.401339] ? __kernel_text_address+0xd/0x40 [ 53.401343] ? clear_tfile_check_list+0x370/0x370 [ 53.401347] ? check_noncircular+0x20/0x20 [ 53.401352] ? locks_remove_file+0x3fa/0x5a0 [ 53.401357] ep_free+0x13f/0x320 [ 53.401360] ? ep_remove+0x800/0x800 [ 53.401364] ? fsnotify_first_mark+0x2b0/0x2b0 [ 53.401368] ? ep_free+0x320/0x320 [ 53.401371] ep_eventpoll_release+0x44/0x60 [ 53.401375] __fput+0x327/0x7e0 [ 53.401379] ? fput+0x140/0x140 [ 53.401383] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.401388] ____fput+0x15/0x20 [ 53.401392] task_work_run+0x199/0x270 [ 53.401396] ? task_work_cancel+0x210/0x210 [ 53.401400] ? _raw_spin_unlock+0x22/0x30 [ 53.401404] ? switch_task_namespaces+0x87/0xc0 [ 53.401408] do_exit+0x9bb/0x1ad0 [ 53.401412] ? binder_ioctl+0x551/0x1417 [ 53.401415] ? mm_update_next_owner+0x930/0x930 [ 53.401420] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 53.401424] ? avc_ss_reset+0x110/0x110 [ 53.401428] ? mutex_unlock+0xd/0x10 [ 53.401431] ? SyS_epoll_ctl+0x30a/0x1a80 [ 53.401441] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 53.401444] ? up_read+0x1a/0x40 [ 53.401448] ? rcu_note_context_switch+0x710/0x710 [ 53.401451] ? __fd_install+0x288/0x740 [ 53.401456] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 53.401459] ? do_vfs_ioctl+0x486/0x1520 [ 53.401462] ? _cond_resched+0x14/0x30 [ 53.401466] ? ioctl_preallocate+0x2b0/0x2b0 [ 53.401470] ? selinux_capable+0x40/0x40 [ 53.401474] ? __alloc_fd+0x750/0x750 [ 53.401479] do_group_exit+0x149/0x400 [ 53.401483] ? SyS_exit+0x30/0x30 [ 53.401487] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.401490] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.401495] SyS_exit_group+0x1d/0x20 [ 53.401498] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.401500] RIP: 0033:0x4429f8 [ 53.401502] RSP: 002b:00007fff72832bc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 53.401506] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 53.401508] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 53.401510] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 53.401511] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 53.401513] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 53.422739] Dumping ftrace buffer: [ 53.422742] (ftrace buffer empty) [ 53.422744] Kernel Offset: disabled [ 54.545835] Rebooting in 86400 seconds..