[....] Starting enhanced syslogd: rsyslogd[ 12.064836] audit: type=1400 audit(1515013632.057:5): avc: denied { syslog } for pid=3338 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 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.100924] audit: type=1400 audit(1515013637.093:6): avc: denied { map } for pid=3477 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.12' (ECDSA) to the list of known hosts. executing program [ 31.243549] audit: type=1400 audit(1515013651.236:7): avc: denied { map } for pid=3494 comm="syzkaller212305" path="/root/syzkaller212305730" 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 [ 31.248964] ================================================================== [ 31.248975] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 31.248978] Read of size 8 at addr ffff8801c7df6af0 by task syzkaller212305/3494 [ 31.248979] [ 31.248985] CPU: 0 PID: 3494 Comm: syzkaller212305 Not tainted 4.15.0-rc6+ #246 [ 31.248987] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.248989] Call Trace: [ 31.248997] dump_stack+0x194/0x257 [ 31.249006] ? arch_local_irq_restore+0x53/0x53 [ 31.249012] ? show_regs_print_info+0x18/0x18 [ 31.249016] ? print_irqtrace_events+0x270/0x270 [ 31.249020] ? __lock_acquire+0x664/0x3e00 [ 31.249024] ? __lock_acquire+0x3d4d/0x3e00 [ 31.249031] print_address_description+0x73/0x250 [ 31.249035] ? __lock_acquire+0x3d4d/0x3e00 [ 31.249039] kasan_report+0x25b/0x340 [ 31.249045] __asan_report_load8_noabort+0x14/0x20 [ 31.249048] __lock_acquire+0x3d4d/0x3e00 [ 31.249052] ? __lock_acquire+0x664/0x3e00 [ 31.249055] ? lock_downgrade+0x980/0x980 [ 31.249063] ? lock_downgrade+0x980/0x980 [ 31.249069] ? remove_wait_queue+0x81/0x350 [ 31.249074] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.249078] ? __lock_acquire+0x664/0x3e00 [ 31.249082] ? check_noncircular+0x20/0x20 [ 31.249090] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.249094] ? lock_acquire+0x1d5/0x580 [ 31.249097] ? lock_acquire+0x1d5/0x580 [ 31.249103] ? ep_free+0xf4/0x320 [ 31.249108] ? lock_release+0xa40/0xa40 [ 31.249113] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.249117] ? print_irqtrace_events+0x270/0x270 [ 31.249123] ? rcu_note_context_switch+0x710/0x710 [ 31.249127] ? __might_sleep+0x95/0x190 [ 31.249131] ? ep_free+0xf4/0x320 [ 31.249136] ? __mutex_lock+0x16f/0x1a80 [ 31.249139] ? ep_free+0xf4/0x320 [ 31.249143] ? print_irqtrace_events+0x270/0x270 [ 31.249146] ? ep_free+0xf4/0x320 [ 31.249151] lock_acquire+0x1d5/0x580 [ 31.249154] ? lock_acquire+0x1d5/0x580 [ 31.249158] ? remove_wait_queue+0x81/0x350 [ 31.249162] ? __lock_acquire+0x664/0x3e00 [ 31.249166] ? lock_release+0xa40/0xa40 [ 31.249172] ? lock_acquire+0x1d5/0x580 [ 31.249175] ? lock_acquire+0x1d5/0x580 [ 31.249179] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 31.249184] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.249188] ? remove_wait_queue+0x81/0x350 [ 31.249192] remove_wait_queue+0x81/0x350 [ 31.249197] ? add_wait_queue+0x290/0x290 [ 31.249200] ? rcutorture_record_progress+0x10/0x10 [ 31.249207] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 31.249212] ? __kernel_text_address+0xd/0x40 [ 31.249217] ? clear_tfile_check_list+0x370/0x370 [ 31.249222] ? check_noncircular+0x20/0x20 [ 31.249228] ? locks_remove_file+0x3fa/0x5a0 [ 31.249234] ep_free+0x13f/0x320 [ 31.249238] ? ep_remove+0x800/0x800 [ 31.249241] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.249246] ? ep_free+0x320/0x320 [ 31.249250] ep_eventpoll_release+0x44/0x60 [ 31.249256] __fput+0x327/0x7e0 [ 31.249261] ? fput+0x140/0x140 [ 31.249266] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.249271] ____fput+0x15/0x20 [ 31.249275] task_work_run+0x199/0x270 [ 31.249280] ? task_work_cancel+0x210/0x210 [ 31.249284] ? _raw_spin_unlock+0x22/0x30 [ 31.249287] ? switch_task_namespaces+0x87/0xc0 [ 31.249293] do_exit+0x9bb/0x1ad0 [ 31.249299] ? binder_ioctl+0x551/0x1417 [ 31.249303] ? mm_update_next_owner+0x930/0x930 [ 31.249308] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.249315] ? avc_ss_reset+0x110/0x110 [ 31.249318] ? mutex_unlock+0xd/0x10 [ 31.249322] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 31.249334] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.249337] ? up_read+0x1a/0x40 [ 31.249341] ? rcu_note_context_switch+0x710/0x710 [ 31.249344] ? __fd_install+0x288/0x740 [ 31.249350] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.249354] ? do_vfs_ioctl+0x486/0x1520 [ 31.249357] ? _cond_resched+0x14/0x30 [ 31.249361] ? ioctl_preallocate+0x2b0/0x2b0 [ 31.249366] ? selinux_capable+0x40/0x40 [ 31.249370] ? __alloc_fd+0x750/0x750 [ 31.249375] do_group_exit+0x149/0x400 [ 31.249380] ? SyS_exit+0x30/0x30 [ 31.249384] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.249389] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.249394] SyS_exit_group+0x1d/0x20 [ 31.249398] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.249401] RIP: 0033:0x4429f8 [ 31.249403] RSP: 002b:00007ffd1150b188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.249407] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 31.249410] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.249412] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.249414] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 31.249416] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 31.249422] [ 31.249423] Allocated by task 3494: [ 31.249427] save_stack+0x43/0xd0 [ 31.249430] kasan_kmalloc+0xad/0xe0 [ 31.249433] kmem_cache_alloc_trace+0x136/0x750 [ 31.249436] binder_get_thread+0x1cf/0x870 [ 31.249438] binder_poll+0x8c/0x390 [ 31.249441] ep_item_poll.isra.10+0xec/0x320 [ 31.249444] ep_insert+0x6a3/0x1b10 [ 31.249447] SyS_epoll_ctl+0x12e4/0x1ab0 [ 31.249450] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.249451] [ 31.249452] Freed by task 3494: [ 31.249455] save_stack+0x43/0xd0 [ 31.249458] kasan_slab_free+0x71/0xc0 [ 31.249460] kfree+0xd6/0x260 [ 31.249463] binder_thread_dec_tmpref+0x27f/0x310 [ 31.249465] binder_thread_release+0x27d/0x540 [ 31.249468] binder_ioctl+0xc02/0x1417 [ 31.249471] do_vfs_ioctl+0x1b1/0x1520 [ 31.249473] SyS_ioctl+0x8f/0xc0 [ 31.249476] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.249477] [ 31.249480] The buggy address belongs to the object at ffff8801c7df6a40 [ 31.249480] which belongs to the cache kmalloc-512 of size 512 [ 31.249483] The buggy address is located 176 bytes inside of [ 31.249483] 512-byte region [ffff8801c7df6a40, ffff8801c7df6c40) [ 31.249484] The buggy address belongs to the page: [ 31.249488] page:0000000015e6e700 count:1 mapcount:0 mapping:0000000055ce5947 index:0x0 [ 31.249491] flags: 0x2fffc0000000100(slab) [ 31.249497] raw: 02fffc0000000100 ffff8801c7df6040 0000000000000000 0000000100000006 [ 31.249501] raw: ffffea0007381320 ffffea00071f80e0 ffff8801dac00940 0000000000000000 [ 31.249502] page dumped because: kasan: bad access detected [ 31.249503] [ 31.249504] Memory state around the buggy address: [ 31.249507] ffff8801c7df6980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.249509] ffff8801c7df6a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 31.249512] >ffff8801c7df6a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.249514] ^ [ 31.249516] ffff8801c7df6b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.249519] ffff8801c7df6b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.249520] ================================================================== [ 31.249521] Disabling lock debugging due to kernel taint [ 31.249523] Kernel panic - not syncing: panic_on_warn set ... [ 31.249523] [ 31.249527] CPU: 0 PID: 3494 Comm: syzkaller212305 Tainted: G B 4.15.0-rc6+ #246 [ 31.249529] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.249529] Call Trace: [ 31.249534] dump_stack+0x194/0x257 [ 31.249538] ? arch_local_irq_restore+0x53/0x53 [ 31.249541] ? kasan_end_report+0x32/0x50 [ 31.249545] ? lock_downgrade+0x980/0x980 [ 31.249550] ? vsnprintf+0x1ed/0x1900 [ 31.249553] ? __lock_acquire+0x3cb0/0x3e00 [ 31.249557] panic+0x1e4/0x41c [ 31.249560] ? refcount_error_report+0x214/0x214 [ 31.249564] ? add_taint+0x40/0x50 [ 31.249567] ? add_taint+0x1c/0x50 [ 31.249571] ? __lock_acquire+0x3d4d/0x3e00 [ 31.249575] kasan_end_report+0x50/0x50 [ 31.249578] kasan_report+0x144/0x340 [ 31.249583] __asan_report_load8_noabort+0x14/0x20 [ 31.249586] __lock_acquire+0x3d4d/0x3e00 [ 31.249589] ? __lock_acquire+0x664/0x3e00 [ 31.249593] ? lock_downgrade+0x980/0x980 [ 31.249596] ? lock_downgrade+0x980/0x980 [ 31.249600] ? remove_wait_queue+0x81/0x350 [ 31.249605] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.249609] ? __lock_acquire+0x664/0x3e00 [ 31.249612] ? check_noncircular+0x20/0x20 [ 31.249619] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 31.249623] ? lock_acquire+0x1d5/0x580 [ 31.249626] ? lock_acquire+0x1d5/0x580 [ 31.249629] ? ep_free+0xf4/0x320 [ 31.249633] ? lock_release+0xa40/0xa40 [ 31.249637] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.249641] ? print_irqtrace_events+0x270/0x270 [ 31.249644] ? rcu_note_context_switch+0x710/0x710 [ 31.249649] ? __might_sleep+0x95/0x190 [ 31.249652] ? ep_free+0xf4/0x320 [ 31.249655] ? __mutex_lock+0x16f/0x1a80 [ 31.249658] ? ep_free+0xf4/0x320 [ 31.249662] ? print_irqtrace_events+0x270/0x270 [ 31.249665] ? ep_free+0xf4/0x320 [ 31.249670] lock_acquire+0x1d5/0x580 [ 31.249673] ? lock_acquire+0x1d5/0x580 [ 31.249676] ? remove_wait_queue+0x81/0x350 [ 31.249679] ? __lock_acquire+0x664/0x3e00 [ 31.249684] ? lock_release+0xa40/0xa40 [ 31.249689] ? lock_acquire+0x1d5/0x580 [ 31.249692] ? lock_acquire+0x1d5/0x580 [ 31.249695] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 31.249700] _raw_spin_lock_irqsave+0x96/0xc0 [ 31.249703] ? remove_wait_queue+0x81/0x350 [ 31.249707] remove_wait_queue+0x81/0x350 [ 31.249711] ? add_wait_queue+0x290/0x290 [ 31.249715] ? rcutorture_record_progress+0x10/0x10 [ 31.249720] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 31.249724] ? __kernel_text_address+0xd/0x40 [ 31.249729] ? clear_tfile_check_list+0x370/0x370 [ 31.249733] ? check_noncircular+0x20/0x20 [ 31.249738] ? locks_remove_file+0x3fa/0x5a0 [ 31.249743] ep_free+0x13f/0x320 [ 31.249747] ? ep_remove+0x800/0x800 [ 31.249750] ? fsnotify_first_mark+0x2b0/0x2b0 [ 31.249754] ? ep_free+0x320/0x320 [ 31.249758] ep_eventpoll_release+0x44/0x60 [ 31.249761] __fput+0x327/0x7e0 [ 31.249766] ? fput+0x140/0x140 [ 31.249770] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.249775] ____fput+0x15/0x20 [ 31.249779] task_work_run+0x199/0x270 [ 31.249783] ? task_work_cancel+0x210/0x210 [ 31.249787] ? _raw_spin_unlock+0x22/0x30 [ 31.249790] ? switch_task_namespaces+0x87/0xc0 [ 31.249795] do_exit+0x9bb/0x1ad0 [ 31.249799] ? binder_ioctl+0x551/0x1417 [ 31.249802] ? mm_update_next_owner+0x930/0x930 [ 31.249806] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.249811] ? avc_ss_reset+0x110/0x110 [ 31.249814] ? mutex_unlock+0xd/0x10 [ 31.249818] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 31.249828] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 31.249831] ? up_read+0x1a/0x40 [ 31.249835] ? rcu_note_context_switch+0x710/0x710 [ 31.249838] ? __fd_install+0x288/0x740 [ 31.249843] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 31.249846] ? do_vfs_ioctl+0x486/0x1520 [ 31.249848] ? _cond_resched+0x14/0x30 [ 31.249853] ? ioctl_preallocate+0x2b0/0x2b0 [ 31.249857] ? selinux_capable+0x40/0x40 [ 31.249861] ? __alloc_fd+0x750/0x750 [ 31.249865] do_group_exit+0x149/0x400 [ 31.249869] ? SyS_exit+0x30/0x30 [ 31.249873] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.249877] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.249881] SyS_exit_group+0x1d/0x20 [ 31.249885] entry_SYSCALL_64_fastpath+0x23/0x9a [ 31.249887] RIP: 0033:0x4429f8 [ 31.249889] RSP: 002b:00007ffd1150b188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.249893] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 31.249894] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.249897] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.249898] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 31.249900] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 31.269443] Dumping ftrace buffer: [ 31.269447] (ftrace buffer empty) [ 31.269449] Kernel Offset: disabled [ 32.393682] Rebooting in 86400 seconds..