[....] Starting enhanced syslogd: rsyslogd[ 12.174123] audit: type=1400 audit(1515541581.014:5): avc: denied { syslog } for pid=3348 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: [ 17.775124] audit: type=1400 audit(1515541586.615:6): avc: denied { map } for pid=3488 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.218' (ECDSA) to the list of known hosts. executing program [ 24.001584] audit: type=1400 audit(1515541592.842:7): avc: denied { map } for pid=3502 comm="syzkaller111429" path="/root/syzkaller111429809" 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 [ 24.005297] ================================================================== [ 24.005311] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.005315] Read of size 8 at addr ffff8801c70965b8 by task syzkaller111429/3502 [ 24.005316] [ 24.005321] CPU: 1 PID: 3502 Comm: syzkaller111429 Not tainted 4.15.0-rc6-mm1+ #52 [ 24.005323] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.005325] Call Trace: [ 24.005334] dump_stack+0x194/0x257 [ 24.005339] ? arch_local_irq_restore+0x53/0x53 [ 24.005347] ? show_regs_print_info+0x18/0x18 [ 24.005350] ? __lock_acquire+0x664/0x3e00 [ 24.005355] ? __lock_acquire+0x3d4d/0x3e00 [ 24.005363] print_address_description+0x73/0x250 [ 24.005367] ? __lock_acquire+0x3d4d/0x3e00 [ 24.005371] kasan_report+0x23b/0x360 [ 24.005376] __asan_report_load8_noabort+0x14/0x20 [ 24.005380] __lock_acquire+0x3d4d/0x3e00 [ 24.005384] ? lock_downgrade+0x980/0x980 [ 24.005392] ? remove_wait_queue+0x81/0x350 [ 24.005398] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.005402] ? __lock_acquire+0x664/0x3e00 [ 24.005405] ? check_noncircular+0x20/0x20 [ 24.005413] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.005418] ? lock_acquire+0x1d5/0x580 [ 24.005421] ? lock_acquire+0x1d5/0x580 [ 24.005426] ? ep_free+0xf4/0x320 [ 24.005430] ? check_noncircular+0x20/0x20 [ 24.005435] ? lock_release+0xa40/0xa40 [ 24.005440] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.005444] ? print_irqtrace_events+0x270/0x270 [ 24.005451] ? rcu_note_context_switch+0x710/0x710 [ 24.005455] ? __might_sleep+0x95/0x190 [ 24.005459] ? ep_free+0xf4/0x320 [ 24.005466] ? __mutex_lock+0x16f/0x1a80 [ 24.005469] ? ep_free+0xf4/0x320 [ 24.005473] ? print_irqtrace_events+0x270/0x270 [ 24.005476] ? ep_free+0xf4/0x320 [ 24.005481] lock_acquire+0x1d5/0x580 [ 24.005484] ? lock_acquire+0x1d5/0x580 [ 24.005488] ? remove_wait_queue+0x81/0x350 [ 24.005492] ? __lock_acquire+0x664/0x3e00 [ 24.005496] ? lock_release+0xa40/0xa40 [ 24.005502] ? lock_acquire+0x1d5/0x580 [ 24.005505] ? lock_acquire+0x1d5/0x580 [ 24.005509] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.005514] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.005517] ? remove_wait_queue+0x81/0x350 [ 24.005521] remove_wait_queue+0x81/0x350 [ 24.005526] ? rcutorture_record_progress+0x10/0x10 [ 24.005530] ? add_wait_queue+0x290/0x290 [ 24.005533] ? rcutorture_record_progress+0x10/0x10 [ 24.005539] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.005545] ? unwind_get_return_address+0x61/0xa0 [ 24.005550] ? clear_tfile_check_list+0x370/0x370 [ 24.005555] ? check_noncircular+0x20/0x20 [ 24.005560] ? locks_remove_file+0x3fa/0x5a0 [ 24.005565] ep_free+0x13f/0x320 [ 24.005569] ? ep_remove+0x800/0x800 [ 24.005573] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.005578] ? ep_free+0x320/0x320 [ 24.005581] ep_eventpoll_release+0x44/0x60 [ 24.005585] __fput+0x327/0x7e0 [ 24.005590] ? fput+0x140/0x140 [ 24.005594] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.005599] ____fput+0x15/0x20 [ 24.005602] task_work_run+0x199/0x270 [ 24.005607] ? task_work_cancel+0x210/0x210 [ 24.005611] ? _raw_spin_unlock+0x22/0x30 [ 24.005616] ? switch_task_namespaces+0x87/0xc0 [ 24.005622] do_exit+0x9bb/0x1ad0 [ 24.005628] ? binder_ioctl+0x481/0x1417 [ 24.005632] ? mm_update_next_owner+0x930/0x930 [ 24.005637] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.005644] ? avc_ss_reset+0x110/0x110 [ 24.005648] ? mutex_unlock+0xd/0x10 [ 24.005656] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.005668] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.005672] ? up_read+0x1a/0x40 [ 24.005676] ? rcu_note_context_switch+0x710/0x710 [ 24.005681] ? __fd_install+0x288/0x740 [ 24.005687] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.005692] ? do_vfs_ioctl+0x486/0x1520 [ 24.005695] ? _cond_resched+0x14/0x30 [ 24.005700] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.005706] ? selinux_capable+0x40/0x40 [ 24.005710] ? __alloc_fd+0x750/0x750 [ 24.005715] do_group_exit+0x149/0x400 [ 24.005720] ? SyS_exit+0x30/0x30 [ 24.005724] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.005731] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.005736] SyS_exit_group+0x1d/0x20 [ 24.005740] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.005743] RIP: 0033:0x442a08 [ 24.005745] RSP: 002b:00007ffc3e78dad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.005750] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 24.005752] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.005754] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.005757] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 24.005759] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 24.005764] [ 24.005766] Allocated by task 3502: [ 24.005771] save_stack+0x43/0xd0 [ 24.005774] kasan_kmalloc+0xad/0xe0 [ 24.005778] kmem_cache_alloc_trace+0x136/0x750 [ 24.005781] binder_get_thread+0x1cf/0x870 [ 24.005783] binder_poll+0x8c/0x390 [ 24.005786] ep_item_poll.isra.10+0xf2/0x320 [ 24.005789] ep_insert+0x6a2/0x1ac0 [ 24.005791] SyS_epoll_ctl+0x12bf/0x1a80 [ 24.005794] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.005795] [ 24.005796] Freed by task 3502: [ 24.005799] save_stack+0x43/0xd0 [ 24.005802] __kasan_slab_free+0x11a/0x170 [ 24.005806] kasan_slab_free+0xe/0x10 [ 24.005808] kfree+0xd9/0x260 [ 24.005811] binder_thread_dec_tmpref+0x27f/0x310 [ 24.005814] binder_thread_release+0x27d/0x540 [ 24.005817] binder_ioctl+0xc02/0x1417 [ 24.005820] do_vfs_ioctl+0x1b1/0x1520 [ 24.005823] SyS_ioctl+0x8f/0xc0 [ 24.005825] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.005826] [ 24.005829] The buggy address belongs to the object at ffff8801c7096500 [ 24.005829] which belongs to the cache kmalloc-512 of size 512 [ 24.005832] The buggy address is located 184 bytes inside of [ 24.005832] 512-byte region [ffff8801c7096500, ffff8801c7096700) [ 24.005833] The buggy address belongs to the page: [ 24.005836] page:ffffea00071c2580 count:1 mapcount:0 mapping:ffff8801c7096000 index:0x0 [ 24.005839] flags: 0x2fffc0000000100(slab) [ 24.005845] raw: 02fffc0000000100 ffff8801c7096000 0000000000000000 0000000100000006 [ 24.005849] raw: ffffea00071dd5a0 ffffea000737bae0 ffff8801dac00940 0000000000000000 [ 24.005850] page dumped because: kasan: bad access detected [ 24.005851] [ 24.005852] Memory state around the buggy address: [ 24.005855] ffff8801c7096480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.005858] ffff8801c7096500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.005860] >ffff8801c7096580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.005862] ^ [ 24.005864] ffff8801c7096600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.005867] ffff8801c7096680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.005868] ================================================================== [ 24.005869] Disabling lock debugging due to kernel taint [ 24.005872] Kernel panic - not syncing: panic_on_warn set ... [ 24.005872] [ 24.005876] CPU: 1 PID: 3502 Comm: syzkaller111429 Tainted: G B 4.15.0-rc6-mm1+ #52 [ 24.005878] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.005878] Call Trace: [ 24.005883] dump_stack+0x194/0x257 [ 24.005887] ? arch_local_irq_restore+0x53/0x53 [ 24.005891] ? kasan_end_report+0x32/0x50 [ 24.005895] ? lock_downgrade+0x980/0x980 [ 24.005898] ? vsnprintf+0x1ed/0x1900 [ 24.005902] ? __lock_acquire+0x3c50/0x3e00 [ 24.005906] panic+0x1e4/0x41c [ 24.005909] ? refcount_error_report+0x214/0x214 [ 24.005914] ? add_taint+0x40/0x50 [ 24.005917] ? add_taint+0x1c/0x50 [ 24.005921] ? __lock_acquire+0x3d4d/0x3e00 [ 24.005925] kasan_end_report+0x50/0x50 [ 24.005928] kasan_report+0x148/0x360 [ 24.005933] __asan_report_load8_noabort+0x14/0x20 [ 24.005937] __lock_acquire+0x3d4d/0x3e00 [ 24.005941] ? lock_downgrade+0x980/0x980 [ 24.005946] ? remove_wait_queue+0x81/0x350 [ 24.005951] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.005955] ? __lock_acquire+0x664/0x3e00 [ 24.005958] ? check_noncircular+0x20/0x20 [ 24.005965] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.005969] ? lock_acquire+0x1d5/0x580 [ 24.005972] ? lock_acquire+0x1d5/0x580 [ 24.005975] ? ep_free+0xf4/0x320 [ 24.005979] ? check_noncircular+0x20/0x20 [ 24.005983] ? lock_release+0xa40/0xa40 [ 24.005987] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.005991] ? print_irqtrace_events+0x270/0x270 [ 24.005995] ? rcu_note_context_switch+0x710/0x710 [ 24.005999] ? __might_sleep+0x95/0x190 [ 24.006005] ? ep_free+0xf4/0x320 [ 24.006009] ? __mutex_lock+0x16f/0x1a80 [ 24.006011] ? ep_free+0xf4/0x320 [ 24.006015] ? print_irqtrace_events+0x270/0x270 [ 24.006018] ? ep_free+0xf4/0x320 [ 24.006023] lock_acquire+0x1d5/0x580 [ 24.006026] ? lock_acquire+0x1d5/0x580 [ 24.006030] ? remove_wait_queue+0x81/0x350 [ 24.006033] ? __lock_acquire+0x664/0x3e00 [ 24.006038] ? lock_release+0xa40/0xa40 [ 24.006043] ? lock_acquire+0x1d5/0x580 [ 24.006046] ? lock_acquire+0x1d5/0x580 [ 24.006049] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.006053] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.006057] ? remove_wait_queue+0x81/0x350 [ 24.006061] remove_wait_queue+0x81/0x350 [ 24.006065] ? rcutorture_record_progress+0x10/0x10 [ 24.006069] ? add_wait_queue+0x290/0x290 [ 24.006073] ? rcutorture_record_progress+0x10/0x10 [ 24.006079] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.006082] ? unwind_get_return_address+0x61/0xa0 [ 24.006087] ? clear_tfile_check_list+0x370/0x370 [ 24.006091] ? check_noncircular+0x20/0x20 [ 24.006095] ? locks_remove_file+0x3fa/0x5a0 [ 24.006100] ep_free+0x13f/0x320 [ 24.006103] ? ep_remove+0x800/0x800 [ 24.006107] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.006111] ? ep_free+0x320/0x320 [ 24.006114] ep_eventpoll_release+0x44/0x60 [ 24.006117] __fput+0x327/0x7e0 [ 24.006122] ? fput+0x140/0x140 [ 24.006125] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.006129] ____fput+0x15/0x20 [ 24.006133] task_work_run+0x199/0x270 [ 24.006136] ? task_work_cancel+0x210/0x210 [ 24.006140] ? _raw_spin_unlock+0x22/0x30 [ 24.006144] ? switch_task_namespaces+0x87/0xc0 [ 24.006149] do_exit+0x9bb/0x1ad0 [ 24.006153] ? binder_ioctl+0x481/0x1417 [ 24.006157] ? mm_update_next_owner+0x930/0x930 [ 24.006161] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.006166] ? avc_ss_reset+0x110/0x110 [ 24.006170] ? mutex_unlock+0xd/0x10 [ 24.006173] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.006183] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.006186] ? up_read+0x1a/0x40 [ 24.006190] ? rcu_note_context_switch+0x710/0x710 [ 24.006193] ? __fd_install+0x288/0x740 [ 24.006199] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.006202] ? do_vfs_ioctl+0x486/0x1520 [ 24.006205] ? _cond_resched+0x14/0x30 [ 24.006210] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.006214] ? selinux_capable+0x40/0x40 [ 24.006218] ? __alloc_fd+0x750/0x750 [ 24.006223] do_group_exit+0x149/0x400 [ 24.006227] ? SyS_exit+0x30/0x30 [ 24.006231] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.006235] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.006239] SyS_exit_group+0x1d/0x20 [ 24.006242] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.006245] RIP: 0033:0x442a08 [ 24.006247] RSP: 002b:00007ffc3e78dad8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.006250] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000442a08 [ 24.006252] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.006254] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.006256] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a50 [ 24.006257] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 24.027478] Dumping ftrace buffer: [ 24.027482] (ftrace buffer empty) [ 24.027484] Kernel Offset: disabled [ 25.152827] Rebooting in 86400 seconds..