[....] Starting enhanced syslogd: rsyslogd[ 9.630336] audit: type=1400 audit(1514790565.410:5): avc: denied { syslog } for pid=2988 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: [ 12.196665] audit: type=1400 audit(1514790567.976:6): avc: denied { map } for pid=3123 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.55' (ECDSA) to the list of known hosts. executing program [ 34.003904] audit: type=1400 audit(1514790589.783:7): avc: denied { map } for pid=3142 comm="syzkaller447441" path="/root/syzkaller447441128" 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 [ 34.007217] ================================================================== [ 34.007228] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 34.007232] Read of size 8 at addr ffff8801c8d85b38 by task syzkaller447441/3142 [ 34.007232] [ 34.007237] CPU: 0 PID: 3142 Comm: syzkaller447441 Not tainted 4.15.0-rc4-mm1+ #49 [ 34.007239] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.007241] Call Trace: [ 34.007248] dump_stack+0x194/0x257 [ 34.007253] ? arch_local_irq_restore+0x53/0x53 [ 34.007258] ? show_regs_print_info+0x18/0x18 [ 34.007262] ? print_irqtrace_events+0x270/0x270 [ 34.007266] ? __lock_acquire+0x664/0x3e00 [ 34.007270] ? __lock_acquire+0x3d4d/0x3e00 [ 34.007277] print_address_description+0x73/0x250 [ 34.007280] ? __lock_acquire+0x3d4d/0x3e00 [ 34.007284] kasan_report+0x23b/0x360 [ 34.007289] __asan_report_load8_noabort+0x14/0x20 [ 34.007293] __lock_acquire+0x3d4d/0x3e00 [ 34.007296] ? __lock_acquire+0x664/0x3e00 [ 34.007299] ? lock_downgrade+0x980/0x980 [ 34.007302] ? lock_downgrade+0x980/0x980 [ 34.007308] ? remove_wait_queue+0x81/0x350 [ 34.007314] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.007318] ? __lock_acquire+0x664/0x3e00 [ 34.007321] ? check_noncircular+0x20/0x20 [ 34.007329] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.007333] ? lock_acquire+0x1d5/0x580 [ 34.007336] ? lock_acquire+0x1d5/0x580 [ 34.007341] ? ep_free+0xf4/0x320 [ 34.007346] ? lock_release+0xa40/0xa40 [ 34.007351] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.007355] ? print_irqtrace_events+0x270/0x270 [ 34.007360] ? rcu_note_context_switch+0x710/0x710 [ 34.007364] ? __might_sleep+0x95/0x190 [ 34.007368] ? ep_free+0xf4/0x320 [ 34.007372] ? __mutex_lock+0x16f/0x1a80 [ 34.007375] ? ep_free+0xf4/0x320 [ 34.007379] ? print_irqtrace_events+0x270/0x270 [ 34.007382] ? ep_free+0xf4/0x320 [ 34.007387] lock_acquire+0x1d5/0x580 [ 34.007390] ? lock_acquire+0x1d5/0x580 [ 34.007393] ? remove_wait_queue+0x81/0x350 [ 34.007397] ? __lock_acquire+0x664/0x3e00 [ 34.007401] ? lock_release+0xa40/0xa40 [ 34.007407] ? lock_acquire+0x1d5/0x580 [ 34.007410] ? lock_acquire+0x1d5/0x580 [ 34.007414] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 34.007419] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.007422] ? remove_wait_queue+0x81/0x350 [ 34.007426] remove_wait_queue+0x81/0x350 [ 34.007431] ? add_wait_queue+0x290/0x290 [ 34.007434] ? rcutorture_record_progress+0x10/0x10 [ 34.007441] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 34.007447] ? __kernel_text_address+0xd/0x40 [ 34.007452] ? clear_tfile_check_list+0x370/0x370 [ 34.007456] ? check_noncircular+0x20/0x20 [ 34.007462] ? locks_remove_file+0x3fa/0x5a0 [ 34.007472] ep_free+0x13f/0x320 [ 34.007476] ? ep_remove+0x800/0x800 [ 34.007480] ? fsnotify_first_mark+0x2b0/0x2b0 [ 34.007484] ? ep_free+0x320/0x320 [ 34.007488] ep_eventpoll_release+0x44/0x60 [ 34.007493] __fput+0x327/0x7e0 [ 34.007498] ? fput+0x140/0x140 [ 34.007502] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.007507] ____fput+0x15/0x20 [ 34.007511] task_work_run+0x199/0x270 [ 34.007516] ? task_work_cancel+0x210/0x210 [ 34.007520] ? _raw_spin_unlock+0x22/0x30 [ 34.007524] ? switch_task_namespaces+0x87/0xc0 [ 34.007530] do_exit+0x9bb/0x1ad0 [ 34.007536] ? binder_ioctl+0x551/0x1417 [ 34.007540] ? mm_update_next_owner+0x930/0x930 [ 34.007544] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.007551] ? avc_ss_reset+0x110/0x110 [ 34.007557] ? mutex_unlock+0xd/0x10 [ 34.007561] ? SyS_epoll_ctl+0x30a/0x1a80 [ 34.007573] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.007576] ? up_read+0x1a/0x40 [ 34.007580] ? rcu_note_context_switch+0x710/0x710 [ 34.007584] ? __fd_install+0x288/0x740 [ 34.007589] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.007593] ? do_vfs_ioctl+0x486/0x1520 [ 34.007597] ? _cond_resched+0x14/0x30 [ 34.007601] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.007607] ? selinux_capable+0x40/0x40 [ 34.007611] ? __alloc_fd+0x750/0x750 [ 34.007616] do_group_exit+0x149/0x400 [ 34.007620] ? SyS_exit+0x30/0x30 [ 34.007624] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.007630] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.007635] SyS_exit_group+0x1d/0x20 [ 34.007639] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.007641] RIP: 0033:0x4429f8 [ 34.007643] RSP: 002b:00007ffe2489fce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.007648] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 34.007650] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.007652] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.007654] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 34.007656] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 34.007661] [ 34.007663] Allocated by task 3142: [ 34.007667] save_stack+0x43/0xd0 [ 34.007670] kasan_kmalloc+0xad/0xe0 [ 34.007673] kmem_cache_alloc_trace+0x136/0x750 [ 34.007676] binder_get_thread+0x1cf/0x870 [ 34.007679] binder_poll+0x8c/0x390 [ 34.007681] ep_item_poll.isra.10+0xf2/0x320 [ 34.007684] ep_insert+0x6a2/0x1ac0 [ 34.007687] SyS_epoll_ctl+0x12bf/0x1a80 [ 34.007690] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.007691] [ 34.007692] Freed by task 3142: [ 34.007695] save_stack+0x43/0xd0 [ 34.007698] kasan_slab_free+0x71/0xc0 [ 34.007700] kfree+0xd6/0x260 [ 34.007703] binder_thread_dec_tmpref+0x27f/0x310 [ 34.007706] binder_thread_release+0x27d/0x540 [ 34.007708] binder_ioctl+0xc02/0x1417 [ 34.007711] do_vfs_ioctl+0x1b1/0x1520 [ 34.007713] SyS_ioctl+0x8f/0xc0 [ 34.007716] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.007717] [ 34.007720] The buggy address belongs to the object at ffff8801c8d85a80 [ 34.007720] which belongs to the cache kmalloc-512 of size 512 [ 34.007722] The buggy address is located 184 bytes inside of [ 34.007722] 512-byte region [ffff8801c8d85a80, ffff8801c8d85c80) [ 34.007723] The buggy address belongs to the page: [ 34.007726] page:ffffea0007236140 count:1 mapcount:0 mapping:ffff8801c8d85080 index:0x0 [ 34.007730] flags: 0x2fffc0000000100(slab) [ 34.007735] raw: 02fffc0000000100 ffff8801c8d85080 0000000000000000 0000000100000006 [ 34.007739] raw: ffffea0007285e60 ffffea0007214120 ffff8801dac00940 0000000000000000 [ 34.007741] page dumped because: kasan: bad access detected [ 34.007741] [ 34.007742] Memory state around the buggy address: [ 34.007745] ffff8801c8d85a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.007748] ffff8801c8d85a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.007750] >ffff8801c8d85b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.007752] ^ [ 34.007755] ffff8801c8d85b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.007757] ffff8801c8d85c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.007758] ================================================================== [ 34.007760] Disabling lock debugging due to kernel taint [ 34.007762] Kernel panic - not syncing: panic_on_warn set ... [ 34.007762] [ 34.007766] CPU: 0 PID: 3142 Comm: syzkaller447441 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 34.007768] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.007768] Call Trace: [ 34.007772] dump_stack+0x194/0x257 [ 34.007776] ? arch_local_irq_restore+0x53/0x53 [ 34.007779] ? kasan_end_report+0x32/0x50 [ 34.007783] ? lock_downgrade+0x980/0x980 [ 34.007786] ? vsnprintf+0x1ed/0x1900 [ 34.007790] ? __lock_acquire+0x3c90/0x3e00 [ 34.007793] panic+0x1e4/0x41c [ 34.007797] ? refcount_error_report+0x214/0x214 [ 34.007801] ? add_taint+0x40/0x50 [ 34.007804] ? add_taint+0x1c/0x50 [ 34.007808] ? __lock_acquire+0x3d4d/0x3e00 [ 34.007812] kasan_end_report+0x50/0x50 [ 34.007815] kasan_report+0x148/0x360 [ 34.007820] __asan_report_load8_noabort+0x14/0x20 [ 34.007823] __lock_acquire+0x3d4d/0x3e00 [ 34.007826] ? __lock_acquire+0x664/0x3e00 [ 34.007830] ? lock_downgrade+0x980/0x980 [ 34.007833] ? lock_downgrade+0x980/0x980 [ 34.007837] ? remove_wait_queue+0x81/0x350 [ 34.007842] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.007846] ? __lock_acquire+0x664/0x3e00 [ 34.007849] ? check_noncircular+0x20/0x20 [ 34.007855] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.007859] ? lock_acquire+0x1d5/0x580 [ 34.007862] ? lock_acquire+0x1d5/0x580 [ 34.007866] ? ep_free+0xf4/0x320 [ 34.007870] ? lock_release+0xa40/0xa40 [ 34.007874] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.007877] ? print_irqtrace_events+0x270/0x270 [ 34.007881] ? rcu_note_context_switch+0x710/0x710 [ 34.007885] ? __might_sleep+0x95/0x190 [ 34.007888] ? ep_free+0xf4/0x320 [ 34.007891] ? __mutex_lock+0x16f/0x1a80 [ 34.007894] ? ep_free+0xf4/0x320 [ 34.007898] ? print_irqtrace_events+0x270/0x270 [ 34.007901] ? ep_free+0xf4/0x320 [ 34.007906] lock_acquire+0x1d5/0x580 [ 34.007909] ? lock_acquire+0x1d5/0x580 [ 34.007912] ? remove_wait_queue+0x81/0x350 [ 34.007916] ? __lock_acquire+0x664/0x3e00 [ 34.007920] ? lock_release+0xa40/0xa40 [ 34.007925] ? lock_acquire+0x1d5/0x580 [ 34.007928] ? lock_acquire+0x1d5/0x580 [ 34.007931] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 34.007935] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.007939] ? remove_wait_queue+0x81/0x350 [ 34.007942] remove_wait_queue+0x81/0x350 [ 34.007947] ? add_wait_queue+0x290/0x290 [ 34.007950] ? rcutorture_record_progress+0x10/0x10 [ 34.007956] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 34.007960] ? __kernel_text_address+0xd/0x40 [ 34.007964] ? clear_tfile_check_list+0x370/0x370 [ 34.007968] ? check_noncircular+0x20/0x20 [ 34.007973] ? locks_remove_file+0x3fa/0x5a0 [ 34.007978] ep_free+0x13f/0x320 [ 34.007981] ? ep_remove+0x800/0x800 [ 34.007985] ? fsnotify_first_mark+0x2b0/0x2b0 [ 34.007989] ? ep_free+0x320/0x320 [ 34.007992] ep_eventpoll_release+0x44/0x60 [ 34.007996] __fput+0x327/0x7e0 [ 34.008000] ? fput+0x140/0x140 [ 34.008007] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.008012] ____fput+0x15/0x20 [ 34.008016] task_work_run+0x199/0x270 [ 34.008020] ? task_work_cancel+0x210/0x210 [ 34.008023] ? _raw_spin_unlock+0x22/0x30 [ 34.008027] ? switch_task_namespaces+0x87/0xc0 [ 34.008031] do_exit+0x9bb/0x1ad0 [ 34.008035] ? binder_ioctl+0x551/0x1417 [ 34.008039] ? mm_update_next_owner+0x930/0x930 [ 34.008043] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.008048] ? avc_ss_reset+0x110/0x110 [ 34.008051] ? mutex_unlock+0xd/0x10 [ 34.008055] ? SyS_epoll_ctl+0x30a/0x1a80 [ 34.008065] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.008068] ? up_read+0x1a/0x40 [ 34.008071] ? rcu_note_context_switch+0x710/0x710 [ 34.008074] ? __fd_install+0x288/0x740 [ 34.008079] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.008082] ? do_vfs_ioctl+0x486/0x1520 [ 34.008085] ? _cond_resched+0x14/0x30 [ 34.008090] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.008094] ? selinux_capable+0x40/0x40 [ 34.008098] ? __alloc_fd+0x750/0x750 [ 34.008102] do_group_exit+0x149/0x400 [ 34.008106] ? SyS_exit+0x30/0x30 [ 34.008110] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.008114] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.008118] SyS_exit_group+0x1d/0x20 [ 34.008122] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.008124] RIP: 0033:0x4429f8 [ 34.008126] RSP: 002b:00007ffe2489fce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.008129] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 34.008131] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.008133] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.008135] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 34.008137] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 34.029784] Dumping ftrace buffer: [ 34.029787] (ftrace buffer empty) [ 34.029789] Kernel Offset: disabled [ 35.152609] Rebooting in 86400 seconds..