[....] Starting enhanced syslogd: rsyslogd[ 10.414694] audit: type=1400 audit(1514425878.290:5): avc: denied { syslog } for pid=2993 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.844003] audit: type=1400 audit(1514425883.719: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.0.44' (ECDSA) to the list of known hosts. executing program [ 30.391054] audit: type=1400 audit(1514425898.266:7): avc: denied { map } for pid=3151 comm="syzkaller105822" path="/root/syzkaller105822417" 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 [ 30.395635] ================================================================== [ 30.395644] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 30.395648] Read of size 8 at addr ffff8801ca5f05f8 by task syzkaller105822/3151 [ 30.395649] [ 30.395654] CPU: 0 PID: 3151 Comm: syzkaller105822 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 30.395657] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.395658] Call Trace: [ 30.395664] dump_stack+0x194/0x257 [ 30.395668] ? arch_local_irq_restore+0x53/0x53 [ 30.395674] ? show_regs_print_info+0x18/0x18 [ 30.395679] ? __lock_acquire+0x3d4d/0x3e00 [ 30.395685] print_address_description+0x73/0x250 [ 30.395689] ? __lock_acquire+0x3d4d/0x3e00 [ 30.395693] kasan_report+0x25b/0x340 [ 30.395698] __asan_report_load8_noabort+0x14/0x20 [ 30.395701] __lock_acquire+0x3d4d/0x3e00 [ 30.395705] ? print_irqtrace_events+0x270/0x270 [ 30.395710] ? unwind_get_return_address+0x61/0xa0 [ 30.395716] ? remove_wait_queue+0x81/0x350 [ 30.395722] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.395726] ? __lock_acquire+0x664/0x3e00 [ 30.395730] ? print_irqtrace_events+0x270/0x270 [ 30.395733] ? __lock_acquire+0x664/0x3e00 [ 30.395740] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.395745] ? __lock_acquire+0x664/0x3e00 [ 30.395749] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.395752] ? __lock_acquire+0x664/0x3e00 [ 30.395756] ? check_noncircular+0x20/0x20 [ 30.395760] ? check_noncircular+0x20/0x20 [ 30.395765] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.395768] ? __lock_acquire+0x664/0x3e00 [ 30.395772] ? check_noncircular+0x20/0x20 [ 30.395779] lock_acquire+0x1d5/0x580 [ 30.395782] ? lock_acquire+0x1d5/0x580 [ 30.395786] ? remove_wait_queue+0x81/0x350 [ 30.395791] ? lock_release+0xa40/0xa40 [ 30.395794] ? print_irqtrace_events+0x270/0x270 [ 30.395798] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.395808] ? lock_acquire+0x1d5/0x580 [ 30.395811] ? lock_acquire+0x1d5/0x580 [ 30.395816] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 30.395822] _raw_spin_lock_irqsave+0x96/0xc0 [ 30.395826] ? remove_wait_queue+0x81/0x350 [ 30.395830] remove_wait_queue+0x81/0x350 [ 30.395833] ? eventpoll_release_file+0xba/0x140 [ 30.395838] ? add_wait_queue+0x290/0x290 [ 30.395842] ? rcutorture_record_progress+0x10/0x10 [ 30.395848] ? mutex_lock_io_nested+0x1900/0x1900 [ 30.395853] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 30.395857] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.395862] ? clear_tfile_check_list+0x370/0x370 [ 30.395866] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.395871] ? rcutorture_record_progress+0x10/0x10 [ 30.395878] ? is_bpf_text_address+0xa4/0x120 [ 30.395883] ep_remove+0xcd/0x800 [ 30.395886] ? unwind_get_return_address+0x61/0xa0 [ 30.395891] ? ep_destroy_wakeup_source+0x240/0x240 [ 30.395894] ? check_noncircular+0x20/0x20 [ 30.395898] ? check_noncircular+0x20/0x20 [ 30.395904] ? fsnotify+0x7b3/0x1140 [ 30.395911] eventpoll_release_file+0xc5/0x140 [ 30.395917] __fput+0x5f1/0x7e0 [ 30.395921] ? fput+0x140/0x140 [ 30.395925] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.395930] ____fput+0x15/0x20 [ 30.395936] task_work_run+0x199/0x270 [ 30.395941] ? task_work_cancel+0x210/0x210 [ 30.395944] ? _raw_spin_unlock+0x22/0x30 [ 30.395949] ? switch_task_namespaces+0x87/0xc0 [ 30.395954] do_exit+0x9bb/0x1ad0 [ 30.395960] ? binder_ioctl+0x491/0x1417 [ 30.395964] ? mm_update_next_owner+0x930/0x930 [ 30.395968] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 30.395974] ? avc_ss_reset+0x110/0x110 [ 30.395978] ? mutex_unlock+0xd/0x10 [ 30.395982] ? SyS_epoll_ctl+0x30a/0x1a80 [ 30.395991] ? vmacache_update+0xfe/0x130 [ 30.395996] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.395999] ? up_read+0x1a/0x40 [ 30.396006] ? rcu_note_context_switch+0x710/0x710 [ 30.396012] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 30.396016] ? do_vfs_ioctl+0x486/0x1520 [ 30.396019] ? _cond_resched+0x14/0x30 [ 30.396023] ? ioctl_preallocate+0x2b0/0x2b0 [ 30.396028] ? selinux_capable+0x40/0x40 [ 30.396033] ? putname+0xf3/0x130 [ 30.396038] do_group_exit+0x149/0x400 [ 30.396042] ? SyS_exit+0x30/0x30 [ 30.396046] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.396051] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.396056] SyS_exit_group+0x1d/0x20 [ 30.396060] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 30.396063] RIP: 0033:0x4429f8 [ 30.396065] RSP: 002b:00007ffe9b8fdfd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 30.396069] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 30.396071] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 30.396073] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 30.396075] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 30.396077] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 30.396082] [ 30.396084] Allocated by task 3151: [ 30.396088] save_stack+0x43/0xd0 [ 30.396090] kasan_kmalloc+0xad/0xe0 [ 30.396094] kmem_cache_alloc_trace+0x136/0x750 [ 30.396096] binder_get_thread+0x1cf/0x870 [ 30.396099] binder_poll+0x8c/0x390 [ 30.396102] ep_item_poll.isra.10+0xf2/0x320 [ 30.396104] ep_insert+0x6a2/0x1ac0 [ 30.396107] SyS_epoll_ctl+0x12bf/0x1a80 [ 30.396110] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 30.396111] [ 30.396112] Freed by task 3151: [ 30.396115] save_stack+0x43/0xd0 [ 30.396118] kasan_slab_free+0x71/0xc0 [ 30.396120] kfree+0xd6/0x260 [ 30.396123] binder_thread_dec_tmpref+0x27f/0x310 [ 30.396126] binder_thread_release+0x27d/0x540 [ 30.396129] binder_ioctl+0xc02/0x1417 [ 30.396131] do_vfs_ioctl+0x1b1/0x1520 [ 30.396134] SyS_ioctl+0x8f/0xc0 [ 30.396137] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 30.396137] [ 30.396140] The buggy address belongs to the object at ffff8801ca5f0540 [ 30.396140] which belongs to the cache kmalloc-512 of size 512 [ 30.396143] The buggy address is located 184 bytes inside of [ 30.396143] 512-byte region [ffff8801ca5f0540, ffff8801ca5f0740) [ 30.396144] The buggy address belongs to the page: [ 30.396148] page:00000000ec7ca0f0 count:1 mapcount:0 mapping:00000000f6a111b3 index:0xffff8801ca5f0a40 [ 30.396151] flags: 0x2fffc0000000100(slab) [ 30.396157] raw: 02fffc0000000100 ffff8801ca5f0040 ffff8801ca5f0a40 0000000100000004 [ 30.396162] raw: ffffea0007299620 ffffea0007297de0 ffff8801dac00940 0000000000000000 [ 30.396163] page dumped because: kasan: bad access detected [ 30.396164] [ 30.396165] Memory state around the buggy address: [ 30.396168] ffff8801ca5f0480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.396170] ffff8801ca5f0500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 30.396173] >ffff8801ca5f0580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.396174] ^ [ 30.396177] ffff8801ca5f0600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.396180] ffff8801ca5f0680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.396181] ================================================================== [ 30.396182] Disabling lock debugging due to kernel taint [ 30.396184] Kernel panic - not syncing: panic_on_warn set ... [ 30.396184] [ 30.396188] CPU: 0 PID: 3151 Comm: syzkaller105822 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 30.396190] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.396191] Call Trace: [ 30.396195] dump_stack+0x194/0x257 [ 30.396199] ? arch_local_irq_restore+0x53/0x53 [ 30.396202] ? kasan_end_report+0x32/0x50 [ 30.396206] ? lock_downgrade+0x980/0x980 [ 30.396210] ? vsnprintf+0x1ed/0x1900 [ 30.396213] ? __lock_acquire+0x3d30/0x3e00 [ 30.396216] panic+0x1e4/0x41c [ 30.396220] ? refcount_error_report+0x214/0x214 [ 30.396224] ? add_taint+0x40/0x50 [ 30.396227] ? add_taint+0x1c/0x50 [ 30.396231] ? __lock_acquire+0x3d4d/0x3e00 [ 30.396235] kasan_end_report+0x50/0x50 [ 30.396239] kasan_report+0x144/0x340 [ 30.396243] __asan_report_load8_noabort+0x14/0x20 [ 30.396247] __lock_acquire+0x3d4d/0x3e00 [ 30.396251] ? print_irqtrace_events+0x270/0x270 [ 30.396254] ? unwind_get_return_address+0x61/0xa0 [ 30.396259] ? remove_wait_queue+0x81/0x350 [ 30.396264] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.396267] ? __lock_acquire+0x664/0x3e00 [ 30.396271] ? print_irqtrace_events+0x270/0x270 [ 30.396275] ? __lock_acquire+0x664/0x3e00 [ 30.396281] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.396286] ? __lock_acquire+0x664/0x3e00 [ 30.396290] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.396293] ? __lock_acquire+0x664/0x3e00 [ 30.396296] ? check_noncircular+0x20/0x20 [ 30.396301] ? check_noncircular+0x20/0x20 [ 30.396305] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.396308] ? __lock_acquire+0x664/0x3e00 [ 30.396312] ? check_noncircular+0x20/0x20 [ 30.396319] lock_acquire+0x1d5/0x580 [ 30.396322] ? lock_acquire+0x1d5/0x580 [ 30.396326] ? remove_wait_queue+0x81/0x350 [ 30.396330] ? lock_release+0xa40/0xa40 [ 30.396334] ? print_irqtrace_events+0x270/0x270 [ 30.396337] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.396342] ? lock_acquire+0x1d5/0x580 [ 30.396345] ? lock_acquire+0x1d5/0x580 [ 30.396349] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 30.396353] _raw_spin_lock_irqsave+0x96/0xc0 [ 30.396356] ? remove_wait_queue+0x81/0x350 [ 30.396360] remove_wait_queue+0x81/0x350 [ 30.396363] ? eventpoll_release_file+0xba/0x140 [ 30.396368] ? add_wait_queue+0x290/0x290 [ 30.396371] ? rcutorture_record_progress+0x10/0x10 [ 30.396375] ? mutex_lock_io_nested+0x1900/0x1900 [ 30.396380] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 30.396384] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.396389] ? clear_tfile_check_list+0x370/0x370 [ 30.396393] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.396397] ? rcutorture_record_progress+0x10/0x10 [ 30.396403] ? is_bpf_text_address+0xa4/0x120 [ 30.396407] ep_remove+0xcd/0x800 [ 30.396411] ? unwind_get_return_address+0x61/0xa0 [ 30.396415] ? ep_destroy_wakeup_source+0x240/0x240 [ 30.396418] ? check_noncircular+0x20/0x20 [ 30.396422] ? check_noncircular+0x20/0x20 [ 30.396427] ? fsnotify+0x7b3/0x1140 [ 30.396439] eventpoll_release_file+0xc5/0x140 [ 30.396443] __fput+0x5f1/0x7e0 [ 30.396448] ? fput+0x140/0x140 [ 30.396452] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.396456] ____fput+0x15/0x20 [ 30.396460] task_work_run+0x199/0x270 [ 30.396465] ? task_work_cancel+0x210/0x210 [ 30.396468] ? _raw_spin_unlock+0x22/0x30 [ 30.396472] ? switch_task_namespaces+0x87/0xc0 [ 30.396476] do_exit+0x9bb/0x1ad0 [ 30.396480] ? binder_ioctl+0x491/0x1417 [ 30.396484] ? mm_update_next_owner+0x930/0x930 [ 30.396488] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 30.396493] ? avc_ss_reset+0x110/0x110 [ 30.396497] ? mutex_unlock+0xd/0x10 [ 30.396500] ? SyS_epoll_ctl+0x30a/0x1a80 [ 30.396508] ? vmacache_update+0xfe/0x130 [ 30.396513] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.396516] ? up_read+0x1a/0x40 [ 30.396520] ? rcu_note_context_switch+0x710/0x710 [ 30.396525] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 30.396528] ? do_vfs_ioctl+0x486/0x1520 [ 30.396532] ? _cond_resched+0x14/0x30 [ 30.396536] ? ioctl_preallocate+0x2b0/0x2b0 [ 30.396540] ? selinux_capable+0x40/0x40 [ 30.396544] ? putname+0xf3/0x130 [ 30.396549] do_group_exit+0x149/0x400 [ 30.396553] ? SyS_exit+0x30/0x30 [ 30.396557] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.396561] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.396565] SyS_exit_group+0x1d/0x20 [ 30.396569] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 30.396571] RIP: 0033:0x4429f8 [ 30.396573] RSP: 002b:00007ffe9b8fdfd8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 30.396577] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 30.396579] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 30.396581] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 30.396583] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 30.396585] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 30.416936] Dumping ftrace buffer: [ 30.416939] (ftrace buffer empty) [ 30.416941] Kernel Offset: disabled [ 31.568297] Rebooting in 86400 seconds..