[....] Starting enhanced syslogd: rsyslogd[ 13.168915] audit: type=1400 audit(1516080978.046:5): avc: denied { syslog } for pid=3505 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 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: [ 17.640057] audit: type=1400 audit(1516080982.517:6): avc: denied { map } for pid=3645 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.222' (ECDSA) to the list of known hosts. executing program [ 23.950910] audit: type=1400 audit(1516080988.828:7): avc: denied { map } for pid=3658 comm="syzkaller534276" path="/root/syzkaller534276011" 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 [ 23.955614] ================================================================== [ 23.955629] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.955634] Read of size 8 at addr ffff8801bc04ddb0 by task syzkaller534276/3658 [ 23.955635] [ 23.955642] CPU: 0 PID: 3658 Comm: syzkaller534276 Not tainted 4.15.0-rc8+ #263 [ 23.955645] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.955648] Call Trace: [ 23.955656] dump_stack+0x194/0x257 [ 23.955671] ? arch_local_irq_restore+0x53/0x53 [ 23.955678] ? show_regs_print_info+0x18/0x18 [ 23.955684] ? print_irqtrace_events+0x270/0x270 [ 23.955690] ? __lock_acquire+0x664/0x3e00 [ 23.955696] ? __lock_acquire+0x3d4d/0x3e00 [ 23.955705] print_address_description+0x73/0x250 [ 23.955711] ? __lock_acquire+0x3d4d/0x3e00 [ 23.955717] kasan_report+0x25b/0x340 [ 23.955725] __asan_report_load8_noabort+0x14/0x20 [ 23.955731] __lock_acquire+0x3d4d/0x3e00 [ 23.955737] ? __lock_acquire+0x664/0x3e00 [ 23.955742] ? lock_downgrade+0x980/0x980 [ 23.955748] ? lock_downgrade+0x980/0x980 [ 23.955756] ? remove_wait_queue+0x81/0x350 [ 23.955766] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.955772] ? __lock_acquire+0x664/0x3e00 [ 23.955778] ? check_noncircular+0x20/0x20 [ 23.955790] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.955797] ? lock_acquire+0x1d5/0x580 [ 23.955803] ? lock_acquire+0x1d5/0x580 [ 23.955810] ? ep_free+0xf4/0x320 [ 23.955818] ? lock_release+0xa40/0xa40 [ 23.955825] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.955831] ? print_irqtrace_events+0x270/0x270 [ 23.955839] ? rcu_note_context_switch+0x710/0x710 [ 23.955847] ? __might_sleep+0x95/0x190 [ 23.955853] ? ep_free+0xf4/0x320 [ 23.955860] ? __mutex_lock+0x16f/0x1a80 [ 23.955865] ? ep_free+0xf4/0x320 [ 23.955872] ? print_irqtrace_events+0x270/0x270 [ 23.955877] ? ep_free+0xf4/0x320 [ 23.955885] lock_acquire+0x1d5/0x580 [ 23.955891] ? lock_acquire+0x1d5/0x580 [ 23.955896] ? remove_wait_queue+0x81/0x350 [ 23.955902] ? __lock_acquire+0x664/0x3e00 [ 23.955910] ? lock_release+0xa40/0xa40 [ 23.955919] ? lock_acquire+0x1d5/0x580 [ 23.955924] ? lock_acquire+0x1d5/0x580 [ 23.955930] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.955938] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.955944] ? remove_wait_queue+0x81/0x350 [ 23.955951] remove_wait_queue+0x81/0x350 [ 23.955959] ? add_wait_queue+0x290/0x290 [ 23.955964] ? rcutorture_record_progress+0x10/0x10 [ 23.955975] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.955982] ? __kernel_text_address+0xd/0x40 [ 23.955991] ? clear_tfile_check_list+0x370/0x370 [ 23.955998] ? check_noncircular+0x20/0x20 [ 23.956010] ? locks_remove_file+0x3fa/0x5a0 [ 23.956020] ep_free+0x13f/0x320 [ 23.956027] ? ep_remove+0x800/0x800 [ 23.956032] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.956041] ? ep_free+0x320/0x320 [ 23.956047] ep_eventpoll_release+0x44/0x60 [ 23.956054] __fput+0x327/0x7e0 [ 23.956062] ? fput+0x140/0x140 [ 23.956069] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.956078] ____fput+0x15/0x20 [ 23.956090] task_work_run+0x199/0x270 [ 23.956098] ? task_work_cancel+0x210/0x210 [ 23.956104] ? _raw_spin_unlock+0x22/0x30 [ 23.956110] ? switch_task_namespaces+0x87/0xc0 [ 23.956119] do_exit+0x9bb/0x1ad0 [ 23.956129] ? binder_ioctl+0x4a1/0x1417 [ 23.956135] ? mm_update_next_owner+0x930/0x930 [ 23.956144] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.956155] ? avc_ss_reset+0x110/0x110 [ 23.956161] ? mutex_unlock+0xd/0x10 [ 23.956166] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.956172] ? find_held_lock+0x35/0x1d0 [ 23.956182] ? lock_downgrade+0x980/0x980 [ 23.956196] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.956204] ? rcu_note_context_switch+0x710/0x710 [ 23.956209] ? __fd_install+0x288/0x740 [ 23.956219] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.956225] ? do_vfs_ioctl+0x486/0x1520 [ 23.956229] ? _cond_resched+0x14/0x30 [ 23.956237] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.956245] ? selinux_capable+0x40/0x40 [ 23.956251] ? __alloc_fd+0x750/0x750 [ 23.956260] do_group_exit+0x149/0x400 [ 23.956267] ? SyS_exit+0x30/0x30 [ 23.956274] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.956281] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.956289] SyS_exit_group+0x1d/0x20 [ 23.956296] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.956301] RIP: 0033:0x4429f8 [ 23.956304] RSP: 002b:00007ffe635d80b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.956311] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004429f8 [ 23.956314] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.956317] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.956321] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 23.956324] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.956332] [ 23.956335] Allocated by task 3658: [ 23.956341] save_stack+0x43/0xd0 [ 23.956345] kasan_kmalloc+0xad/0xe0 [ 23.956350] kmem_cache_alloc_trace+0x136/0x750 [ 23.956356] binder_get_thread+0x1cf/0x870 [ 23.956360] binder_poll+0x8c/0x390 [ 23.956366] ep_item_poll.isra.10+0xec/0x320 [ 23.956371] ep_insert+0x6a3/0x1b10 [ 23.956376] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.956381] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.956382] [ 23.956385] Freed by task 3658: [ 23.956389] save_stack+0x43/0xd0 [ 23.956394] kasan_slab_free+0x71/0xc0 [ 23.956398] kfree+0xd6/0x260 [ 23.956404] binder_thread_dec_tmpref+0x27f/0x310 [ 23.956409] binder_thread_release+0x27d/0x540 [ 23.956415] binder_ioctl+0xc02/0x1417 [ 23.956419] do_vfs_ioctl+0x1b1/0x1520 [ 23.956423] SyS_ioctl+0x8f/0xc0 [ 23.956429] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.956430] [ 23.956434] The buggy address belongs to the object at ffff8801bc04dd00 [ 23.956434] which belongs to the cache kmalloc-512 of size 512 [ 23.956439] The buggy address is located 176 bytes inside of [ 23.956439] 512-byte region [ffff8801bc04dd00, ffff8801bc04df00) [ 23.956441] The buggy address belongs to the page: [ 23.956446] page:ffffea0006f01340 count:1 mapcount:0 mapping:ffff8801bc04d080 index:0x0 [ 23.956451] flags: 0x2fffc0000000100(slab) [ 23.956459] raw: 02fffc0000000100 ffff8801bc04d080 0000000000000000 0000000100000006 [ 23.956466] raw: ffffea0006f01d60 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 23.956468] page dumped because: kasan: bad access detected [ 23.956470] [ 23.956471] Memory state around the buggy address: [ 23.956476] ffff8801bc04dc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.956480] ffff8801bc04dd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.956484] >ffff8801bc04dd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.956486] ^ [ 23.956490] ffff8801bc04de00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.956495] ffff8801bc04de80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.956496] ================================================================== [ 23.956498] Disabling lock debugging due to kernel taint [ 23.956501] Kernel panic - not syncing: panic_on_warn set ... [ 23.956501] [ 23.956507] CPU: 0 PID: 3658 Comm: syzkaller534276 Tainted: G B 4.15.0-rc8+ #263 [ 23.956510] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.956511] Call Trace: [ 23.956518] dump_stack+0x194/0x257 [ 23.956525] ? arch_local_irq_restore+0x53/0x53 [ 23.956530] ? kasan_end_report+0x32/0x50 [ 23.956536] ? lock_downgrade+0x980/0x980 [ 23.956543] ? vsnprintf+0x1ed/0x1900 [ 23.956549] ? __lock_acquire+0x3c70/0x3e00 [ 23.956554] panic+0x1e4/0x41c [ 23.956560] ? refcount_error_report+0x214/0x214 [ 23.956568] ? add_taint+0x40/0x50 [ 23.956572] ? add_taint+0x1c/0x50 [ 23.956579] ? __lock_acquire+0x3d4d/0x3e00 [ 23.956585] kasan_end_report+0x50/0x50 [ 23.956591] kasan_report+0x144/0x340 [ 23.956599] __asan_report_load8_noabort+0x14/0x20 [ 23.956604] __lock_acquire+0x3d4d/0x3e00 [ 23.956610] ? __lock_acquire+0x664/0x3e00 [ 23.956615] ? lock_downgrade+0x980/0x980 [ 23.956621] ? lock_downgrade+0x980/0x980 [ 23.956628] ? remove_wait_queue+0x81/0x350 [ 23.956636] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.956643] ? __lock_acquire+0x664/0x3e00 [ 23.956648] ? check_noncircular+0x20/0x20 [ 23.956660] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.956667] ? lock_acquire+0x1d5/0x580 [ 23.956673] ? lock_acquire+0x1d5/0x580 [ 23.956678] ? ep_free+0xf4/0x320 [ 23.956686] ? lock_release+0xa40/0xa40 [ 23.956692] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.956698] ? print_irqtrace_events+0x270/0x270 [ 23.956704] ? rcu_note_context_switch+0x710/0x710 [ 23.956711] ? __might_sleep+0x95/0x190 [ 23.956717] ? ep_free+0xf4/0x320 [ 23.956723] ? __mutex_lock+0x16f/0x1a80 [ 23.956728] ? ep_free+0xf4/0x320 [ 23.956735] ? print_irqtrace_events+0x270/0x270 [ 23.956740] ? ep_free+0xf4/0x320 [ 23.956748] lock_acquire+0x1d5/0x580 [ 23.956753] ? lock_acquire+0x1d5/0x580 [ 23.956759] ? remove_wait_queue+0x81/0x350 [ 23.956765] ? __lock_acquire+0x664/0x3e00 [ 23.956772] ? lock_release+0xa40/0xa40 [ 23.956781] ? lock_acquire+0x1d5/0x580 [ 23.956786] ? lock_acquire+0x1d5/0x580 [ 23.956793] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.956800] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.956806] ? remove_wait_queue+0x81/0x350 [ 23.956812] remove_wait_queue+0x81/0x350 [ 23.956820] ? add_wait_queue+0x290/0x290 [ 23.956826] ? rcutorture_record_progress+0x10/0x10 [ 23.956836] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.956842] ? __kernel_text_address+0xd/0x40 [ 23.956851] ? clear_tfile_check_list+0x370/0x370 [ 23.956858] ? check_noncircular+0x20/0x20 [ 23.956866] ? locks_remove_file+0x3fa/0x5a0 [ 23.956875] ep_free+0x13f/0x320 [ 23.956881] ? ep_remove+0x800/0x800 [ 23.956886] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.956894] ? ep_free+0x320/0x320 [ 23.956900] ep_eventpoll_release+0x44/0x60 [ 23.956906] __fput+0x327/0x7e0 [ 23.956915] ? fput+0x140/0x140 [ 23.956922] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.956930] ____fput+0x15/0x20 [ 23.956936] task_work_run+0x199/0x270 [ 23.956943] ? task_work_cancel+0x210/0x210 [ 23.956950] ? _raw_spin_unlock+0x22/0x30 [ 23.956956] ? switch_task_namespaces+0x87/0xc0 [ 23.956963] do_exit+0x9bb/0x1ad0 [ 23.956971] ? binder_ioctl+0x4a1/0x1417 [ 23.956977] ? mm_update_next_owner+0x930/0x930 [ 23.956985] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.956993] ? avc_ss_reset+0x110/0x110 [ 23.956999] ? mutex_unlock+0xd/0x10 [ 23.957004] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.957010] ? find_held_lock+0x35/0x1d0 [ 23.957019] ? lock_downgrade+0x980/0x980 [ 23.957032] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.957040] ? rcu_note_context_switch+0x710/0x710 [ 23.957044] ? __fd_install+0x288/0x740 [ 23.957054] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.957059] ? do_vfs_ioctl+0x486/0x1520 [ 23.957064] ? _cond_resched+0x14/0x30 [ 23.957071] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.957079] ? selinux_capable+0x40/0x40 [ 23.957089] ? __alloc_fd+0x750/0x750 [ 23.957098] do_group_exit+0x149/0x400 [ 23.957104] ? SyS_exit+0x30/0x30 [ 23.957111] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.957117] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.957124] SyS_exit_group+0x1d/0x20 [ 23.957131] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 23.957134] RIP: 0033:0x4429f8 [ 23.957138] RSP: 002b:00007ffe635d80b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.957143] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004429f8 [ 23.957146] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.957150] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.957153] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 23.957156] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.977174] Dumping ftrace buffer: [ 23.977177] (ftrace buffer empty) [ 23.977179] Kernel Offset: disabled [ 25.111080] Rebooting in 86400 seconds..