[....] Starting enhanced syslogd: rsyslogd[ 11.567711] audit: type=1400 audit(1514568574.369: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.243163] audit: type=1400 audit(1514568579.044: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.0.52' (ECDSA) to the list of known hosts. executing program [ 22.431420] audit: type=1400 audit(1514568585.233:7): avc: denied { map } for pid=3151 comm="syzkaller755830" path="/root/syzkaller755830703" 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.436241] ================================================================== [ 22.436257] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 22.436262] Read of size 8 at addr ffff8801ca9eb630 by task syzkaller755830/3151 [ 22.436264] [ 22.436271] CPU: 0 PID: 3151 Comm: syzkaller755830 Not tainted 4.15.0-rc5+ #240 [ 22.436274] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.436276] Call Trace: [ 22.436286] dump_stack+0x194/0x257 [ 22.436293] ? arch_local_irq_restore+0x53/0x53 [ 22.436300] ? show_regs_print_info+0x18/0x18 [ 22.436306] ? print_irqtrace_events+0x270/0x270 [ 22.436312] ? __lock_acquire+0x664/0x3e00 [ 22.436319] ? __lock_acquire+0x3d4d/0x3e00 [ 22.436328] print_address_description+0x73/0x250 [ 22.436334] ? __lock_acquire+0x3d4d/0x3e00 [ 22.436340] kasan_report+0x25b/0x340 [ 22.436348] __asan_report_load8_noabort+0x14/0x20 [ 22.436353] __lock_acquire+0x3d4d/0x3e00 [ 22.436359] ? __lock_acquire+0x664/0x3e00 [ 22.436364] ? lock_downgrade+0x980/0x980 [ 22.436370] ? lock_downgrade+0x980/0x980 [ 22.436378] ? remove_wait_queue+0x81/0x350 [ 22.436387] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.436393] ? __lock_acquire+0x664/0x3e00 [ 22.436399] ? check_noncircular+0x20/0x20 [ 22.436412] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.436419] ? lock_acquire+0x1d5/0x580 [ 22.436425] ? lock_acquire+0x1d5/0x580 [ 22.436430] ? ep_free+0xf4/0x320 [ 22.436438] ? lock_release+0xa40/0xa40 [ 22.436445] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.436451] ? print_irqtrace_events+0x270/0x270 [ 22.436458] ? rcu_note_context_switch+0x710/0x710 [ 22.436465] ? __might_sleep+0x95/0x190 [ 22.436471] ? ep_free+0xf4/0x320 [ 22.436477] ? __mutex_lock+0x16f/0x1a80 [ 22.436481] ? ep_free+0xf4/0x320 [ 22.436488] ? print_irqtrace_events+0x270/0x270 [ 22.436492] ? ep_free+0xf4/0x320 [ 22.436501] lock_acquire+0x1d5/0x580 [ 22.436506] ? lock_acquire+0x1d5/0x580 [ 22.436512] ? remove_wait_queue+0x81/0x350 [ 22.436517] ? __lock_acquire+0x664/0x3e00 [ 22.436525] ? lock_release+0xa40/0xa40 [ 22.436534] ? lock_acquire+0x1d5/0x580 [ 22.436539] ? lock_acquire+0x1d5/0x580 [ 22.436545] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.436553] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.436558] ? remove_wait_queue+0x81/0x350 [ 22.436565] remove_wait_queue+0x81/0x350 [ 22.436572] ? add_wait_queue+0x290/0x290 [ 22.436578] ? rcutorture_record_progress+0x10/0x10 [ 22.436587] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.436594] ? __kernel_text_address+0xd/0x40 [ 22.436601] ? clear_tfile_check_list+0x370/0x370 [ 22.436609] ? check_noncircular+0x20/0x20 [ 22.436617] ? locks_remove_file+0x3fa/0x5a0 [ 22.436626] ep_free+0x13f/0x320 [ 22.436631] ? ep_remove+0x800/0x800 [ 22.436638] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.436645] ? ep_free+0x320/0x320 [ 22.436651] ep_eventpoll_release+0x44/0x60 [ 22.436657] __fput+0x327/0x7e0 [ 22.436665] ? fput+0x140/0x140 [ 22.436671] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.436679] ____fput+0x15/0x20 [ 22.436685] task_work_run+0x199/0x270 [ 22.436693] ? task_work_cancel+0x210/0x210 [ 22.436698] ? _raw_spin_unlock+0x22/0x30 [ 22.436704] ? switch_task_namespaces+0x87/0xc0 [ 22.436712] do_exit+0x9bb/0x1ad0 [ 22.436722] ? binder_ioctl+0x511/0x1417 [ 22.436728] ? mm_update_next_owner+0x930/0x930 [ 22.436741] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.436753] ? avc_ss_reset+0x110/0x110 [ 22.436758] ? mutex_unlock+0xd/0x10 [ 22.436764] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.436783] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.436788] ? up_read+0x1a/0x40 [ 22.436794] ? rcu_note_context_switch+0x710/0x710 [ 22.436800] ? __fd_install+0x288/0x740 [ 22.436810] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.436816] ? do_vfs_ioctl+0x486/0x1520 [ 22.436823] ? _cond_resched+0x14/0x30 [ 22.436831] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.436838] ? selinux_capable+0x40/0x40 [ 22.436845] ? __alloc_fd+0x750/0x750 [ 22.436853] do_group_exit+0x149/0x400 [ 22.436860] ? SyS_exit+0x30/0x30 [ 22.436867] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.436875] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.436882] SyS_exit_group+0x1d/0x20 [ 22.436889] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.436894] RIP: 0033:0x4429f8 [ 22.436897] RSP: 002b:00007ffe19420018 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.436903] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.436907] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.436910] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.436913] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.436917] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.436925] [ 22.436927] Allocated by task 3151: [ 22.436933] save_stack+0x43/0xd0 [ 22.436938] kasan_kmalloc+0xad/0xe0 [ 22.436944] kmem_cache_alloc_trace+0x136/0x750 [ 22.436949] binder_get_thread+0x1cf/0x870 [ 22.436954] binder_poll+0x8c/0x390 [ 22.436959] ep_item_poll.isra.10+0xec/0x320 [ 22.436963] ep_insert+0x6a3/0x1b10 [ 22.436967] SyS_epoll_ctl+0x12e4/0x1ab0 [ 22.436973] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.436974] [ 22.436976] Freed by task 3151: [ 22.436981] save_stack+0x43/0xd0 [ 22.436985] kasan_slab_free+0x71/0xc0 [ 22.436988] kfree+0xd6/0x260 [ 22.436994] binder_thread_dec_tmpref+0x27f/0x310 [ 22.436998] binder_thread_release+0x27d/0x540 [ 22.437006] binder_ioctl+0xc02/0x1417 [ 22.437011] do_vfs_ioctl+0x1b1/0x1520 [ 22.437016] SyS_ioctl+0x8f/0xc0 [ 22.437022] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.437023] [ 22.437027] The buggy address belongs to the object at ffff8801ca9eb580 [ 22.437027] which belongs to the cache kmalloc-512 of size 512 [ 22.437031] The buggy address is located 176 bytes inside of [ 22.437031] 512-byte region [ffff8801ca9eb580, ffff8801ca9eb780) [ 22.437033] The buggy address belongs to the page: [ 22.437039] page:00000000f298fc3c count:1 mapcount:0 mapping:000000007c906748 index:0x0 [ 22.437044] flags: 0x2fffc0000000100(slab) [ 22.437053] raw: 02fffc0000000100 ffff8801ca9eb080 0000000000000000 0000000100000006 [ 22.437060] raw: ffffea00072a7960 ffffea00072a13e0 ffff8801db000940 0000000000000000 [ 22.437062] page dumped because: kasan: bad access detected [ 22.437063] [ 22.437065] Memory state around the buggy address: [ 22.437070] ffff8801ca9eb500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.437074] ffff8801ca9eb580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.437079] >ffff8801ca9eb600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.437081] ^ [ 22.437085] ffff8801ca9eb680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.437089] ffff8801ca9eb700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.437091] ================================================================== [ 22.437093] Disabling lock debugging due to kernel taint [ 22.437096] Kernel panic - not syncing: panic_on_warn set ... [ 22.437096] [ 22.437102] CPU: 0 PID: 3151 Comm: syzkaller755830 Tainted: G B 4.15.0-rc5+ #240 [ 22.437105] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.437107] Call Trace: [ 22.437112] dump_stack+0x194/0x257 [ 22.437119] ? arch_local_irq_restore+0x53/0x53 [ 22.437124] ? kasan_end_report+0x32/0x50 [ 22.437131] ? lock_downgrade+0x980/0x980 [ 22.437137] ? vsnprintf+0x1ed/0x1900 [ 22.437143] ? __lock_acquire+0x3cd0/0x3e00 [ 22.437148] panic+0x1e4/0x41c [ 22.437154] ? refcount_error_report+0x214/0x214 [ 22.437161] ? add_taint+0x40/0x50 [ 22.437166] ? add_taint+0x1c/0x50 [ 22.437173] ? __lock_acquire+0x3d4d/0x3e00 [ 22.437179] kasan_end_report+0x50/0x50 [ 22.437185] kasan_report+0x144/0x340 [ 22.437192] __asan_report_load8_noabort+0x14/0x20 [ 22.437198] __lock_acquire+0x3d4d/0x3e00 [ 22.437203] ? __lock_acquire+0x664/0x3e00 [ 22.437209] ? lock_downgrade+0x980/0x980 [ 22.437214] ? lock_downgrade+0x980/0x980 [ 22.437221] ? remove_wait_queue+0x81/0x350 [ 22.437230] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.437236] ? __lock_acquire+0x664/0x3e00 [ 22.437241] ? check_noncircular+0x20/0x20 [ 22.437253] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 22.437261] ? lock_acquire+0x1d5/0x580 [ 22.437270] ? lock_acquire+0x1d5/0x580 [ 22.437275] ? ep_free+0xf4/0x320 [ 22.437283] ? lock_release+0xa40/0xa40 [ 22.437289] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.437295] ? print_irqtrace_events+0x270/0x270 [ 22.437301] ? rcu_note_context_switch+0x710/0x710 [ 22.437308] ? __might_sleep+0x95/0x190 [ 22.437313] ? ep_free+0xf4/0x320 [ 22.437319] ? __mutex_lock+0x16f/0x1a80 [ 22.437323] ? ep_free+0xf4/0x320 [ 22.437330] ? print_irqtrace_events+0x270/0x270 [ 22.437334] ? ep_free+0xf4/0x320 [ 22.437342] lock_acquire+0x1d5/0x580 [ 22.437347] ? lock_acquire+0x1d5/0x580 [ 22.437353] ? remove_wait_queue+0x81/0x350 [ 22.437359] ? __lock_acquire+0x664/0x3e00 [ 22.437367] ? lock_release+0xa40/0xa40 [ 22.437376] ? lock_acquire+0x1d5/0x580 [ 22.437381] ? lock_acquire+0x1d5/0x580 [ 22.437387] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 22.437394] _raw_spin_lock_irqsave+0x96/0xc0 [ 22.437399] ? remove_wait_queue+0x81/0x350 [ 22.437405] remove_wait_queue+0x81/0x350 [ 22.437413] ? add_wait_queue+0x290/0x290 [ 22.437420] ? rcutorture_record_progress+0x10/0x10 [ 22.437429] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 22.437435] ? __kernel_text_address+0xd/0x40 [ 22.437443] ? clear_tfile_check_list+0x370/0x370 [ 22.437450] ? check_noncircular+0x20/0x20 [ 22.437457] ? locks_remove_file+0x3fa/0x5a0 [ 22.437466] ep_free+0x13f/0x320 [ 22.437471] ? ep_remove+0x800/0x800 [ 22.437477] ? fsnotify_first_mark+0x2b0/0x2b0 [ 22.437484] ? ep_free+0x320/0x320 [ 22.437490] ep_eventpoll_release+0x44/0x60 [ 22.437495] __fput+0x327/0x7e0 [ 22.437503] ? fput+0x140/0x140 [ 22.437509] ? _raw_spin_unlock_irq+0x27/0x70 [ 22.437517] ____fput+0x15/0x20 [ 22.437523] task_work_run+0x199/0x270 [ 22.437533] ? task_work_cancel+0x210/0x210 [ 22.437539] ? _raw_spin_unlock+0x22/0x30 [ 22.437545] ? switch_task_namespaces+0x87/0xc0 [ 22.437552] do_exit+0x9bb/0x1ad0 [ 22.437559] ? binder_ioctl+0x511/0x1417 [ 22.437565] ? mm_update_next_owner+0x930/0x930 [ 22.437573] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.437582] ? avc_ss_reset+0x110/0x110 [ 22.437587] ? mutex_unlock+0xd/0x10 [ 22.437592] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 22.437610] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.437615] ? up_read+0x1a/0x40 [ 22.437621] ? rcu_note_context_switch+0x710/0x710 [ 22.437627] ? __fd_install+0x288/0x740 [ 22.437635] ? binder_ioctl_write_read.isra.41+0xcb0/0xcb0 [ 22.437641] ? do_vfs_ioctl+0x486/0x1520 [ 22.437647] ? _cond_resched+0x14/0x30 [ 22.437655] ? ioctl_preallocate+0x2b0/0x2b0 [ 22.437662] ? selinux_capable+0x40/0x40 [ 22.437669] ? __alloc_fd+0x750/0x750 [ 22.437677] do_group_exit+0x149/0x400 [ 22.437683] ? SyS_exit+0x30/0x30 [ 22.437690] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 22.437696] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.437703] SyS_exit_group+0x1d/0x20 [ 22.437710] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.437713] RIP: 0033:0x4429f8 [ 22.437716] RSP: 002b:00007ffe19420018 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 22.437722] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 22.437725] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 22.437728] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 22.437732] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 22.437740] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 22.457694] Dumping ftrace buffer: [ 22.457698] (ftrace buffer empty) [ 22.457700] Kernel Offset: disabled [ 23.581429] Rebooting in 86400 seconds..