[....] Starting enhanced syslogd: rsyslogd[ 12.375540] audit: type=1400 audit(1515105922.231:5): avc: denied { syslog } for pid=3340 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: [ 16.851179] audit: type=1400 audit(1515105926.706:6): avc: denied { map } for pid=3479 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.231' (ECDSA) to the list of known hosts. executing program [ 23.056746] audit: type=1400 audit(1515105932.912:7): avc: denied { map } for pid=3493 comm="syzkaller841311" path="/root/syzkaller841311598" 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 [ 23.065585] ================================================================== [ 23.065599] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.065604] Read of size 8 at addr ffff8801cbd82830 by task syzkaller841311/3493 [ 23.065605] [ 23.065612] CPU: 1 PID: 3493 Comm: syzkaller841311 Not tainted 4.15.0-rc6+ #248 [ 23.065616] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.065618] Call Trace: [ 23.065627] dump_stack+0x194/0x257 [ 23.065635] ? arch_local_irq_restore+0x53/0x53 [ 23.065642] ? show_regs_print_info+0x18/0x18 [ 23.065648] ? print_irqtrace_events+0x270/0x270 [ 23.065655] ? __lock_acquire+0x664/0x3e00 [ 23.065661] ? __lock_acquire+0x3d4d/0x3e00 [ 23.065670] print_address_description+0x73/0x250 [ 23.065676] ? __lock_acquire+0x3d4d/0x3e00 [ 23.065682] kasan_report+0x25b/0x340 [ 23.065691] __asan_report_load8_noabort+0x14/0x20 [ 23.065696] __lock_acquire+0x3d4d/0x3e00 [ 23.065702] ? __lock_acquire+0x664/0x3e00 [ 23.065708] ? lock_downgrade+0x980/0x980 [ 23.065713] ? lock_downgrade+0x980/0x980 [ 23.065721] ? remove_wait_queue+0x81/0x350 [ 23.065730] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.065737] ? __lock_acquire+0x664/0x3e00 [ 23.065742] ? check_noncircular+0x20/0x20 [ 23.065755] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.065762] ? lock_acquire+0x1d5/0x580 [ 23.065767] ? lock_acquire+0x1d5/0x580 [ 23.065773] ? ep_free+0xf4/0x320 [ 23.065782] ? lock_release+0xa40/0xa40 [ 23.065788] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.065795] ? print_irqtrace_events+0x270/0x270 [ 23.065801] ? rcu_note_context_switch+0x710/0x710 [ 23.065809] ? __might_sleep+0x95/0x190 [ 23.065815] ? ep_free+0xf4/0x320 [ 23.065821] ? __mutex_lock+0x16f/0x1a80 [ 23.065826] ? ep_free+0xf4/0x320 [ 23.065832] ? print_irqtrace_events+0x270/0x270 [ 23.065837] ? ep_free+0xf4/0x320 [ 23.065845] lock_acquire+0x1d5/0x580 [ 23.065850] ? lock_acquire+0x1d5/0x580 [ 23.065856] ? remove_wait_queue+0x81/0x350 [ 23.065862] ? __lock_acquire+0x664/0x3e00 [ 23.065870] ? lock_release+0xa40/0xa40 [ 23.065879] ? lock_acquire+0x1d5/0x580 [ 23.065884] ? lock_acquire+0x1d5/0x580 [ 23.065890] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.065898] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.065904] ? remove_wait_queue+0x81/0x350 [ 23.065910] remove_wait_queue+0x81/0x350 [ 23.065918] ? add_wait_queue+0x290/0x290 [ 23.065923] ? rcutorture_record_progress+0x10/0x10 [ 23.065933] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.065940] ? __kernel_text_address+0xd/0x40 [ 23.065948] ? clear_tfile_check_list+0x370/0x370 [ 23.065956] ? check_noncircular+0x20/0x20 [ 23.065964] ? locks_remove_file+0x3fa/0x5a0 [ 23.065974] ep_free+0x13f/0x320 [ 23.065980] ? ep_remove+0x800/0x800 [ 23.065985] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.065993] ? ep_free+0x320/0x320 [ 23.065999] ep_eventpoll_release+0x44/0x60 [ 23.066009] __fput+0x327/0x7e0 [ 23.066017] ? fput+0x140/0x140 [ 23.066024] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.066032] ____fput+0x15/0x20 [ 23.066039] task_work_run+0x199/0x270 [ 23.066047] ? task_work_cancel+0x210/0x210 [ 23.066053] ? _raw_spin_unlock+0x22/0x30 [ 23.066059] ? switch_task_namespaces+0x87/0xc0 [ 23.066067] do_exit+0x9bb/0x1ad0 [ 23.066076] ? binder_ioctl+0x551/0x1417 [ 23.066082] ? mm_update_next_owner+0x930/0x930 [ 23.066090] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.066099] ? avc_ss_reset+0x110/0x110 [ 23.066104] ? mutex_unlock+0xd/0x10 [ 23.066110] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.066130] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.066134] ? up_read+0x1a/0x40 [ 23.066141] ? rcu_note_context_switch+0x710/0x710 [ 23.066146] ? __fd_install+0x288/0x740 [ 23.066155] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.066161] ? do_vfs_ioctl+0x486/0x1520 [ 23.066165] ? _cond_resched+0x14/0x30 [ 23.066173] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.066180] ? selinux_capable+0x40/0x40 [ 23.066187] ? __alloc_fd+0x750/0x750 [ 23.066195] do_group_exit+0x149/0x400 [ 23.066202] ? SyS_exit+0x30/0x30 [ 23.066209] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.066216] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.066224] SyS_exit_group+0x1d/0x20 [ 23.066230] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.066235] RIP: 0033:0x442a48 [ 23.066238] RSP: 002b:00007fff9821d8f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.066244] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 23.066247] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.066251] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.066254] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 23.066257] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 23.066266] [ 23.066269] Allocated by task 3493: [ 23.066275] save_stack+0x43/0xd0 [ 23.066279] kasan_kmalloc+0xad/0xe0 [ 23.066284] kmem_cache_alloc_trace+0x136/0x750 [ 23.066289] binder_get_thread+0x1cf/0x870 [ 23.066292] binder_poll+0x8c/0x390 [ 23.066298] ep_item_poll.isra.10+0xec/0x320 [ 23.066302] ep_insert+0x6a3/0x1b10 [ 23.066308] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.066313] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.066314] [ 23.066316] Freed by task 3493: [ 23.066321] save_stack+0x43/0xd0 [ 23.066325] kasan_slab_free+0x71/0xc0 [ 23.066329] kfree+0xd6/0x260 [ 23.066334] binder_thread_dec_tmpref+0x27f/0x310 [ 23.066338] binder_thread_release+0x27d/0x540 [ 23.066343] binder_ioctl+0xc02/0x1417 [ 23.066347] do_vfs_ioctl+0x1b1/0x1520 [ 23.066351] SyS_ioctl+0x8f/0xc0 [ 23.066357] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.066358] [ 23.066362] The buggy address belongs to the object at ffff8801cbd82780 [ 23.066362] which belongs to the cache kmalloc-512 of size 512 [ 23.066367] The buggy address is located 176 bytes inside of [ 23.066367] 512-byte region [ffff8801cbd82780, ffff8801cbd82980) [ 23.066368] The buggy address belongs to the page: [ 23.066374] page:000000009619c586 count:1 mapcount:0 mapping:000000009f2fccd2 index:0x0 [ 23.066379] flags: 0x2fffc0000000100(slab) [ 23.066388] raw: 02fffc0000000100 ffff8801cbd82000 0000000000000000 0000000100000006 [ 23.066394] raw: ffffea000731ff60 ffffea00072f61a0 ffff8801dac00940 0000000000000000 [ 23.066397] page dumped because: kasan: bad access detected [ 23.066398] [ 23.066399] Memory state around the buggy address: [ 23.066404] ffff8801cbd82700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.066408] ffff8801cbd82780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.066413] >ffff8801cbd82800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.066415] ^ [ 23.066419] ffff8801cbd82880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.066423] ffff8801cbd82900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.066425] ================================================================== [ 23.066427] Disabling lock debugging due to kernel taint [ 23.066430] Kernel panic - not syncing: panic_on_warn set ... [ 23.066430] [ 23.066436] CPU: 1 PID: 3493 Comm: syzkaller841311 Tainted: G B 4.15.0-rc6+ #248 [ 23.066439] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.066441] Call Trace: [ 23.066447] dump_stack+0x194/0x257 [ 23.066454] ? arch_local_irq_restore+0x53/0x53 [ 23.066459] ? kasan_end_report+0x32/0x50 [ 23.066465] ? lock_downgrade+0x980/0x980 [ 23.066472] ? vsnprintf+0x1ed/0x1900 [ 23.066478] ? __lock_acquire+0x3cb0/0x3e00 [ 23.066483] panic+0x1e4/0x41c [ 23.066489] ? refcount_error_report+0x214/0x214 [ 23.066500] ? add_taint+0x40/0x50 [ 23.066505] ? add_taint+0x1c/0x50 [ 23.066512] ? __lock_acquire+0x3d4d/0x3e00 [ 23.066518] kasan_end_report+0x50/0x50 [ 23.066523] kasan_report+0x144/0x340 [ 23.066531] __asan_report_load8_noabort+0x14/0x20 [ 23.066537] __lock_acquire+0x3d4d/0x3e00 [ 23.066542] ? __lock_acquire+0x664/0x3e00 [ 23.066547] ? lock_downgrade+0x980/0x980 [ 23.066553] ? lock_downgrade+0x980/0x980 [ 23.066560] ? remove_wait_queue+0x81/0x350 [ 23.066568] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.066575] ? __lock_acquire+0x664/0x3e00 [ 23.066580] ? check_noncircular+0x20/0x20 [ 23.066592] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.066599] ? lock_acquire+0x1d5/0x580 [ 23.066604] ? lock_acquire+0x1d5/0x580 [ 23.066610] ? ep_free+0xf4/0x320 [ 23.066617] ? lock_release+0xa40/0xa40 [ 23.066623] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.066629] ? print_irqtrace_events+0x270/0x270 [ 23.066635] ? rcu_note_context_switch+0x710/0x710 [ 23.066643] ? __might_sleep+0x95/0x190 [ 23.066649] ? ep_free+0xf4/0x320 [ 23.066654] ? __mutex_lock+0x16f/0x1a80 [ 23.066659] ? ep_free+0xf4/0x320 [ 23.066666] ? print_irqtrace_events+0x270/0x270 [ 23.066671] ? ep_free+0xf4/0x320 [ 23.066679] lock_acquire+0x1d5/0x580 [ 23.066684] ? lock_acquire+0x1d5/0x580 [ 23.066690] ? remove_wait_queue+0x81/0x350 [ 23.066696] ? __lock_acquire+0x664/0x3e00 [ 23.066702] ? lock_release+0xa40/0xa40 [ 23.066711] ? lock_acquire+0x1d5/0x580 [ 23.066717] ? lock_acquire+0x1d5/0x580 [ 23.066723] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.066730] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.066736] ? remove_wait_queue+0x81/0x350 [ 23.066742] remove_wait_queue+0x81/0x350 [ 23.066750] ? add_wait_queue+0x290/0x290 [ 23.066755] ? rcutorture_record_progress+0x10/0x10 [ 23.066765] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.066771] ? __kernel_text_address+0xd/0x40 [ 23.066780] ? clear_tfile_check_list+0x370/0x370 [ 23.066787] ? check_noncircular+0x20/0x20 [ 23.066794] ? locks_remove_file+0x3fa/0x5a0 [ 23.066803] ep_free+0x13f/0x320 [ 23.066809] ? ep_remove+0x800/0x800 [ 23.066815] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.066822] ? ep_free+0x320/0x320 [ 23.066828] ep_eventpoll_release+0x44/0x60 [ 23.066834] __fput+0x327/0x7e0 [ 23.066842] ? fput+0x140/0x140 [ 23.066849] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.066857] ____fput+0x15/0x20 [ 23.066863] task_work_run+0x199/0x270 [ 23.066870] ? task_work_cancel+0x210/0x210 [ 23.066876] ? _raw_spin_unlock+0x22/0x30 [ 23.066882] ? switch_task_namespaces+0x87/0xc0 [ 23.066889] do_exit+0x9bb/0x1ad0 [ 23.066896] ? binder_ioctl+0x551/0x1417 [ 23.066902] ? mm_update_next_owner+0x930/0x930 [ 23.066909] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.066918] ? avc_ss_reset+0x110/0x110 [ 23.066923] ? mutex_unlock+0xd/0x10 [ 23.066928] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.066946] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.066951] ? up_read+0x1a/0x40 [ 23.066957] ? rcu_note_context_switch+0x710/0x710 [ 23.066962] ? __fd_install+0x288/0x740 [ 23.066970] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.066975] ? do_vfs_ioctl+0x486/0x1520 [ 23.066980] ? _cond_resched+0x14/0x30 [ 23.066987] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.066995] ? selinux_capable+0x40/0x40 [ 23.067001] ? __alloc_fd+0x750/0x750 [ 23.067009] do_group_exit+0x149/0x400 [ 23.067015] ? SyS_exit+0x30/0x30 [ 23.067022] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.067028] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.067035] SyS_exit_group+0x1d/0x20 [ 23.067042] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.067045] RIP: 0033:0x442a48 [ 23.067048] RSP: 002b:00007fff9821d8f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.067054] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 23.067057] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.067060] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.067063] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 23.067067] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 23.083056] Dumping ftrace buffer: [ 23.083059] (ftrace buffer empty) [ 23.083062] Kernel Offset: disabled [ 24.205732] Rebooting in 86400 seconds..