[....] Starting enhanced syslogd: rsyslogd[ 11.822891] audit: type=1400 audit(1516232467.368:5): avc: denied { syslog } for pid=3495 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: [ 16.569720] audit: type=1400 audit(1516232472.115:6): avc: denied { map } for pid=3635 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.14' (ECDSA) to the list of known hosts. executing program [ 37.821688] audit: type=1400 audit(1516232493.367:7): avc: denied { map } for pid=3654 comm="syzkaller742107" path="/root/syzkaller742107667" 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 [ 37.826063] ================================================================== [ 37.826077] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 37.826081] Read of size 8 at addr ffff8801bbf46b30 by task syzkaller742107/3654 [ 37.826082] [ 37.826088] CPU: 0 PID: 3654 Comm: syzkaller742107 Not tainted 4.15.0-rc8+ #266 [ 37.826090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.826092] Call Trace: [ 37.826103] dump_stack+0x194/0x257 [ 37.826108] ? arch_local_irq_restore+0x53/0x53 [ 37.826114] ? show_regs_print_info+0x18/0x18 [ 37.826118] ? print_irqtrace_events+0x270/0x270 [ 37.826122] ? __lock_acquire+0x664/0x3e00 [ 37.826126] ? __lock_acquire+0x3d4d/0x3e00 [ 37.826133] print_address_description+0x73/0x250 [ 37.826137] ? __lock_acquire+0x3d4d/0x3e00 [ 37.826141] kasan_report+0x25b/0x340 [ 37.826146] __asan_report_load8_noabort+0x14/0x20 [ 37.826149] __lock_acquire+0x3d4d/0x3e00 [ 37.826153] ? __lock_acquire+0x664/0x3e00 [ 37.826156] ? lock_downgrade+0x980/0x980 [ 37.826159] ? lock_downgrade+0x980/0x980 [ 37.826169] ? remove_wait_queue+0x81/0x350 [ 37.826175] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.826178] ? __lock_acquire+0x664/0x3e00 [ 37.826182] ? check_noncircular+0x20/0x20 [ 37.826189] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.826194] ? lock_acquire+0x1d5/0x580 [ 37.826197] ? lock_acquire+0x1d5/0x580 [ 37.826203] ? ep_free+0xf4/0x320 [ 37.826208] ? lock_release+0xa40/0xa40 [ 37.826214] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.826217] ? print_irqtrace_events+0x270/0x270 [ 37.826225] ? rcu_note_context_switch+0x710/0x710 [ 37.826229] ? __might_sleep+0x95/0x190 [ 37.826233] ? ep_free+0xf4/0x320 [ 37.826238] ? __mutex_lock+0x16f/0x1a80 [ 37.826241] ? ep_free+0xf4/0x320 [ 37.826246] ? print_irqtrace_events+0x270/0x270 [ 37.826248] ? ep_free+0xf4/0x320 [ 37.826254] lock_acquire+0x1d5/0x580 [ 37.826257] ? lock_acquire+0x1d5/0x580 [ 37.826260] ? remove_wait_queue+0x81/0x350 [ 37.826264] ? __lock_acquire+0x664/0x3e00 [ 37.826268] ? lock_release+0xa40/0xa40 [ 37.826274] ? lock_acquire+0x1d5/0x580 [ 37.826277] ? lock_acquire+0x1d5/0x580 [ 37.826281] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 37.826286] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.826290] ? remove_wait_queue+0x81/0x350 [ 37.826293] remove_wait_queue+0x81/0x350 [ 37.826298] ? add_wait_queue+0x290/0x290 [ 37.826302] ? rcutorture_record_progress+0x10/0x10 [ 37.826308] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 37.826313] ? __kernel_text_address+0xd/0x40 [ 37.826320] ? clear_tfile_check_list+0x370/0x370 [ 37.826327] ? check_noncircular+0x20/0x20 [ 37.826334] ? locks_remove_file+0x3fa/0x5a0 [ 37.826340] ep_free+0x13f/0x320 [ 37.826344] ? ep_remove+0x800/0x800 [ 37.826347] ? fsnotify_first_mark+0x2b0/0x2b0 [ 37.826352] ? ep_free+0x320/0x320 [ 37.826356] ep_eventpoll_release+0x44/0x60 [ 37.826363] __fput+0x327/0x7e0 [ 37.826368] ? fput+0x140/0x140 [ 37.826372] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.826378] ____fput+0x15/0x20 [ 37.826382] task_work_run+0x199/0x270 [ 37.826386] ? task_work_cancel+0x210/0x210 [ 37.826391] ? _raw_spin_unlock+0x22/0x30 [ 37.826395] ? switch_task_namespaces+0x87/0xc0 [ 37.826402] do_exit+0x9bb/0x1ad0 [ 37.826409] ? binder_ioctl+0x4a1/0x1417 [ 37.826413] ? mm_update_next_owner+0x930/0x930 [ 37.826418] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.826426] ? avc_ss_reset+0x110/0x110 [ 37.826429] ? mutex_unlock+0xd/0x10 [ 37.826433] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 37.826445] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.826449] ? up_read+0x1a/0x40 [ 37.826453] ? rcu_note_context_switch+0x710/0x710 [ 37.826458] ? __fd_install+0x288/0x740 [ 37.826464] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.826468] ? do_vfs_ioctl+0x486/0x1520 [ 37.826471] ? _cond_resched+0x14/0x30 [ 37.826476] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.826481] ? selinux_capable+0x40/0x40 [ 37.826485] ? __alloc_fd+0x750/0x750 [ 37.826490] do_group_exit+0x149/0x400 [ 37.826494] ? SyS_exit+0x30/0x30 [ 37.826498] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.826506] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.826511] SyS_exit_group+0x1d/0x20 [ 37.826516] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.826520] RIP: 0033:0x4429f8 [ 37.826522] RSP: 002b:00007ffdb2692ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.826526] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 37.826528] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.826531] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.826533] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 37.826535] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 37.826541] [ 37.826543] Allocated by task 3654: [ 37.826547] save_stack+0x43/0xd0 [ 37.826550] kasan_kmalloc+0xad/0xe0 [ 37.826553] kmem_cache_alloc_trace+0x136/0x750 [ 37.826557] binder_get_thread+0x1cf/0x870 [ 37.826560] binder_poll+0x8c/0x390 [ 37.826563] ep_item_poll.isra.10+0xec/0x320 [ 37.826565] ep_insert+0x6a3/0x1b10 [ 37.826568] SyS_epoll_ctl+0x12e4/0x1ab0 [ 37.826572] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.826573] [ 37.826574] Freed by task 3654: [ 37.826577] save_stack+0x43/0xd0 [ 37.826579] kasan_slab_free+0x71/0xc0 [ 37.826582] kfree+0xd6/0x260 [ 37.826585] binder_thread_dec_tmpref+0x27f/0x310 [ 37.826588] binder_thread_release+0x27d/0x540 [ 37.826591] binder_ioctl+0xc02/0x1417 [ 37.826594] do_vfs_ioctl+0x1b1/0x1520 [ 37.826596] SyS_ioctl+0x8f/0xc0 [ 37.826600] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.826601] [ 37.826603] The buggy address belongs to the object at ffff8801bbf46a80 [ 37.826603] which belongs to the cache kmalloc-512 of size 512 [ 37.826606] The buggy address is located 176 bytes inside of [ 37.826606] 512-byte region [ffff8801bbf46a80, ffff8801bbf46c80) [ 37.826607] The buggy address belongs to the page: [ 37.826611] page:ffffea0006efd180 count:1 mapcount:0 mapping:ffff8801bbf46080 index:0x0 [ 37.826615] flags: 0x2fffc0000000100(slab) [ 37.826621] raw: 02fffc0000000100 ffff8801bbf46080 0000000000000000 0000000100000006 [ 37.826625] raw: ffffea0006efd620 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 37.826627] page dumped because: kasan: bad access detected [ 37.826627] [ 37.826628] Memory state around the buggy address: [ 37.826631] ffff8801bbf46a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.826634] ffff8801bbf46a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.826636] >ffff8801bbf46b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.826638] ^ [ 37.826640] ffff8801bbf46b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.826642] ffff8801bbf46c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.826643] ================================================================== [ 37.826645] Disabling lock debugging due to kernel taint [ 37.826648] Kernel panic - not syncing: panic_on_warn set ... [ 37.826648] [ 37.826652] CPU: 0 PID: 3654 Comm: syzkaller742107 Tainted: G B 4.15.0-rc8+ #266 [ 37.826654] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.826655] Call Trace: [ 37.826660] dump_stack+0x194/0x257 [ 37.826664] ? arch_local_irq_restore+0x53/0x53 [ 37.826668] ? kasan_end_report+0x32/0x50 [ 37.826672] ? lock_downgrade+0x980/0x980 [ 37.826678] ? vsnprintf+0x1ed/0x1900 [ 37.826682] ? __lock_acquire+0x3c50/0x3e00 [ 37.826686] panic+0x1e4/0x41c [ 37.826689] ? refcount_error_report+0x214/0x214 [ 37.826693] ? add_taint+0x40/0x50 [ 37.826696] ? add_taint+0x1c/0x50 [ 37.826700] ? __lock_acquire+0x3d4d/0x3e00 [ 37.826704] kasan_end_report+0x50/0x50 [ 37.826707] kasan_report+0x144/0x340 [ 37.826712] __asan_report_load8_noabort+0x14/0x20 [ 37.826715] __lock_acquire+0x3d4d/0x3e00 [ 37.826718] ? __lock_acquire+0x664/0x3e00 [ 37.826722] ? lock_downgrade+0x980/0x980 [ 37.826724] ? lock_downgrade+0x980/0x980 [ 37.826731] ? remove_wait_queue+0x81/0x350 [ 37.826737] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.826740] ? __lock_acquire+0x664/0x3e00 [ 37.826743] ? check_noncircular+0x20/0x20 [ 37.826750] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 37.826754] ? lock_acquire+0x1d5/0x580 [ 37.826758] ? lock_acquire+0x1d5/0x580 [ 37.826761] ? ep_free+0xf4/0x320 [ 37.826766] ? lock_release+0xa40/0xa40 [ 37.826770] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.826774] ? print_irqtrace_events+0x270/0x270 [ 37.826778] ? rcu_note_context_switch+0x710/0x710 [ 37.826782] ? __might_sleep+0x95/0x190 [ 37.826785] ? ep_free+0xf4/0x320 [ 37.826789] ? __mutex_lock+0x16f/0x1a80 [ 37.826792] ? ep_free+0xf4/0x320 [ 37.826796] ? print_irqtrace_events+0x270/0x270 [ 37.826798] ? ep_free+0xf4/0x320 [ 37.826803] lock_acquire+0x1d5/0x580 [ 37.826806] ? lock_acquire+0x1d5/0x580 [ 37.826810] ? remove_wait_queue+0x81/0x350 [ 37.826814] ? __lock_acquire+0x664/0x3e00 [ 37.826818] ? lock_release+0xa40/0xa40 [ 37.826823] ? lock_acquire+0x1d5/0x580 [ 37.826826] ? lock_acquire+0x1d5/0x580 [ 37.826829] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 37.826834] _raw_spin_lock_irqsave+0x96/0xc0 [ 37.826837] ? remove_wait_queue+0x81/0x350 [ 37.826841] remove_wait_queue+0x81/0x350 [ 37.826846] ? add_wait_queue+0x290/0x290 [ 37.826849] ? rcutorture_record_progress+0x10/0x10 [ 37.826855] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 37.826859] ? __kernel_text_address+0xd/0x40 [ 37.826863] ? clear_tfile_check_list+0x370/0x370 [ 37.826868] ? check_noncircular+0x20/0x20 [ 37.826872] ? locks_remove_file+0x3fa/0x5a0 [ 37.826878] ep_free+0x13f/0x320 [ 37.826881] ? ep_remove+0x800/0x800 [ 37.826884] ? fsnotify_first_mark+0x2b0/0x2b0 [ 37.826889] ? ep_free+0x320/0x320 [ 37.826892] ep_eventpoll_release+0x44/0x60 [ 37.826896] __fput+0x327/0x7e0 [ 37.826901] ? fput+0x140/0x140 [ 37.826905] ? _raw_spin_unlock_irq+0x27/0x70 [ 37.826909] ____fput+0x15/0x20 [ 37.826913] task_work_run+0x199/0x270 [ 37.826918] ? task_work_cancel+0x210/0x210 [ 37.826922] ? _raw_spin_unlock+0x22/0x30 [ 37.826925] ? switch_task_namespaces+0x87/0xc0 [ 37.826929] do_exit+0x9bb/0x1ad0 [ 37.826934] ? binder_ioctl+0x4a1/0x1417 [ 37.826937] ? mm_update_next_owner+0x930/0x930 [ 37.826942] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.826947] ? avc_ss_reset+0x110/0x110 [ 37.826950] ? mutex_unlock+0xd/0x10 [ 37.826954] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 37.826964] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 37.826966] ? up_read+0x1a/0x40 [ 37.826970] ? rcu_note_context_switch+0x710/0x710 [ 37.826973] ? __fd_install+0x288/0x740 [ 37.826979] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 37.826982] ? do_vfs_ioctl+0x486/0x1520 [ 37.826985] ? _cond_resched+0x14/0x30 [ 37.826989] ? ioctl_preallocate+0x2b0/0x2b0 [ 37.826993] ? selinux_capable+0x40/0x40 [ 37.826997] ? __alloc_fd+0x750/0x750 [ 37.827008] do_group_exit+0x149/0x400 [ 37.827012] ? SyS_exit+0x30/0x30 [ 37.827016] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 37.827020] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.827024] SyS_exit_group+0x1d/0x20 [ 37.827028] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 37.827030] RIP: 0033:0x4429f8 [ 37.827032] RSP: 002b:00007ffdb2692ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 37.827036] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 37.827038] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 37.827040] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 37.827041] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 37.827043] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 37.848086] Dumping ftrace buffer: [ 37.848091] (ftrace buffer empty) [ 37.848093] Kernel Offset: disabled [ 38.972260] Rebooting in 86400 seconds..