[....] Starting enhanced syslogd: rsyslogd[ 13.583438] audit: type=1400 audit(1515763819.642:5): avc: denied { syslog } for pid=3351 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.879605] audit: type=1400 audit(1515763824.938: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.211' (ECDSA) to the list of known hosts. executing program [ 35.830583] audit: type=1400 audit(1515763841.889:7): avc: denied { map } for pid=3508 comm="syzkaller551429" path="/root/syzkaller551429968" 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.835308] ================================================================== [ 35.835320] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 35.835324] Read of size 8 at addr ffff8801cde34d70 by task syzkaller551429/3508 [ 35.835325] [ 35.835330] CPU: 1 PID: 3508 Comm: syzkaller551429 Not tainted 4.15.0-rc7+ #258 [ 35.835333] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.835335] Call Trace: [ 35.835343] dump_stack+0x194/0x257 [ 35.835348] ? arch_local_irq_restore+0x53/0x53 [ 35.835354] ? show_regs_print_info+0x18/0x18 [ 35.835357] ? print_irqtrace_events+0x270/0x270 [ 35.835361] ? __lock_acquire+0x664/0x3e00 [ 35.835365] ? __lock_acquire+0x3d4d/0x3e00 [ 35.835371] print_address_description+0x73/0x250 [ 35.835375] ? __lock_acquire+0x3d4d/0x3e00 [ 35.835379] kasan_report+0x25b/0x340 [ 35.835385] __asan_report_load8_noabort+0x14/0x20 [ 35.835388] __lock_acquire+0x3d4d/0x3e00 [ 35.835392] ? __lock_acquire+0x664/0x3e00 [ 35.835395] ? lock_downgrade+0x980/0x980 [ 35.835399] ? lock_downgrade+0x980/0x980 [ 35.835406] ? remove_wait_queue+0x81/0x350 [ 35.835411] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.835415] ? __lock_acquire+0x664/0x3e00 [ 35.835419] ? check_noncircular+0x20/0x20 [ 35.835426] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.835431] ? lock_acquire+0x1d5/0x580 [ 35.835434] ? lock_acquire+0x1d5/0x580 [ 35.835439] ? ep_free+0xf4/0x320 [ 35.835445] ? lock_release+0xa40/0xa40 [ 35.835449] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.835453] ? print_irqtrace_events+0x270/0x270 [ 35.835460] ? rcu_note_context_switch+0x710/0x710 [ 35.835465] ? __might_sleep+0x95/0x190 [ 35.835468] ? ep_free+0xf4/0x320 [ 35.835474] ? __mutex_lock+0x16f/0x1a80 [ 35.835477] ? ep_free+0xf4/0x320 [ 35.835481] ? print_irqtrace_events+0x270/0x270 [ 35.835484] ? ep_free+0xf4/0x320 [ 35.835490] lock_acquire+0x1d5/0x580 [ 35.835493] ? lock_acquire+0x1d5/0x580 [ 35.835497] ? remove_wait_queue+0x81/0x350 [ 35.835500] ? __lock_acquire+0x664/0x3e00 [ 35.835505] ? lock_release+0xa40/0xa40 [ 35.835511] ? lock_acquire+0x1d5/0x580 [ 35.835514] ? lock_acquire+0x1d5/0x580 [ 35.835518] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.835524] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.835528] ? remove_wait_queue+0x81/0x350 [ 35.835532] remove_wait_queue+0x81/0x350 [ 35.835537] ? add_wait_queue+0x290/0x290 [ 35.835540] ? rcutorture_record_progress+0x10/0x10 [ 35.835547] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.835552] ? __kernel_text_address+0xd/0x40 [ 35.835557] ? clear_tfile_check_list+0x370/0x370 [ 35.835562] ? check_noncircular+0x20/0x20 [ 35.835568] ? locks_remove_file+0x3fa/0x5a0 [ 35.835574] ep_free+0x13f/0x320 [ 35.835577] ? ep_remove+0x800/0x800 [ 35.835581] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.835586] ? ep_free+0x320/0x320 [ 35.835590] ep_eventpoll_release+0x44/0x60 [ 35.835595] __fput+0x327/0x7e0 [ 35.835600] ? fput+0x140/0x140 [ 35.835604] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.835610] ____fput+0x15/0x20 [ 35.835614] task_work_run+0x199/0x270 [ 35.835619] ? task_work_cancel+0x210/0x210 [ 35.835623] ? _raw_spin_unlock+0x22/0x30 [ 35.835627] ? switch_task_namespaces+0x87/0xc0 [ 35.835632] do_exit+0x9bb/0x1ad0 [ 35.835639] ? binder_ioctl+0x561/0x1417 [ 35.835643] ? mm_update_next_owner+0x930/0x930 [ 35.835647] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.835654] ? avc_ss_reset+0x110/0x110 [ 35.835658] ? mutex_unlock+0xd/0x10 [ 35.835662] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 35.835674] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.835677] ? up_read+0x1a/0x40 [ 35.835681] ? rcu_note_context_switch+0x710/0x710 [ 35.835685] ? __fd_install+0x288/0x740 [ 35.835690] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.835694] ? do_vfs_ioctl+0x486/0x1520 [ 35.835697] ? _cond_resched+0x14/0x30 [ 35.835702] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.835707] ? selinux_capable+0x40/0x40 [ 35.835711] ? __alloc_fd+0x750/0x750 [ 35.835716] do_group_exit+0x149/0x400 [ 35.835720] ? SyS_exit+0x30/0x30 [ 35.835725] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.835730] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.835735] SyS_exit_group+0x1d/0x20 [ 35.835739] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.835742] RIP: 0033:0x4429f8 [ 35.835744] RSP: 002b:00007ffc848343d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.835748] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.835751] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.835753] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.835755] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.835757] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.835762] [ 35.835764] Allocated by task 3508: [ 35.835768] save_stack+0x43/0xd0 [ 35.835771] kasan_kmalloc+0xad/0xe0 [ 35.835773] kmem_cache_alloc_trace+0x136/0x750 [ 35.835776] binder_get_thread+0x1cf/0x870 [ 35.835779] binder_poll+0x8c/0x390 [ 35.835782] ep_item_poll.isra.10+0xec/0x320 [ 35.835785] ep_insert+0x6a3/0x1b10 [ 35.835789] SyS_epoll_ctl+0x12e4/0x1ab0 [ 35.835792] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.835793] [ 35.835794] Freed by task 3508: [ 35.835797] save_stack+0x43/0xd0 [ 35.835800] kasan_slab_free+0x71/0xc0 [ 35.835802] kfree+0xd6/0x260 [ 35.835805] binder_thread_dec_tmpref+0x27f/0x310 [ 35.835808] binder_thread_release+0x27d/0x540 [ 35.835811] binder_ioctl+0xc02/0x1417 [ 35.835813] do_vfs_ioctl+0x1b1/0x1520 [ 35.835816] SyS_ioctl+0x8f/0xc0 [ 35.835819] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.835820] [ 35.835823] The buggy address belongs to the object at ffff8801cde34cc0 [ 35.835823] which belongs to the cache kmalloc-512 of size 512 [ 35.835826] The buggy address is located 176 bytes inside of [ 35.835826] 512-byte region [ffff8801cde34cc0, ffff8801cde34ec0) [ 35.835827] The buggy address belongs to the page: [ 35.835830] page:ffffea0007378d00 count:1 mapcount:0 mapping:ffff8801cde34040 index:0x0 [ 35.835834] flags: 0x2fffc0000000100(slab) [ 35.835840] raw: 02fffc0000000100 ffff8801cde34040 0000000000000000 0000000100000006 [ 35.835844] raw: ffffea00071d9360 ffffea00071d9660 ffff8801dac00940 0000000000000000 [ 35.835845] page dumped because: kasan: bad access detected [ 35.835846] [ 35.835847] Memory state around the buggy address: [ 35.835850] ffff8801cde34c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 35.835853] ffff8801cde34c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.835855] >ffff8801cde34d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.835857] ^ [ 35.835859] ffff8801cde34d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.835862] ffff8801cde34e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.835863] ================================================================== [ 35.835864] Disabling lock debugging due to kernel taint [ 35.835866] Kernel panic - not syncing: panic_on_warn set ... [ 35.835866] [ 35.835870] CPU: 1 PID: 3508 Comm: syzkaller551429 Tainted: G B 4.15.0-rc7+ #258 [ 35.835872] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.835873] Call Trace: [ 35.835877] dump_stack+0x194/0x257 [ 35.835881] ? arch_local_irq_restore+0x53/0x53 [ 35.835885] ? kasan_end_report+0x32/0x50 [ 35.835889] ? lock_downgrade+0x980/0x980 [ 35.835893] ? vsnprintf+0x1ed/0x1900 [ 35.835897] ? __lock_acquire+0x3cb0/0x3e00 [ 35.835900] panic+0x1e4/0x41c [ 35.835904] ? refcount_error_report+0x214/0x214 [ 35.835908] ? add_taint+0x40/0x50 [ 35.835911] ? add_taint+0x1c/0x50 [ 35.835915] ? __lock_acquire+0x3d4d/0x3e00 [ 35.835919] kasan_end_report+0x50/0x50 [ 35.835922] kasan_report+0x144/0x340 [ 35.835927] __asan_report_load8_noabort+0x14/0x20 [ 35.835931] __lock_acquire+0x3d4d/0x3e00 [ 35.835934] ? __lock_acquire+0x664/0x3e00 [ 35.835937] ? lock_downgrade+0x980/0x980 [ 35.835941] ? lock_downgrade+0x980/0x980 [ 35.835945] ? remove_wait_queue+0x81/0x350 [ 35.835950] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.835954] ? __lock_acquire+0x664/0x3e00 [ 35.835957] ? check_noncircular+0x20/0x20 [ 35.835964] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.835968] ? lock_acquire+0x1d5/0x580 [ 35.835972] ? lock_acquire+0x1d5/0x580 [ 35.835975] ? ep_free+0xf4/0x320 [ 35.835980] ? lock_release+0xa40/0xa40 [ 35.835983] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.835987] ? print_irqtrace_events+0x270/0x270 [ 35.835991] ? rcu_note_context_switch+0x710/0x710 [ 35.835996] ? __might_sleep+0x95/0x190 [ 35.835999] ? ep_free+0xf4/0x320 [ 35.836006] ? __mutex_lock+0x16f/0x1a80 [ 35.836009] ? ep_free+0xf4/0x320 [ 35.836013] ? print_irqtrace_events+0x270/0x270 [ 35.836016] ? ep_free+0xf4/0x320 [ 35.836021] lock_acquire+0x1d5/0x580 [ 35.836024] ? lock_acquire+0x1d5/0x580 [ 35.836028] ? remove_wait_queue+0x81/0x350 [ 35.836032] ? __lock_acquire+0x664/0x3e00 [ 35.836036] ? lock_release+0xa40/0xa40 [ 35.836041] ? lock_acquire+0x1d5/0x580 [ 35.836044] ? lock_acquire+0x1d5/0x580 [ 35.836048] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.836053] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.836064] ? remove_wait_queue+0x81/0x350 [ 35.836068] remove_wait_queue+0x81/0x350 [ 35.836073] ? add_wait_queue+0x290/0x290 [ 35.836076] ? rcutorture_record_progress+0x10/0x10 [ 35.836082] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.836086] ? __kernel_text_address+0xd/0x40 [ 35.836091] ? clear_tfile_check_list+0x370/0x370 [ 35.836095] ? check_noncircular+0x20/0x20 [ 35.836100] ? locks_remove_file+0x3fa/0x5a0 [ 35.836106] ep_free+0x13f/0x320 [ 35.836109] ? ep_remove+0x800/0x800 [ 35.836113] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.836117] ? ep_free+0x320/0x320 [ 35.836121] ep_eventpoll_release+0x44/0x60 [ 35.836125] __fput+0x327/0x7e0 [ 35.836130] ? fput+0x140/0x140 [ 35.836134] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.836139] ____fput+0x15/0x20 [ 35.836143] task_work_run+0x199/0x270 [ 35.836147] ? task_work_cancel+0x210/0x210 [ 35.836151] ? _raw_spin_unlock+0x22/0x30 [ 35.836155] ? switch_task_namespaces+0x87/0xc0 [ 35.836159] do_exit+0x9bb/0x1ad0 [ 35.836163] ? binder_ioctl+0x561/0x1417 [ 35.836167] ? mm_update_next_owner+0x930/0x930 [ 35.836172] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.836176] ? avc_ss_reset+0x110/0x110 [ 35.836180] ? mutex_unlock+0xd/0x10 [ 35.836183] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 35.836193] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.836196] ? up_read+0x1a/0x40 [ 35.836200] ? rcu_note_context_switch+0x710/0x710 [ 35.836203] ? __fd_install+0x288/0x740 [ 35.836208] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.836212] ? do_vfs_ioctl+0x486/0x1520 [ 35.836214] ? _cond_resched+0x14/0x30 [ 35.836219] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.836224] ? selinux_capable+0x40/0x40 [ 35.836227] ? __alloc_fd+0x750/0x750 [ 35.836232] do_group_exit+0x149/0x400 [ 35.836236] ? SyS_exit+0x30/0x30 [ 35.836240] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.836244] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.836249] SyS_exit_group+0x1d/0x20 [ 35.836253] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.836255] RIP: 0033:0x4429f8 [ 35.836257] RSP: 002b:00007ffc848343d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.836261] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.836263] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.836265] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.836267] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.836268] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.856518] Dumping ftrace buffer: [ 35.856522] (ftrace buffer empty) [ 35.856524] Kernel Offset: disabled [ 36.981552] Rebooting in 86400 seconds..