[....] Starting enhanced syslogd: rsyslogd[ 11.855075] audit: type=1400 audit(1514565262.664:5): avc: denied { syslog } for pid=2996 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: [ 16.221189] audit: type=1400 audit(1514565267.030: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.214' (ECDSA) to the list of known hosts. executing program [ 22.386493] audit: type=1400 audit(1514565273.196:7): avc: denied { map } for pid=3148 comm="syzkaller035041" path="/root/syzkaller035041579" 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 [ 22.393076] ================================================================== [ 22.393093] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.393099] Read of size 8 at addr ffff8801c88fc170 by task syzkaller035041/3148 [ 22.393100] [ 22.393107] CPU: 1 PID: 3148 Comm: syzkaller035041 Not tainted 4.15.0-rc5+ #240 [ 22.393111] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.393113] Call Trace: [ 22.393123] dump_stack+0x194/0x257 [ 22.393130] ? arch_local_irq_restore+0x53/0x53 [ 22.393138] ? show_regs_print_info+0x18/0x18 [ 22.393144] ? print_irqtrace_events+0x270/0x270 [ 22.393150] ? __lock_acquire+0x664/0x3e00 [ 22.393156] ? __lock_acquire+0x3d4d/0x3e00 [ 22.393165] print_address_description+0x73/0x250 [ 22.393171] ? __lock_acquire+0x3d4d/0x3e00 [ 22.393177] kasan_report+0x25b/0x340 [ 22.393185] __asan_report_load8_noabort+0x14/0x20 [ 22.393190] __lock_acquire+0x3d4d/0x3e00 [ 22.393196] ? __lock_acquire+0x664/0x3e00 [ 22.393201] ? lock_downgrade+0x980/0x980 [ 22.393206] ? lock_downgrade+0x980/0x980 [ 22.393215] ? remove_wait_queue+0x81/0x350 [ 22.393224] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.393230] ? __lock_acquire+0x664/0x3e00 [ 22.393236] ? check_noncircular+0x20/0x20 [ 22.393248] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.393255] ? lock_acquire+0x1d5/0x580 [ 22.393260] ? lock_acquire+0x1d5/0x580 [ 22.393267] ? ep_free+0xf4/0x320 [ 22.393275] ? lock_release+0xa40/0xa40 [ 22.393282] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.393288] ? print_irqtrace_events+0x270/0x270 [ 22.393295] ? rcu_note_context_switch+0x710/0x710 [ 22.393303] ? __might_sleep+0x95/0x190 [ 22.393308] ? ep_free+0xf4/0x320 [ 22.393314] ? __mutex_lock+0x16f/0x1a80 [ 22.393319] ? ep_free+0xf4/0x320 [ 22.393326] ? print_irqtrace_events+0x270/0x270 [ 22.393330] ? ep_free+0xf4/0x320 [ 22.393338] lock_acquire+0x1d5/0x580 [ 22.393343] ? lock_acquire+0x1d5/0x580 [ 22.393349] ? remove_wait_queue+0x81/0x350 [ 22.393355] ? __lock_acquire+0x664/0x3e00 [ 22.393362] ? lock_release+0xa40/0xa40 [ 22.393372] ? lock_acquire+0x1d5/0x580 [ 22.393377] ? lock_acquire+0x1d5/0x580 [ 22.393383] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.393390] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.393395] ? remove_wait_queue+0x81/0x350 [ 22.393402] remove_wait_queue+0x81/0x350 [ 22.393409] ? add_wait_queue+0x290/0x290 [ 22.393415] ? rcutorture_record_progress+0x10/0x10 [ 22.393424] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.393431] ? __kernel_text_address+0xd/0x40 [ 22.393439] ? clear_tfile_check_list+0x370/0x370 [ 22.393446] ? check_noncircular+0x20/0x20 [ 22.393455] ? locks_remove_file+0x3fa/0x5a0 [ 22.393463] ep_free+0x13f/0x320 [ 22.393469] ? ep_remove+0x800/0x800 [ 22.393476] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.393483] ? ep_free+0x320/0x320 [ 22.393489] ep_eventpoll_release+0x44/0x60 [ 22.393495] __fput+0x327/0x7e0 [ 22.393503] ? fput+0x140/0x140 [ 22.393509] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.393517] ____fput+0x15/0x20 [ 22.393523] task_work_run+0x199/0x270 [ 22.393530] ? task_work_cancel+0x210/0x210 [ 22.393536] ? _raw_spin_unlock+0x22/0x30 [ 22.393541] ? switch_task_namespaces+0x87/0xc0 [ 22.393550] do_exit+0x9bb/0x1ad0 [ 22.393559] ? binder_ioctl+0x511/0x1417 [ 22.393565] ? mm_update_next_owner+0x930/0x930 [ 22.393573] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.393584] ? avc_ss_reset+0x110/0x110 [ 22.393589] ? mutex_unlock+0xd/0x10 [ 22.393594] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.393613] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.393618] ? up_read+0x1a/0x40 [ 22.393624] ? rcu_note_context_switch+0x710/0x710 [ 22.393630] ? __fd_install+0x288/0x740 [ 22.393640] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.393646] ? do_vfs_ioctl+0x486/0x1520 [ 22.393652] ? _cond_resched+0x14/0x30 [ 22.393660] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.393667] ? selinux_capable+0x40/0x40 [ 22.393674] ? __alloc_fd+0x750/0x750 [ 22.393683] do_group_exit+0x149/0x400 [ 22.393689] ? SyS_exit+0x30/0x30 [ 22.393696] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.393704] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.393712] SyS_exit_group+0x1d/0x20 [ 22.393718] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.393723] RIP: 0033:0x442a48 [ 22.393726] RSP: 002b:00007ffd1800ad98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.393733] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 22.393737] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.393740] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.393743] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 22.393746] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 22.393754] [ 22.393757] Allocated by task 3148: [ 22.393763] save_stack+0x43/0xd0 [ 22.393767] kasan_kmalloc+0xad/0xe0 [ 22.393774] kmem_cache_alloc_trace+0x136/0x750 [ 22.393780] binder_get_thread+0x1cf/0x870 [ 22.393784] binder_poll+0x8c/0x390 [ 22.393789] ep_item_poll.isra.10+0xec/0x320 [ 22.393793] ep_insert+0x6a3/0x1b10 [ 22.393798] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.393803] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.393804] [ 22.393806] Freed by task 3148: [ 22.393810] save_stack+0x43/0xd0 [ 22.393815] kasan_slab_free+0x71/0xc0 [ 22.393819] kfree+0xd6/0x260 [ 22.393823] binder_thread_dec_tmpref+0x27f/0x310 [ 22.393828] binder_thread_release+0x27d/0x540 [ 22.393833] binder_ioctl+0xc02/0x1417 [ 22.393838] do_vfs_ioctl+0x1b1/0x1520 [ 22.393843] SyS_ioctl+0x8f/0xc0 [ 22.393848] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.393850] [ 22.393854] The buggy address belongs to the object at ffff8801c88fc0c0 [ 22.393854] which belongs to the cache kmalloc-512 of size 512 [ 22.393858] The buggy address is located 176 bytes inside of [ 22.393858] 512-byte region [ffff8801c88fc0c0, ffff8801c88fc2c0) [ 22.393860] The buggy address belongs to the page: [ 22.393866] page:00000000851f4e6b count:1 mapcount:0 mapping:0000000001b086b1 index:0x0 [ 22.393871] flags: 0x2fffc0000000100(slab) [ 22.393879] raw: 02fffc0000000100 ffff8801c88fc0c0 0000000000000000 0000000100000006 [ 22.393886] raw: ffffea000726d660 ffffea0007224060 ffff8801db000940 0000000000000000 [ 22.393888] page dumped because: kasan: bad access detected [ 22.393889] [ 22.393891] Memory state around the buggy address: [ 22.393896] ffff8801c88fc000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.393900] ffff8801c88fc080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 22.393905] >ffff8801c88fc100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.393907] ^ [ 22.393911] ffff8801c88fc180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.393915] ffff8801c88fc200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.393917] ================================================================== [ 22.393919] Disabling lock debugging due to kernel taint [ 22.393923] Kernel panic - not syncing: panic_on_warn set ... [ 22.393923] [ 22.393929] CPU: 1 PID: 3148 Comm: syzkaller035041 Tainted: G B 4.15.0-rc5+ #240 [ 22.393932] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.393934] Call Trace: [ 22.393939] dump_stack+0x194/0x257 [ 22.393946] ? arch_local_irq_restore+0x53/0x53 [ 22.393951] ? kasan_end_report+0x32/0x50 [ 22.393958] ? lock_downgrade+0x980/0x980 [ 22.393964] ? vsnprintf+0x1ed/0x1900 [ 22.393970] ? __lock_acquire+0x3cd0/0x3e00 [ 22.393975] panic+0x1e4/0x41c [ 22.393981] ? refcount_error_report+0x214/0x214 [ 22.393988] ? add_taint+0x40/0x50 [ 22.393993] ? add_taint+0x1c/0x50 [ 22.394006] ? __lock_acquire+0x3d4d/0x3e00 [ 22.394011] kasan_end_report+0x50/0x50 [ 22.394017] kasan_report+0x144/0x340 [ 22.394024] __asan_report_load8_noabort+0x14/0x20 [ 22.394030] __lock_acquire+0x3d4d/0x3e00 [ 22.394035] ? __lock_acquire+0x664/0x3e00 [ 22.394041] ? lock_downgrade+0x980/0x980 [ 22.394046] ? lock_downgrade+0x980/0x980 [ 22.394054] ? remove_wait_queue+0x81/0x350 [ 22.394062] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.394069] ? __lock_acquire+0x664/0x3e00 [ 22.394074] ? check_noncircular+0x20/0x20 [ 22.394086] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.394092] ? lock_acquire+0x1d5/0x580 [ 22.394098] ? lock_acquire+0x1d5/0x580 [ 22.394103] ? ep_free+0xf4/0x320 [ 22.394111] ? lock_release+0xa40/0xa40 [ 22.394117] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.394122] ? print_irqtrace_events+0x270/0x270 [ 22.394129] ? rcu_note_context_switch+0x710/0x710 [ 22.394136] ? __might_sleep+0x95/0x190 [ 22.394141] ? ep_free+0xf4/0x320 [ 22.394146] ? __mutex_lock+0x16f/0x1a80 [ 22.394150] ? ep_free+0xf4/0x320 [ 22.394157] ? print_irqtrace_events+0x270/0x270 [ 22.394162] ? ep_free+0xf4/0x320 [ 22.394170] lock_acquire+0x1d5/0x580 [ 22.394175] ? lock_acquire+0x1d5/0x580 [ 22.394180] ? remove_wait_queue+0x81/0x350 [ 22.394186] ? __lock_acquire+0x664/0x3e00 [ 22.394193] ? lock_release+0xa40/0xa40 [ 22.394202] ? lock_acquire+0x1d5/0x580 [ 22.394207] ? lock_acquire+0x1d5/0x580 [ 22.394213] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.394220] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.394225] ? remove_wait_queue+0x81/0x350 [ 22.394231] remove_wait_queue+0x81/0x350 [ 22.394239] ? add_wait_queue+0x290/0x290 [ 22.394245] ? rcutorture_record_progress+0x10/0x10 [ 22.394254] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.394260] ? __kernel_text_address+0xd/0x40 [ 22.394268] ? clear_tfile_check_list+0x370/0x370 [ 22.394275] ? check_noncircular+0x20/0x20 [ 22.394282] ? locks_remove_file+0x3fa/0x5a0 [ 22.394291] ep_free+0x13f/0x320 [ 22.394296] ? ep_remove+0x800/0x800 [ 22.394302] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.394310] ? ep_free+0x320/0x320 [ 22.394315] ep_eventpoll_release+0x44/0x60 [ 22.394320] __fput+0x327/0x7e0 [ 22.394328] ? fput+0x140/0x140 [ 22.394335] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.394342] ____fput+0x15/0x20 [ 22.394348] task_work_run+0x199/0x270 [ 22.394356] ? task_work_cancel+0x210/0x210 [ 22.394362] ? _raw_spin_unlock+0x22/0x30 [ 22.394367] ? switch_task_namespaces+0x87/0xc0 [ 22.394374] do_exit+0x9bb/0x1ad0 [ 22.394382] ? binder_ioctl+0x511/0x1417 [ 22.394388] ? mm_update_next_owner+0x930/0x930 [ 22.394395] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.394404] ? avc_ss_reset+0x110/0x110 [ 22.394409] ? mutex_unlock+0xd/0x10 [ 22.394415] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.394432] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.394437] ? up_read+0x1a/0x40 [ 22.394443] ? rcu_note_context_switch+0x710/0x710 [ 22.394449] ? __fd_install+0x288/0x740 [ 22.394458] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.394464] ? do_vfs_ioctl+0x486/0x1520 [ 22.394469] ? _cond_resched+0x14/0x30 [ 22.394477] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.394483] ? selinux_capable+0x40/0x40 [ 22.394490] ? __alloc_fd+0x750/0x750 [ 22.394498] do_group_exit+0x149/0x400 [ 22.394504] ? SyS_exit+0x30/0x30 [ 22.394510] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.394517] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.394524] SyS_exit_group+0x1d/0x20 [ 22.394530] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.394534] RIP: 0033:0x442a48 [ 22.394537] RSP: 002b:00007ffd1800ad98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.394542] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 22.394545] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.394549] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.394552] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 22.394556] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 22.412828] Dumping ftrace buffer: [ 22.412832] (ftrace buffer empty) [ 22.412835] Kernel Offset: disabled [ 23.536729] Rebooting in 86400 seconds..