[....] Starting enhanced syslogd: rsyslogd[ 11.839617] audit: type=1400 audit(1515624349.061:5): avc: denied { syslog } for pid=3352 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: [ 18.227060] audit: type=1400 audit(1515624355.448:6): avc: denied { map } for pid=3491 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.193' (ECDSA) to the list of known hosts. executing program [ 35.698686] audit: type=1400 audit(1515624372.920:7): avc: denied { map } for pid=3508 comm="syzkaller877119" path="/root/syzkaller877119360" 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 [ 35.702994] ================================================================== [ 35.703009] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 35.703014] Read of size 8 at addr ffff8801cde01178 by task syzkaller877119/3508 [ 35.703014] [ 35.703020] CPU: 1 PID: 3508 Comm: syzkaller877119 Not tainted 4.15.0-rc6-mm1+ #52 [ 35.703022] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.703023] Call Trace: [ 35.703030] dump_stack+0x194/0x257 [ 35.703035] ? arch_local_irq_restore+0x53/0x53 [ 35.703041] ? show_regs_print_info+0x18/0x18 [ 35.703044] ? __lock_acquire+0x664/0x3e00 [ 35.703049] ? __lock_acquire+0x3d4d/0x3e00 [ 35.703056] print_address_description+0x73/0x250 [ 35.703060] ? __lock_acquire+0x3d4d/0x3e00 [ 35.703064] kasan_report+0x23b/0x360 [ 35.703070] __asan_report_load8_noabort+0x14/0x20 [ 35.703073] __lock_acquire+0x3d4d/0x3e00 [ 35.703077] ? lock_downgrade+0x980/0x980 [ 35.703084] ? remove_wait_queue+0x81/0x350 [ 35.703090] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.703094] ? __lock_acquire+0x664/0x3e00 [ 35.703097] ? check_noncircular+0x20/0x20 [ 35.703105] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.703110] ? lock_acquire+0x1d5/0x580 [ 35.703113] ? lock_acquire+0x1d5/0x580 [ 35.703117] ? ep_free+0xf4/0x320 [ 35.703121] ? check_noncircular+0x20/0x20 [ 35.703126] ? lock_release+0xa40/0xa40 [ 35.703130] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.703134] ? print_irqtrace_events+0x270/0x270 [ 35.703139] ? rcu_note_context_switch+0x710/0x710 [ 35.703144] ? __might_sleep+0x95/0x190 [ 35.703147] ? ep_free+0xf4/0x320 [ 35.703153] ? __mutex_lock+0x16f/0x1a80 [ 35.703156] ? ep_free+0xf4/0x320 [ 35.703160] ? print_irqtrace_events+0x270/0x270 [ 35.703163] ? ep_free+0xf4/0x320 [ 35.703168] lock_acquire+0x1d5/0x580 [ 35.703171] ? lock_acquire+0x1d5/0x580 [ 35.703175] ? remove_wait_queue+0x81/0x350 [ 35.703179] ? __lock_acquire+0x664/0x3e00 [ 35.703183] ? lock_release+0xa40/0xa40 [ 35.703189] ? lock_acquire+0x1d5/0x580 [ 35.703192] ? lock_acquire+0x1d5/0x580 [ 35.703196] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.703200] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.703204] ? remove_wait_queue+0x81/0x350 [ 35.703208] remove_wait_queue+0x81/0x350 [ 35.703212] ? rcutorture_record_progress+0x10/0x10 [ 35.703216] ? add_wait_queue+0x290/0x290 [ 35.703220] ? rcutorture_record_progress+0x10/0x10 [ 35.703226] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.703231] ? unwind_get_return_address+0x61/0xa0 [ 35.703236] ? clear_tfile_check_list+0x370/0x370 [ 35.703240] ? check_noncircular+0x20/0x20 [ 35.703245] ? locks_remove_file+0x3fa/0x5a0 [ 35.703251] ep_free+0x13f/0x320 [ 35.703254] ? ep_remove+0x800/0x800 [ 35.703259] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.703263] ? ep_free+0x320/0x320 [ 35.703267] ep_eventpoll_release+0x44/0x60 [ 35.703271] __fput+0x327/0x7e0 [ 35.703276] ? fput+0x140/0x140 [ 35.703279] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.703284] ____fput+0x15/0x20 [ 35.703288] task_work_run+0x199/0x270 [ 35.703292] ? task_work_cancel+0x210/0x210 [ 35.703297] ? _raw_spin_unlock+0x22/0x30 [ 35.703302] ? switch_task_namespaces+0x87/0xc0 [ 35.703308] do_exit+0x9bb/0x1ad0 [ 35.703314] ? binder_ioctl+0x481/0x1417 [ 35.703318] ? mm_update_next_owner+0x930/0x930 [ 35.703322] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.703329] ? avc_ss_reset+0x110/0x110 [ 35.703333] ? mutex_unlock+0xd/0x10 [ 35.703336] ? SyS_epoll_ctl+0x30a/0x1a80 [ 35.703348] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.703351] ? up_read+0x1a/0x40 [ 35.703356] ? rcu_note_context_switch+0x710/0x710 [ 35.703359] ? __fd_install+0x288/0x740 [ 35.703365] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.703369] ? do_vfs_ioctl+0x486/0x1520 [ 35.703372] ? _cond_resched+0x14/0x30 [ 35.703377] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.703382] ? selinux_capable+0x40/0x40 [ 35.703386] ? __alloc_fd+0x750/0x750 [ 35.703391] do_group_exit+0x149/0x400 [ 35.703395] ? SyS_exit+0x30/0x30 [ 35.703400] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.703405] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.703410] SyS_exit_group+0x1d/0x20 [ 35.703413] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.703417] RIP: 0033:0x4429f8 [ 35.703419] RSP: 002b:00007ffe568d1948 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.703423] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.703425] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.703427] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.703429] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.703431] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.703436] [ 35.703438] Allocated by task 3508: [ 35.703442] save_stack+0x43/0xd0 [ 35.703446] kasan_kmalloc+0xad/0xe0 [ 35.703449] kmem_cache_alloc_trace+0x136/0x750 [ 35.703452] binder_get_thread+0x1cf/0x870 [ 35.703454] binder_poll+0x8c/0x390 [ 35.703457] ep_item_poll.isra.10+0xf2/0x320 [ 35.703459] ep_insert+0x6a2/0x1ac0 [ 35.703462] SyS_epoll_ctl+0x12bf/0x1a80 [ 35.703465] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.703465] [ 35.703467] Freed by task 3508: [ 35.703470] save_stack+0x43/0xd0 [ 35.703473] __kasan_slab_free+0x11a/0x170 [ 35.703476] kasan_slab_free+0xe/0x10 [ 35.703479] kfree+0xd9/0x260 [ 35.703482] binder_thread_dec_tmpref+0x27f/0x310 [ 35.703485] binder_thread_release+0x27d/0x540 [ 35.703487] binder_ioctl+0xc02/0x1417 [ 35.703490] do_vfs_ioctl+0x1b1/0x1520 [ 35.703493] SyS_ioctl+0x8f/0xc0 [ 35.703496] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.703497] [ 35.703499] The buggy address belongs to the object at ffff8801cde010c0 [ 35.703499] which belongs to the cache kmalloc-512 of size 512 [ 35.703502] The buggy address is located 184 bytes inside of [ 35.703502] 512-byte region [ffff8801cde010c0, ffff8801cde012c0) [ 35.703503] The buggy address belongs to the page: [ 35.703506] page:ffffea0007378040 count:1 mapcount:0 mapping:ffff8801cde010c0 index:0x0 [ 35.703510] flags: 0x2fffc0000000100(slab) [ 35.703515] raw: 02fffc0000000100 ffff8801cde010c0 0000000000000000 0000000100000006 [ 35.703519] raw: ffffea000715cee0 ffffea0007359820 ffff8801dac00940 0000000000000000 [ 35.703521] page dumped because: kasan: bad access detected [ 35.703521] [ 35.703522] Memory state around the buggy address: [ 35.703525] ffff8801cde01000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.703528] ffff8801cde01080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.703535] >ffff8801cde01100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.703537] ^ [ 35.703539] ffff8801cde01180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.703542] ffff8801cde01200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.703543] ================================================================== [ 35.703544] Disabling lock debugging due to kernel taint [ 35.703546] Kernel panic - not syncing: panic_on_warn set ... [ 35.703546] [ 35.703550] CPU: 1 PID: 3508 Comm: syzkaller877119 Tainted: G B 4.15.0-rc6-mm1+ #52 [ 35.703552] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.703553] Call Trace: [ 35.703558] dump_stack+0x194/0x257 [ 35.703562] ? arch_local_irq_restore+0x53/0x53 [ 35.703566] ? kasan_end_report+0x32/0x50 [ 35.703570] ? lock_downgrade+0x980/0x980 [ 35.703573] ? vsnprintf+0x1ed/0x1900 [ 35.703577] ? __lock_acquire+0x3c50/0x3e00 [ 35.703580] panic+0x1e4/0x41c [ 35.703584] ? refcount_error_report+0x214/0x214 [ 35.703590] ? add_taint+0x40/0x50 [ 35.703594] ? add_taint+0x1c/0x50 [ 35.703600] ? __lock_acquire+0x3d4d/0x3e00 [ 35.703605] kasan_end_report+0x50/0x50 [ 35.703609] kasan_report+0x148/0x360 [ 35.703614] __asan_report_load8_noabort+0x14/0x20 [ 35.703617] __lock_acquire+0x3d4d/0x3e00 [ 35.703621] ? lock_downgrade+0x980/0x980 [ 35.703626] ? remove_wait_queue+0x81/0x350 [ 35.703631] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.703635] ? __lock_acquire+0x664/0x3e00 [ 35.703638] ? check_noncircular+0x20/0x20 [ 35.703645] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.703650] ? lock_acquire+0x1d5/0x580 [ 35.703653] ? lock_acquire+0x1d5/0x580 [ 35.703656] ? ep_free+0xf4/0x320 [ 35.703660] ? check_noncircular+0x20/0x20 [ 35.703664] ? lock_release+0xa40/0xa40 [ 35.703667] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.703671] ? print_irqtrace_events+0x270/0x270 [ 35.703675] ? rcu_note_context_switch+0x710/0x710 [ 35.703679] ? __might_sleep+0x95/0x190 [ 35.703682] ? ep_free+0xf4/0x320 [ 35.703686] ? __mutex_lock+0x16f/0x1a80 [ 35.703688] ? ep_free+0xf4/0x320 [ 35.703693] ? print_irqtrace_events+0x270/0x270 [ 35.703695] ? ep_free+0xf4/0x320 [ 35.703700] lock_acquire+0x1d5/0x580 [ 35.703703] ? lock_acquire+0x1d5/0x580 [ 35.703707] ? remove_wait_queue+0x81/0x350 [ 35.703710] ? __lock_acquire+0x664/0x3e00 [ 35.703715] ? lock_release+0xa40/0xa40 [ 35.703720] ? lock_acquire+0x1d5/0x580 [ 35.703723] ? lock_acquire+0x1d5/0x580 [ 35.703726] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.703730] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.703734] ? remove_wait_queue+0x81/0x350 [ 35.703738] remove_wait_queue+0x81/0x350 [ 35.703742] ? rcutorture_record_progress+0x10/0x10 [ 35.703746] ? add_wait_queue+0x290/0x290 [ 35.703749] ? rcutorture_record_progress+0x10/0x10 [ 35.703754] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.703758] ? unwind_get_return_address+0x61/0xa0 [ 35.703762] ? clear_tfile_check_list+0x370/0x370 [ 35.703767] ? check_noncircular+0x20/0x20 [ 35.703771] ? locks_remove_file+0x3fa/0x5a0 [ 35.703776] ep_free+0x13f/0x320 [ 35.703779] ? ep_remove+0x800/0x800 [ 35.703783] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.703787] ? ep_free+0x320/0x320 [ 35.703790] ep_eventpoll_release+0x44/0x60 [ 35.703793] __fput+0x327/0x7e0 [ 35.703797] ? fput+0x140/0x140 [ 35.703801] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.703805] ____fput+0x15/0x20 [ 35.703808] task_work_run+0x199/0x270 [ 35.703812] ? task_work_cancel+0x210/0x210 [ 35.703816] ? _raw_spin_unlock+0x22/0x30 [ 35.703820] ? switch_task_namespaces+0x87/0xc0 [ 35.703824] do_exit+0x9bb/0x1ad0 [ 35.703828] ? binder_ioctl+0x481/0x1417 [ 35.703832] ? mm_update_next_owner+0x930/0x930 [ 35.703837] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.703842] ? avc_ss_reset+0x110/0x110 [ 35.703845] ? mutex_unlock+0xd/0x10 [ 35.703848] ? SyS_epoll_ctl+0x30a/0x1a80 [ 35.703859] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.703862] ? up_read+0x1a/0x40 [ 35.703866] ? rcu_note_context_switch+0x710/0x710 [ 35.703869] ? __fd_install+0x288/0x740 [ 35.703874] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.703878] ? do_vfs_ioctl+0x486/0x1520 [ 35.703881] ? _cond_resched+0x14/0x30 [ 35.703885] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.703889] ? selinux_capable+0x40/0x40 [ 35.703893] ? __alloc_fd+0x750/0x750 [ 35.703898] do_group_exit+0x149/0x400 [ 35.703902] ? SyS_exit+0x30/0x30 [ 35.703906] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.703910] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.703915] SyS_exit_group+0x1d/0x20 [ 35.703918] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.703920] RIP: 0033:0x4429f8 [ 35.703922] RSP: 002b:00007ffe568d1948 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.703925] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.703927] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.703929] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.703931] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.703933] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.724582] Dumping ftrace buffer: [ 35.724585] (ftrace buffer empty) [ 35.724587] Kernel Offset: disabled [ 36.852164] Rebooting in 86400 seconds..