[....] Starting enhanced syslogd: rsyslogd[ 12.790520] audit: type=1400 audit(1515981692.168:5): avc: denied { syslog } for pid=3500 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.924111] audit: type=1400 audit(1515981698.301:6): avc: denied { map } for pid=3640 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.58' (ECDSA) to the list of known hosts. executing program [ 25.136400] audit: type=1400 audit(1515981704.514:7): avc: denied { map } for pid=3654 comm="syzkaller356965" path="/root/syzkaller356965551" 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 [ 25.141261] ================================================================== [ 25.141272] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.141276] Read of size 8 at addr ffff8801bcdccaf0 by task syzkaller356965/3654 [ 25.141276] [ 25.141281] CPU: 0 PID: 3654 Comm: syzkaller356965 Not tainted 4.15.0-rc7+ #262 [ 25.141284] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.141285] Call Trace: [ 25.141293] dump_stack+0x194/0x257 [ 25.141299] ? arch_local_irq_restore+0x53/0x53 [ 25.141304] ? show_regs_print_info+0x18/0x18 [ 25.141308] ? print_irqtrace_events+0x270/0x270 [ 25.141317] ? __lock_acquire+0x664/0x3e00 [ 25.141321] ? __lock_acquire+0x3d4d/0x3e00 [ 25.141327] print_address_description+0x73/0x250 [ 25.141331] ? __lock_acquire+0x3d4d/0x3e00 [ 25.141334] kasan_report+0x25b/0x340 [ 25.141339] __asan_report_load8_noabort+0x14/0x20 [ 25.141343] __lock_acquire+0x3d4d/0x3e00 [ 25.141346] ? __lock_acquire+0x664/0x3e00 [ 25.141350] ? lock_downgrade+0x980/0x980 [ 25.141353] ? lock_downgrade+0x980/0x980 [ 25.141360] ? remove_wait_queue+0x81/0x350 [ 25.141366] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.141370] ? __lock_acquire+0x664/0x3e00 [ 25.141373] ? check_noncircular+0x20/0x20 [ 25.141381] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.141385] ? lock_acquire+0x1d5/0x580 [ 25.141389] ? lock_acquire+0x1d5/0x580 [ 25.141393] ? ep_free+0xf4/0x320 [ 25.141399] ? lock_release+0xa40/0xa40 [ 25.141403] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.141407] ? print_irqtrace_events+0x270/0x270 [ 25.141413] ? rcu_note_context_switch+0x710/0x710 [ 25.141418] ? __might_sleep+0x95/0x190 [ 25.141421] ? ep_free+0xf4/0x320 [ 25.141426] ? __mutex_lock+0x16f/0x1a80 [ 25.141429] ? ep_free+0xf4/0x320 [ 25.141434] ? print_irqtrace_events+0x270/0x270 [ 25.141436] ? ep_free+0xf4/0x320 [ 25.141442] lock_acquire+0x1d5/0x580 [ 25.141445] ? lock_acquire+0x1d5/0x580 [ 25.141448] ? remove_wait_queue+0x81/0x350 [ 25.141452] ? __lock_acquire+0x664/0x3e00 [ 25.141456] ? lock_release+0xa40/0xa40 [ 25.141462] ? lock_acquire+0x1d5/0x580 [ 25.141465] ? lock_acquire+0x1d5/0x580 [ 25.141469] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.141474] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.141478] ? remove_wait_queue+0x81/0x350 [ 25.141481] remove_wait_queue+0x81/0x350 [ 25.141486] ? add_wait_queue+0x290/0x290 [ 25.141490] ? rcutorture_record_progress+0x10/0x10 [ 25.141496] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.141502] ? __kernel_text_address+0xd/0x40 [ 25.141507] ? clear_tfile_check_list+0x370/0x370 [ 25.141512] ? check_noncircular+0x20/0x20 [ 25.141518] ? locks_remove_file+0x3fa/0x5a0 [ 25.141524] ep_free+0x13f/0x320 [ 25.141528] ? ep_remove+0x800/0x800 [ 25.141531] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.141536] ? ep_free+0x320/0x320 [ 25.141540] ep_eventpoll_release+0x44/0x60 [ 25.141546] __fput+0x327/0x7e0 [ 25.141551] ? fput+0x140/0x140 [ 25.141556] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.141561] ____fput+0x15/0x20 [ 25.141565] task_work_run+0x199/0x270 [ 25.141570] ? task_work_cancel+0x210/0x210 [ 25.141574] ? _raw_spin_unlock+0x22/0x30 [ 25.141578] ? switch_task_namespaces+0x87/0xc0 [ 25.141584] do_exit+0x9bb/0x1ad0 [ 25.141591] ? binder_ioctl+0x4a1/0x1417 [ 25.141594] ? mm_update_next_owner+0x930/0x930 [ 25.141600] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.141606] ? avc_ss_reset+0x110/0x110 [ 25.141609] ? mutex_unlock+0xd/0x10 [ 25.141613] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.141625] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.141628] ? up_read+0x1a/0x40 [ 25.141632] ? rcu_note_context_switch+0x710/0x710 [ 25.141636] ? __fd_install+0x288/0x740 [ 25.141642] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.141646] ? do_vfs_ioctl+0x486/0x1520 [ 25.141649] ? _cond_resched+0x14/0x30 [ 25.141653] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.141658] ? selinux_capable+0x40/0x40 [ 25.141662] ? __alloc_fd+0x750/0x750 [ 25.141667] do_group_exit+0x149/0x400 [ 25.141671] ? SyS_exit+0x30/0x30 [ 25.141676] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.141681] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.141685] SyS_exit_group+0x1d/0x20 [ 25.141690] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.141693] RIP: 0033:0x4429f8 [ 25.141696] RSP: 002b:00007ffc9bbdf948 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.141700] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.141702] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.141704] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.141706] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.141708] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.141713] [ 25.141715] Allocated by task 3654: [ 25.141719] save_stack+0x43/0xd0 [ 25.141722] kasan_kmalloc+0xad/0xe0 [ 25.141725] kmem_cache_alloc_trace+0x136/0x750 [ 25.141728] binder_get_thread+0x1cf/0x870 [ 25.141731] binder_poll+0x8c/0x390 [ 25.141734] ep_item_poll.isra.10+0xec/0x320 [ 25.141737] ep_insert+0x6a3/0x1b10 [ 25.141741] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.141744] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.141745] [ 25.141746] Freed by task 3654: [ 25.141749] save_stack+0x43/0xd0 [ 25.141752] kasan_slab_free+0x71/0xc0 [ 25.141754] kfree+0xd6/0x260 [ 25.141758] binder_thread_dec_tmpref+0x27f/0x310 [ 25.141761] binder_thread_release+0x27d/0x540 [ 25.141764] binder_ioctl+0xc02/0x1417 [ 25.141767] do_vfs_ioctl+0x1b1/0x1520 [ 25.141769] SyS_ioctl+0x8f/0xc0 [ 25.141773] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.141774] [ 25.141776] The buggy address belongs to the object at ffff8801bcdcca40 [ 25.141776] which belongs to the cache kmalloc-512 of size 512 [ 25.141779] The buggy address is located 176 bytes inside of [ 25.141779] 512-byte region [ffff8801bcdcca40, ffff8801bcdccc40) [ 25.141780] The buggy address belongs to the page: [ 25.141784] page:ffffea0006f37300 count:1 mapcount:0 mapping:ffff8801bcdcc040 index:0x0 [ 25.141787] flags: 0x2fffc0000000100(slab) [ 25.141793] raw: 02fffc0000000100 ffff8801bcdcc040 0000000000000000 0000000100000006 [ 25.141797] raw: ffffea0006f34660 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 25.141799] page dumped because: kasan: bad access detected [ 25.141799] [ 25.141800] Memory state around the buggy address: [ 25.141803] ffff8801bcdcc980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.141806] ffff8801bcdcca00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.141809] >ffff8801bcdcca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.141810] ^ [ 25.141813] ffff8801bcdccb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.141815] ffff8801bcdccb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.141816] ================================================================== [ 25.141817] Disabling lock debugging due to kernel taint [ 25.141820] Kernel panic - not syncing: panic_on_warn set ... [ 25.141820] [ 25.141824] CPU: 0 PID: 3654 Comm: syzkaller356965 Tainted: G B 4.15.0-rc7+ #262 [ 25.141826] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.141827] Call Trace: [ 25.141831] dump_stack+0x194/0x257 [ 25.141835] ? arch_local_irq_restore+0x53/0x53 [ 25.141838] ? kasan_end_report+0x32/0x50 [ 25.141842] ? lock_downgrade+0x980/0x980 [ 25.141848] ? vsnprintf+0x1ed/0x1900 [ 25.141852] ? __lock_acquire+0x3c70/0x3e00 [ 25.141855] panic+0x1e4/0x41c [ 25.141859] ? refcount_error_report+0x214/0x214 [ 25.141863] ? add_taint+0x40/0x50 [ 25.141866] ? add_taint+0x1c/0x50 [ 25.141870] ? __lock_acquire+0x3d4d/0x3e00 [ 25.141873] kasan_end_report+0x50/0x50 [ 25.141877] kasan_report+0x144/0x340 [ 25.141881] __asan_report_load8_noabort+0x14/0x20 [ 25.141885] __lock_acquire+0x3d4d/0x3e00 [ 25.141888] ? __lock_acquire+0x664/0x3e00 [ 25.141892] ? lock_downgrade+0x980/0x980 [ 25.141895] ? lock_downgrade+0x980/0x980 [ 25.141899] ? remove_wait_queue+0x81/0x350 [ 25.141904] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.141908] ? __lock_acquire+0x664/0x3e00 [ 25.141911] ? check_noncircular+0x20/0x20 [ 25.141918] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.141922] ? lock_acquire+0x1d5/0x580 [ 25.141925] ? lock_acquire+0x1d5/0x580 [ 25.141928] ? ep_free+0xf4/0x320 [ 25.141933] ? lock_release+0xa40/0xa40 [ 25.141937] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.141940] ? print_irqtrace_events+0x270/0x270 [ 25.141944] ? rcu_note_context_switch+0x710/0x710 [ 25.141948] ? __might_sleep+0x95/0x190 [ 25.141952] ? ep_free+0xf4/0x320 [ 25.141955] ? __mutex_lock+0x16f/0x1a80 [ 25.141958] ? ep_free+0xf4/0x320 [ 25.141963] ? print_irqtrace_events+0x270/0x270 [ 25.141965] ? ep_free+0xf4/0x320 [ 25.141970] lock_acquire+0x1d5/0x580 [ 25.141973] ? lock_acquire+0x1d5/0x580 [ 25.141977] ? remove_wait_queue+0x81/0x350 [ 25.141980] ? __lock_acquire+0x664/0x3e00 [ 25.141985] ? lock_release+0xa40/0xa40 [ 25.141990] ? lock_acquire+0x1d5/0x580 [ 25.141993] ? lock_acquire+0x1d5/0x580 [ 25.141996] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.142005] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.142008] ? remove_wait_queue+0x81/0x350 [ 25.142012] remove_wait_queue+0x81/0x350 [ 25.142017] ? add_wait_queue+0x290/0x290 [ 25.142020] ? rcutorture_record_progress+0x10/0x10 [ 25.142026] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.142030] ? __kernel_text_address+0xd/0x40 [ 25.142035] ? clear_tfile_check_list+0x370/0x370 [ 25.142039] ? check_noncircular+0x20/0x20 [ 25.142044] ? locks_remove_file+0x3fa/0x5a0 [ 25.142049] ep_free+0x13f/0x320 [ 25.142053] ? ep_remove+0x800/0x800 [ 25.142056] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.142060] ? ep_free+0x320/0x320 [ 25.142064] ep_eventpoll_release+0x44/0x60 [ 25.142068] __fput+0x327/0x7e0 [ 25.142073] ? fput+0x140/0x140 [ 25.142077] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.142082] ____fput+0x15/0x20 [ 25.142086] task_work_run+0x199/0x270 [ 25.142090] ? task_work_cancel+0x210/0x210 [ 25.142094] ? _raw_spin_unlock+0x22/0x30 [ 25.142098] ? switch_task_namespaces+0x87/0xc0 [ 25.142102] do_exit+0x9bb/0x1ad0 [ 25.142107] ? binder_ioctl+0x4a1/0x1417 [ 25.142110] ? mm_update_next_owner+0x930/0x930 [ 25.142115] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.142120] ? avc_ss_reset+0x110/0x110 [ 25.142123] ? mutex_unlock+0xd/0x10 [ 25.142127] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.142137] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.142140] ? up_read+0x1a/0x40 [ 25.142144] ? rcu_note_context_switch+0x710/0x710 [ 25.142147] ? __fd_install+0x288/0x740 [ 25.142152] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.142155] ? do_vfs_ioctl+0x486/0x1520 [ 25.142159] ? _cond_resched+0x14/0x30 [ 25.142163] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.142167] ? selinux_capable+0x40/0x40 [ 25.142171] ? __alloc_fd+0x750/0x750 [ 25.142176] do_group_exit+0x149/0x400 [ 25.142180] ? SyS_exit+0x30/0x30 [ 25.142184] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.142187] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.142192] SyS_exit_group+0x1d/0x20 [ 25.142196] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.142198] RIP: 0033:0x4429f8 [ 25.142200] RSP: 002b:00007ffc9bbdf948 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.142204] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.142206] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.142207] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.142209] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.142211] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.162668] Dumping ftrace buffer: [ 25.162671] (ftrace buffer empty) [ 25.162673] Kernel Offset: disabled [ 26.288681] Rebooting in 86400 seconds..