[....] Starting enhanced syslogd: rsyslogd[ 12.089804] audit: type=1400 audit(1515499685.719:5): avc: denied { syslog } for pid=3342 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.990522] audit: type=1400 audit(1515499690.620:6): avc: denied { map } for pid=3481 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.28' (ECDSA) to the list of known hosts. executing program [ 23.213266] audit: type=1400 audit(1515499696.843:7): avc: denied { map } for pid=3495 comm="syzkaller261167" path="/root/syzkaller261167933" 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.216635] ================================================================== [ 23.216645] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.216649] Read of size 8 at addr ffff8801c92c25f0 by task syzkaller261167/3495 [ 23.216650] [ 23.216654] CPU: 1 PID: 3495 Comm: syzkaller261167 Not tainted 4.15.0-rc7+ #253 [ 23.216656] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.216658] Call Trace: [ 23.216665] dump_stack+0x194/0x257 [ 23.216670] ? arch_local_irq_restore+0x53/0x53 [ 23.216676] ? show_regs_print_info+0x18/0x18 [ 23.216680] ? print_irqtrace_events+0x270/0x270 [ 23.216684] ? __lock_acquire+0x664/0x3e00 [ 23.216688] ? __lock_acquire+0x3d4d/0x3e00 [ 23.216694] print_address_description+0x73/0x250 [ 23.216698] ? __lock_acquire+0x3d4d/0x3e00 [ 23.216702] kasan_report+0x25b/0x340 [ 23.216708] __asan_report_load8_noabort+0x14/0x20 [ 23.216712] __lock_acquire+0x3d4d/0x3e00 [ 23.216715] ? __lock_acquire+0x664/0x3e00 [ 23.216718] ? lock_downgrade+0x980/0x980 [ 23.216722] ? lock_downgrade+0x980/0x980 [ 23.216728] ? remove_wait_queue+0x81/0x350 [ 23.216734] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.216738] ? __lock_acquire+0x664/0x3e00 [ 23.216741] ? check_noncircular+0x20/0x20 [ 23.216749] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.216753] ? lock_acquire+0x1d5/0x580 [ 23.216757] ? lock_acquire+0x1d5/0x580 [ 23.216762] ? ep_free+0xf4/0x320 [ 23.216767] ? lock_release+0xa40/0xa40 [ 23.216772] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.216776] ? print_irqtrace_events+0x270/0x270 [ 23.216782] ? rcu_note_context_switch+0x710/0x710 [ 23.216786] ? __might_sleep+0x95/0x190 [ 23.216790] ? ep_free+0xf4/0x320 [ 23.216795] ? __mutex_lock+0x16f/0x1a80 [ 23.216798] ? ep_free+0xf4/0x320 [ 23.216802] ? print_irqtrace_events+0x270/0x270 [ 23.216805] ? ep_free+0xf4/0x320 [ 23.216810] lock_acquire+0x1d5/0x580 [ 23.216813] ? lock_acquire+0x1d5/0x580 [ 23.216817] ? remove_wait_queue+0x81/0x350 [ 23.216821] ? __lock_acquire+0x664/0x3e00 [ 23.216825] ? lock_release+0xa40/0xa40 [ 23.216831] ? lock_acquire+0x1d5/0x580 [ 23.216834] ? lock_acquire+0x1d5/0x580 [ 23.216838] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.216845] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.216848] ? remove_wait_queue+0x81/0x350 [ 23.216852] remove_wait_queue+0x81/0x350 [ 23.216857] ? add_wait_queue+0x290/0x290 [ 23.216861] ? rcutorture_record_progress+0x10/0x10 [ 23.216867] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.216874] ? __kernel_text_address+0xd/0x40 [ 23.216879] ? clear_tfile_check_list+0x370/0x370 [ 23.216884] ? check_noncircular+0x20/0x20 [ 23.216890] ? locks_remove_file+0x3fa/0x5a0 [ 23.216897] ep_free+0x13f/0x320 [ 23.216900] ? ep_remove+0x800/0x800 [ 23.216904] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.216909] ? ep_free+0x320/0x320 [ 23.216913] ep_eventpoll_release+0x44/0x60 [ 23.216918] __fput+0x327/0x7e0 [ 23.216923] ? fput+0x140/0x140 [ 23.216928] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.216933] ____fput+0x15/0x20 [ 23.216937] task_work_run+0x199/0x270 [ 23.216942] ? task_work_cancel+0x210/0x210 [ 23.216946] ? _raw_spin_unlock+0x22/0x30 [ 23.216950] ? switch_task_namespaces+0x87/0xc0 [ 23.216956] do_exit+0x9bb/0x1ad0 [ 23.216962] ? binder_ioctl+0x571/0x1417 [ 23.216966] ? mm_update_next_owner+0x930/0x930 [ 23.216971] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.216977] ? avc_ss_reset+0x110/0x110 [ 23.216981] ? mutex_unlock+0xd/0x10 [ 23.216984] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.216997] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.217004] ? up_read+0x1a/0x40 [ 23.217009] ? rcu_note_context_switch+0x710/0x710 [ 23.217013] ? __fd_install+0x288/0x740 [ 23.217019] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.217023] ? do_vfs_ioctl+0x486/0x1520 [ 23.217026] ? _cond_resched+0x14/0x30 [ 23.217031] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.217036] ? selinux_capable+0x40/0x40 [ 23.217040] ? __alloc_fd+0x750/0x750 [ 23.217046] do_group_exit+0x149/0x400 [ 23.217050] ? SyS_exit+0x30/0x30 [ 23.217054] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.217061] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.217066] SyS_exit_group+0x1d/0x20 [ 23.217070] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.217073] RIP: 0033:0x4429f8 [ 23.217075] RSP: 002b:00007ffe990c33d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.217080] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.217082] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.217084] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.217086] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.217088] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.217094] [ 23.217096] Allocated by task 3495: [ 23.217100] save_stack+0x43/0xd0 [ 23.217102] kasan_kmalloc+0xad/0xe0 [ 23.217105] kmem_cache_alloc_trace+0x136/0x750 [ 23.217108] binder_get_thread+0x1cf/0x870 [ 23.217111] binder_poll+0x8c/0x390 [ 23.217114] ep_item_poll.isra.10+0xec/0x320 [ 23.217117] ep_insert+0x6a3/0x1b10 [ 23.217120] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.217123] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.217124] [ 23.217125] Freed by task 3495: [ 23.217128] save_stack+0x43/0xd0 [ 23.217131] kasan_slab_free+0x71/0xc0 [ 23.217133] kfree+0xd6/0x260 [ 23.217136] binder_thread_dec_tmpref+0x27f/0x310 [ 23.217139] binder_thread_release+0x27d/0x540 [ 23.217141] binder_ioctl+0xc02/0x1417 [ 23.217144] do_vfs_ioctl+0x1b1/0x1520 [ 23.217146] SyS_ioctl+0x8f/0xc0 [ 23.217150] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.217150] [ 23.217153] The buggy address belongs to the object at ffff8801c92c2540 [ 23.217153] which belongs to the cache kmalloc-512 of size 512 [ 23.217156] The buggy address is located 176 bytes inside of [ 23.217156] 512-byte region [ffff8801c92c2540, ffff8801c92c2740) [ 23.217157] The buggy address belongs to the page: [ 23.217160] page:ffffea000724b080 count:1 mapcount:0 mapping:ffff8801c92c2040 index:0x0 [ 23.217163] flags: 0x2fffc0000000100(slab) [ 23.217169] raw: 02fffc0000000100 ffff8801c92c2040 0000000000000000 0000000100000006 [ 23.217173] raw: ffffea000739e6e0 ffffea000724f5e0 ffff8801dac00940 0000000000000000 [ 23.217175] page dumped because: kasan: bad access detected [ 23.217175] [ 23.217176] Memory state around the buggy address: [ 23.217179] ffff8801c92c2480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.217182] ffff8801c92c2500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 23.217184] >ffff8801c92c2580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.217186] ^ [ 23.217188] ffff8801c92c2600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.217191] ffff8801c92c2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.217192] ================================================================== [ 23.217193] Disabling lock debugging due to kernel taint [ 23.217195] Kernel panic - not syncing: panic_on_warn set ... [ 23.217195] [ 23.217199] CPU: 1 PID: 3495 Comm: syzkaller261167 Tainted: G B 4.15.0-rc7+ #253 [ 23.217201] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.217202] Call Trace: [ 23.217206] dump_stack+0x194/0x257 [ 23.217210] ? arch_local_irq_restore+0x53/0x53 [ 23.217214] ? kasan_end_report+0x32/0x50 [ 23.217221] ? lock_downgrade+0x980/0x980 [ 23.217226] ? vsnprintf+0x1ed/0x1900 [ 23.217230] ? __lock_acquire+0x3cb0/0x3e00 [ 23.217233] panic+0x1e4/0x41c [ 23.217237] ? refcount_error_report+0x214/0x214 [ 23.217241] ? add_taint+0x40/0x50 [ 23.217244] ? add_taint+0x1c/0x50 [ 23.217248] ? __lock_acquire+0x3d4d/0x3e00 [ 23.217252] kasan_end_report+0x50/0x50 [ 23.217255] kasan_report+0x144/0x340 [ 23.217260] __asan_report_load8_noabort+0x14/0x20 [ 23.217263] __lock_acquire+0x3d4d/0x3e00 [ 23.217267] ? __lock_acquire+0x664/0x3e00 [ 23.217270] ? lock_downgrade+0x980/0x980 [ 23.217273] ? lock_downgrade+0x980/0x980 [ 23.217277] ? remove_wait_queue+0x81/0x350 [ 23.217282] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.217286] ? __lock_acquire+0x664/0x3e00 [ 23.217289] ? check_noncircular+0x20/0x20 [ 23.217296] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.217300] ? lock_acquire+0x1d5/0x580 [ 23.217303] ? lock_acquire+0x1d5/0x580 [ 23.217307] ? ep_free+0xf4/0x320 [ 23.217311] ? lock_release+0xa40/0xa40 [ 23.217315] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.217319] ? print_irqtrace_events+0x270/0x270 [ 23.217322] ? rcu_note_context_switch+0x710/0x710 [ 23.217327] ? __might_sleep+0x95/0x190 [ 23.217330] ? ep_free+0xf4/0x320 [ 23.217333] ? __mutex_lock+0x16f/0x1a80 [ 23.217336] ? ep_free+0xf4/0x320 [ 23.217340] ? print_irqtrace_events+0x270/0x270 [ 23.217343] ? ep_free+0xf4/0x320 [ 23.217348] lock_acquire+0x1d5/0x580 [ 23.217351] ? lock_acquire+0x1d5/0x580 [ 23.217355] ? remove_wait_queue+0x81/0x350 [ 23.217358] ? __lock_acquire+0x664/0x3e00 [ 23.217362] ? lock_release+0xa40/0xa40 [ 23.217367] ? lock_acquire+0x1d5/0x580 [ 23.217370] ? lock_acquire+0x1d5/0x580 [ 23.217374] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.217379] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.217382] ? remove_wait_queue+0x81/0x350 [ 23.217386] remove_wait_queue+0x81/0x350 [ 23.217391] ? add_wait_queue+0x290/0x290 [ 23.217394] ? rcutorture_record_progress+0x10/0x10 [ 23.217400] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.217404] ? __kernel_text_address+0xd/0x40 [ 23.217409] ? clear_tfile_check_list+0x370/0x370 [ 23.217413] ? check_noncircular+0x20/0x20 [ 23.217417] ? locks_remove_file+0x3fa/0x5a0 [ 23.217423] ep_free+0x13f/0x320 [ 23.217426] ? ep_remove+0x800/0x800 [ 23.217430] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.217434] ? ep_free+0x320/0x320 [ 23.217438] ep_eventpoll_release+0x44/0x60 [ 23.217441] __fput+0x327/0x7e0 [ 23.217446] ? fput+0x140/0x140 [ 23.217450] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.217455] ____fput+0x15/0x20 [ 23.217459] task_work_run+0x199/0x270 [ 23.217464] ? task_work_cancel+0x210/0x210 [ 23.217467] ? _raw_spin_unlock+0x22/0x30 [ 23.217471] ? switch_task_namespaces+0x87/0xc0 [ 23.217475] do_exit+0x9bb/0x1ad0 [ 23.217479] ? binder_ioctl+0x571/0x1417 [ 23.217483] ? mm_update_next_owner+0x930/0x930 [ 23.217487] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.217492] ? avc_ss_reset+0x110/0x110 [ 23.217495] ? mutex_unlock+0xd/0x10 [ 23.217499] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.217509] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.217512] ? up_read+0x1a/0x40 [ 23.217516] ? rcu_note_context_switch+0x710/0x710 [ 23.217519] ? __fd_install+0x288/0x740 [ 23.217524] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.217527] ? do_vfs_ioctl+0x486/0x1520 [ 23.217529] ? _cond_resched+0x14/0x30 [ 23.217534] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.217538] ? selinux_capable+0x40/0x40 [ 23.217542] ? __alloc_fd+0x750/0x750 [ 23.217547] do_group_exit+0x149/0x400 [ 23.217551] ? SyS_exit+0x30/0x30 [ 23.217555] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.217558] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.217563] SyS_exit_group+0x1d/0x20 [ 23.217567] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.217569] RIP: 0033:0x4429f8 [ 23.217571] RSP: 002b:00007ffe990c33d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.217574] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.217576] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.217578] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.217580] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.217582] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.239152] Dumping ftrace buffer: [ 23.239155] (ftrace buffer empty) [ 23.239156] Kernel Offset: disabled [ 24.363075] Rebooting in 86400 seconds..