[....] Starting enhanced syslogd: rsyslogd[ 11.966708] audit: type=1400 audit(1515736013.288:5): avc: denied { syslog } for pid=3342 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: [ 19.109375] audit: type=1400 audit(1515736020.431:6): avc: denied { map } for pid=3482 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.220' (ECDSA) to the list of known hosts. executing program [ 25.325413] audit: type=1400 audit(1515736026.647:7): avc: denied { map } for pid=3496 comm="syzkaller612395" path="/root/syzkaller612395102" 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 [ 25.331363] ================================================================== [ 25.331377] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.331382] Read of size 8 at addr ffff8801cdcf3370 by task syzkaller612395/3496 [ 25.331384] [ 25.331391] CPU: 1 PID: 3496 Comm: syzkaller612395 Not tainted 4.15.0-rc7+ #258 [ 25.331394] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.331397] Call Trace: [ 25.331406] dump_stack+0x194/0x257 [ 25.331414] ? arch_local_irq_restore+0x53/0x53 [ 25.331421] ? show_regs_print_info+0x18/0x18 [ 25.331427] ? print_irqtrace_events+0x270/0x270 [ 25.331433] ? __lock_acquire+0x664/0x3e00 [ 25.331440] ? __lock_acquire+0x3d4d/0x3e00 [ 25.331449] print_address_description+0x73/0x250 [ 25.331455] ? __lock_acquire+0x3d4d/0x3e00 [ 25.331461] kasan_report+0x25b/0x340 [ 25.331470] __asan_report_load8_noabort+0x14/0x20 [ 25.331475] __lock_acquire+0x3d4d/0x3e00 [ 25.331481] ? __lock_acquire+0x664/0x3e00 [ 25.331487] ? lock_downgrade+0x980/0x980 [ 25.331492] ? lock_downgrade+0x980/0x980 [ 25.331502] ? remove_wait_queue+0x81/0x350 [ 25.331511] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.331518] ? __lock_acquire+0x664/0x3e00 [ 25.331523] ? check_noncircular+0x20/0x20 [ 25.331536] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.331543] ? lock_acquire+0x1d5/0x580 [ 25.331548] ? lock_acquire+0x1d5/0x580 [ 25.331555] ? ep_free+0xf4/0x320 [ 25.331563] ? lock_release+0xa40/0xa40 [ 25.331570] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.331576] ? print_irqtrace_events+0x270/0x270 [ 25.331584] ? rcu_note_context_switch+0x710/0x710 [ 25.331592] ? __might_sleep+0x95/0x190 [ 25.331597] ? ep_free+0xf4/0x320 [ 25.331604] ? __mutex_lock+0x16f/0x1a80 [ 25.331609] ? ep_free+0xf4/0x320 [ 25.331616] ? print_irqtrace_events+0x270/0x270 [ 25.331621] ? ep_free+0xf4/0x320 [ 25.331630] lock_acquire+0x1d5/0x580 [ 25.331641] ? lock_acquire+0x1d5/0x580 [ 25.331647] ? remove_wait_queue+0x81/0x350 [ 25.331653] ? __lock_acquire+0x664/0x3e00 [ 25.331661] ? lock_release+0xa40/0xa40 [ 25.331670] ? lock_acquire+0x1d5/0x580 [ 25.331675] ? lock_acquire+0x1d5/0x580 [ 25.331682] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.331691] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.331697] ? remove_wait_queue+0x81/0x350 [ 25.331703] remove_wait_queue+0x81/0x350 [ 25.331711] ? add_wait_queue+0x290/0x290 [ 25.331717] ? rcutorture_record_progress+0x10/0x10 [ 25.331727] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.331735] ? __kernel_text_address+0xd/0x40 [ 25.331744] ? clear_tfile_check_list+0x370/0x370 [ 25.331751] ? check_noncircular+0x20/0x20 [ 25.331760] ? locks_remove_file+0x3fa/0x5a0 [ 25.331769] ep_free+0x13f/0x320 [ 25.331776] ? ep_remove+0x800/0x800 [ 25.331782] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.331790] ? ep_free+0x320/0x320 [ 25.331796] ep_eventpoll_release+0x44/0x60 [ 25.331803] __fput+0x327/0x7e0 [ 25.331812] ? fput+0x140/0x140 [ 25.331819] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.331827] ____fput+0x15/0x20 [ 25.331833] task_work_run+0x199/0x270 [ 25.331841] ? task_work_cancel+0x210/0x210 [ 25.331848] ? _raw_spin_unlock+0x22/0x30 [ 25.331854] ? switch_task_namespaces+0x87/0xc0 [ 25.331864] do_exit+0x9bb/0x1ad0 [ 25.331872] ? binder_ioctl+0x561/0x1417 [ 25.331879] ? mm_update_next_owner+0x930/0x930 [ 25.331886] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.331896] ? avc_ss_reset+0x110/0x110 [ 25.331901] ? mutex_unlock+0xd/0x10 [ 25.331907] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.331926] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.331931] ? up_read+0x1a/0x40 [ 25.331938] ? rcu_note_context_switch+0x710/0x710 [ 25.331943] ? __fd_install+0x288/0x740 [ 25.331952] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.331958] ? do_vfs_ioctl+0x486/0x1520 [ 25.331963] ? _cond_resched+0x14/0x30 [ 25.331970] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.331978] ? selinux_capable+0x40/0x40 [ 25.331984] ? __alloc_fd+0x750/0x750 [ 25.331993] do_group_exit+0x149/0x400 [ 25.332000] ? SyS_exit+0x30/0x30 [ 25.332010] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.332017] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.332025] SyS_exit_group+0x1d/0x20 [ 25.332032] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.332036] RIP: 0033:0x4429f8 [ 25.332040] RSP: 002b:00007fffb533d238 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.332046] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.332049] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.332053] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.332056] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.332059] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.332068] [ 25.332071] Allocated by task 3496: [ 25.332077] save_stack+0x43/0xd0 [ 25.332081] kasan_kmalloc+0xad/0xe0 [ 25.332086] kmem_cache_alloc_trace+0x136/0x750 [ 25.332091] binder_get_thread+0x1cf/0x870 [ 25.332095] binder_poll+0x8c/0x390 [ 25.332100] ep_item_poll.isra.10+0xec/0x320 [ 25.332105] ep_insert+0x6a3/0x1b10 [ 25.332110] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.332115] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.332116] [ 25.332119] Freed by task 3496: [ 25.332123] save_stack+0x43/0xd0 [ 25.332128] kasan_slab_free+0x71/0xc0 [ 25.332132] kfree+0xd6/0x260 [ 25.332136] binder_thread_dec_tmpref+0x27f/0x310 [ 25.332141] binder_thread_release+0x27d/0x540 [ 25.332145] binder_ioctl+0xc02/0x1417 [ 25.332150] do_vfs_ioctl+0x1b1/0x1520 [ 25.332154] SyS_ioctl+0x8f/0xc0 [ 25.332159] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.332161] [ 25.332164] The buggy address belongs to the object at ffff8801cdcf32c0 [ 25.332164] which belongs to the cache kmalloc-512 of size 512 [ 25.332169] The buggy address is located 176 bytes inside of [ 25.332169] 512-byte region [ffff8801cdcf32c0, ffff8801cdcf34c0) [ 25.332171] The buggy address belongs to the page: [ 25.332176] page:ffffea0007373cc0 count:1 mapcount:0 mapping:ffff8801cdcf3040 index:0x0 [ 25.332181] flags: 0x2fffc0000000100(slab) [ 25.332190] raw: 02fffc0000000100 ffff8801cdcf3040 0000000000000000 0000000100000006 [ 25.332196] raw: ffffea00071a3ca0 ffffea00071a7c60 ffff8801dac00940 0000000000000000 [ 25.332199] page dumped because: kasan: bad access detected [ 25.332200] [ 25.332201] Memory state around the buggy address: [ 25.332206] ffff8801cdcf3200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.332211] ffff8801cdcf3280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.332215] >ffff8801cdcf3300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.332217] ^ [ 25.332221] ffff8801cdcf3380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.332226] ffff8801cdcf3400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.332227] ================================================================== [ 25.332229] Disabling lock debugging due to kernel taint [ 25.332233] Kernel panic - not syncing: panic_on_warn set ... [ 25.332233] [ 25.332238] CPU: 1 PID: 3496 Comm: syzkaller612395 Tainted: G B 4.15.0-rc7+ #258 [ 25.332242] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.332243] Call Trace: [ 25.332249] dump_stack+0x194/0x257 [ 25.332256] ? arch_local_irq_restore+0x53/0x53 [ 25.332262] ? kasan_end_report+0x32/0x50 [ 25.332268] ? lock_downgrade+0x980/0x980 [ 25.332275] ? vsnprintf+0x1ed/0x1900 [ 25.332282] ? __lock_acquire+0x3cb0/0x3e00 [ 25.332287] panic+0x1e4/0x41c [ 25.332293] ? refcount_error_report+0x214/0x214 [ 25.332300] ? add_taint+0x40/0x50 [ 25.332306] ? add_taint+0x1c/0x50 [ 25.332312] ? __lock_acquire+0x3d4d/0x3e00 [ 25.332318] kasan_end_report+0x50/0x50 [ 25.332324] kasan_report+0x144/0x340 [ 25.332332] __asan_report_load8_noabort+0x14/0x20 [ 25.332337] __lock_acquire+0x3d4d/0x3e00 [ 25.332343] ? __lock_acquire+0x664/0x3e00 [ 25.332349] ? lock_downgrade+0x980/0x980 [ 25.332354] ? lock_downgrade+0x980/0x980 [ 25.332361] ? remove_wait_queue+0x81/0x350 [ 25.332370] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.332377] ? __lock_acquire+0x664/0x3e00 [ 25.332382] ? check_noncircular+0x20/0x20 [ 25.332394] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.332401] ? lock_acquire+0x1d5/0x580 [ 25.332406] ? lock_acquire+0x1d5/0x580 [ 25.332411] ? ep_free+0xf4/0x320 [ 25.332419] ? lock_release+0xa40/0xa40 [ 25.332425] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.332431] ? print_irqtrace_events+0x270/0x270 [ 25.332437] ? rcu_note_context_switch+0x710/0x710 [ 25.332444] ? __might_sleep+0x95/0x190 [ 25.332450] ? ep_free+0xf4/0x320 [ 25.332456] ? __mutex_lock+0x16f/0x1a80 [ 25.332461] ? ep_free+0xf4/0x320 [ 25.332468] ? print_irqtrace_events+0x270/0x270 [ 25.332473] ? ep_free+0xf4/0x320 [ 25.332481] lock_acquire+0x1d5/0x580 [ 25.332486] ? lock_acquire+0x1d5/0x580 [ 25.332492] ? remove_wait_queue+0x81/0x350 [ 25.332498] ? __lock_acquire+0x664/0x3e00 [ 25.332505] ? lock_release+0xa40/0xa40 [ 25.332514] ? lock_acquire+0x1d5/0x580 [ 25.332519] ? lock_acquire+0x1d5/0x580 [ 25.332525] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.332533] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.332538] ? remove_wait_queue+0x81/0x350 [ 25.332545] remove_wait_queue+0x81/0x350 [ 25.332553] ? add_wait_queue+0x290/0x290 [ 25.332558] ? rcutorture_record_progress+0x10/0x10 [ 25.332568] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.332575] ? __kernel_text_address+0xd/0x40 [ 25.332583] ? clear_tfile_check_list+0x370/0x370 [ 25.332590] ? check_noncircular+0x20/0x20 [ 25.332598] ? locks_remove_file+0x3fa/0x5a0 [ 25.332607] ep_free+0x13f/0x320 [ 25.332613] ? ep_remove+0x800/0x800 [ 25.332619] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.332627] ? ep_free+0x320/0x320 [ 25.332633] ep_eventpoll_release+0x44/0x60 [ 25.332643] __fput+0x327/0x7e0 [ 25.332652] ? fput+0x140/0x140 [ 25.332658] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.332666] ____fput+0x15/0x20 [ 25.332673] task_work_run+0x199/0x270 [ 25.332681] ? task_work_cancel+0x210/0x210 [ 25.332687] ? _raw_spin_unlock+0x22/0x30 [ 25.332693] ? switch_task_namespaces+0x87/0xc0 [ 25.332700] do_exit+0x9bb/0x1ad0 [ 25.332707] ? binder_ioctl+0x561/0x1417 [ 25.332713] ? mm_update_next_owner+0x930/0x930 [ 25.332721] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.332729] ? avc_ss_reset+0x110/0x110 [ 25.332734] ? mutex_unlock+0xd/0x10 [ 25.332740] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.332758] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.332763] ? up_read+0x1a/0x40 [ 25.332770] ? rcu_note_context_switch+0x710/0x710 [ 25.332774] ? __fd_install+0x288/0x740 [ 25.332783] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.332788] ? do_vfs_ioctl+0x486/0x1520 [ 25.332793] ? _cond_resched+0x14/0x30 [ 25.332801] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.332808] ? selinux_capable+0x40/0x40 [ 25.332814] ? __alloc_fd+0x750/0x750 [ 25.332822] do_group_exit+0x149/0x400 [ 25.332829] ? SyS_exit+0x30/0x30 [ 25.332835] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.332842] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.332849] SyS_exit_group+0x1d/0x20 [ 25.332856] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.332859] RIP: 0033:0x4429f8 [ 25.332862] RSP: 002b:00007fffb533d238 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.332868] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.332871] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.332874] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.332878] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.332880] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.352804] Dumping ftrace buffer: [ 25.352809] (ftrace buffer empty) [ 25.352811] Kernel Offset: disabled [ 26.477867] Rebooting in 86400 seconds..