[....] Starting enhanced syslogd: rsyslogd[ 10.842401] audit: type=1400 audit(1514383180.558:5): avc: denied { syslog } for pid=2993 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: [ 17.815633] audit: type=1400 audit(1514383187.531:6): avc: denied { map } for pid=3135 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.8' (ECDSA) to the list of known hosts. executing program [ 39.404572] audit: type=1400 audit(1514383209.120:7): avc: denied { map } for pid=3152 comm="syzkaller263368" path="/root/syzkaller263368055" 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 [ 39.408474] ================================================================== [ 39.408486] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 39.408490] Read of size 8 at addr ffff8801cf35e3f8 by task syzkaller263368/3152 [ 39.408490] [ 39.408495] CPU: 0 PID: 3152 Comm: syzkaller263368 Not tainted 4.15.0-rc4-mm1+ #49 [ 39.408497] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.408499] Call Trace: [ 39.408506] dump_stack+0x194/0x257 [ 39.408511] ? arch_local_irq_restore+0x53/0x53 [ 39.408517] ? show_regs_print_info+0x18/0x18 [ 39.408520] ? print_irqtrace_events+0x270/0x270 [ 39.408524] ? __lock_acquire+0x664/0x3e00 [ 39.408528] ? __lock_acquire+0x3d4d/0x3e00 [ 39.408535] print_address_description+0x73/0x250 [ 39.408538] ? __lock_acquire+0x3d4d/0x3e00 [ 39.408542] kasan_report+0x23b/0x360 [ 39.408547] __asan_report_load8_noabort+0x14/0x20 [ 39.408551] __lock_acquire+0x3d4d/0x3e00 [ 39.408554] ? __lock_acquire+0x664/0x3e00 [ 39.408557] ? lock_downgrade+0x980/0x980 [ 39.408561] ? lock_downgrade+0x980/0x980 [ 39.408568] ? remove_wait_queue+0x81/0x350 [ 39.408575] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 39.408580] ? __lock_acquire+0x664/0x3e00 [ 39.408584] ? check_noncircular+0x20/0x20 [ 39.408591] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 39.408596] ? lock_acquire+0x1d5/0x580 [ 39.408599] ? lock_acquire+0x1d5/0x580 [ 39.408604] ? ep_free+0xf4/0x320 [ 39.408609] ? lock_release+0xa40/0xa40 [ 39.408614] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 39.408618] ? print_irqtrace_events+0x270/0x270 [ 39.408624] ? rcu_note_context_switch+0x710/0x710 [ 39.408628] ? __might_sleep+0x95/0x190 [ 39.408632] ? ep_free+0xf4/0x320 [ 39.408636] ? __mutex_lock+0x16f/0x1a80 [ 39.408639] ? ep_free+0xf4/0x320 [ 39.408643] ? print_irqtrace_events+0x270/0x270 [ 39.408646] ? ep_free+0xf4/0x320 [ 39.408651] lock_acquire+0x1d5/0x580 [ 39.408654] ? lock_acquire+0x1d5/0x580 [ 39.408658] ? remove_wait_queue+0x81/0x350 [ 39.408661] ? __lock_acquire+0x664/0x3e00 [ 39.408666] ? lock_release+0xa40/0xa40 [ 39.408672] ? lock_acquire+0x1d5/0x580 [ 39.408675] ? lock_acquire+0x1d5/0x580 [ 39.408678] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 39.408684] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.408687] ? remove_wait_queue+0x81/0x350 [ 39.408691] remove_wait_queue+0x81/0x350 [ 39.408696] ? add_wait_queue+0x290/0x290 [ 39.408700] ? rcutorture_record_progress+0x10/0x10 [ 39.408706] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 39.408713] ? __kernel_text_address+0xd/0x40 [ 39.408717] ? clear_tfile_check_list+0x370/0x370 [ 39.408722] ? check_noncircular+0x20/0x20 [ 39.408728] ? locks_remove_file+0x3fa/0x5a0 [ 39.408738] ep_free+0x13f/0x320 [ 39.408742] ? ep_remove+0x800/0x800 [ 39.408746] ? fsnotify_first_mark+0x2b0/0x2b0 [ 39.408750] ? ep_free+0x320/0x320 [ 39.408754] ep_eventpoll_release+0x44/0x60 [ 39.408759] __fput+0x327/0x7e0 [ 39.408764] ? fput+0x140/0x140 [ 39.408768] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.408773] ____fput+0x15/0x20 [ 39.408777] task_work_run+0x199/0x270 [ 39.408782] ? task_work_cancel+0x210/0x210 [ 39.408786] ? _raw_spin_unlock+0x22/0x30 [ 39.408790] ? switch_task_namespaces+0x87/0xc0 [ 39.408796] do_exit+0x9bb/0x1ad0 [ 39.408803] ? binder_ioctl+0x551/0x1417 [ 39.408807] ? mm_update_next_owner+0x930/0x930 [ 39.408812] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 39.408819] ? avc_ss_reset+0x110/0x110 [ 39.408825] ? mutex_unlock+0xd/0x10 [ 39.408828] ? SyS_epoll_ctl+0x30a/0x1a80 [ 39.408832] ? find_held_lock+0x35/0x1d0 [ 39.408838] ? lock_downgrade+0x980/0x980 [ 39.408847] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 39.408851] ? rcu_note_context_switch+0x710/0x710 [ 39.408855] ? __fd_install+0x288/0x740 [ 39.408860] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 39.408864] ? do_vfs_ioctl+0x486/0x1520 [ 39.408868] ? _cond_resched+0x14/0x30 [ 39.408872] ? ioctl_preallocate+0x2b0/0x2b0 [ 39.408878] ? selinux_capable+0x40/0x40 [ 39.408882] ? __alloc_fd+0x750/0x750 [ 39.408887] do_group_exit+0x149/0x400 [ 39.408891] ? SyS_exit+0x30/0x30 [ 39.408895] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.408900] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.408905] SyS_exit_group+0x1d/0x20 [ 39.408909] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 39.408912] RIP: 0033:0x442a48 [ 39.408914] RSP: 002b:00007ffe8d871778 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.408918] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 39.408921] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 39.408923] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 39.408925] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 39.408927] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 39.408932] [ 39.408934] Allocated by task 3152: [ 39.408938] save_stack+0x43/0xd0 [ 39.408941] kasan_kmalloc+0xad/0xe0 [ 39.408944] kmem_cache_alloc_trace+0x136/0x750 [ 39.408947] binder_get_thread+0x1cf/0x870 [ 39.408949] binder_poll+0x8c/0x390 [ 39.408952] ep_item_poll.isra.10+0xf2/0x320 [ 39.408955] ep_insert+0x6a2/0x1ac0 [ 39.408958] SyS_epoll_ctl+0x12bf/0x1a80 [ 39.408961] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 39.408962] [ 39.408963] Freed by task 3152: [ 39.408966] save_stack+0x43/0xd0 [ 39.408969] kasan_slab_free+0x71/0xc0 [ 39.408971] kfree+0xd6/0x260 [ 39.408974] binder_thread_dec_tmpref+0x27f/0x310 [ 39.408977] binder_thread_release+0x27d/0x540 [ 39.408979] binder_ioctl+0xc02/0x1417 [ 39.408982] do_vfs_ioctl+0x1b1/0x1520 [ 39.408984] SyS_ioctl+0x8f/0xc0 [ 39.408987] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 39.408988] [ 39.408990] The buggy address belongs to the object at ffff8801cf35e340 [ 39.408990] which belongs to the cache kmalloc-512 of size 512 [ 39.408993] The buggy address is located 184 bytes inside of [ 39.408993] 512-byte region [ffff8801cf35e340, ffff8801cf35e540) [ 39.408994] The buggy address belongs to the page: [ 39.408997] page:ffffea00073cd780 count:1 mapcount:0 mapping:ffff8801cf35e0c0 index:0x0 [ 39.409004] flags: 0x2fffc0000000100(slab) [ 39.409010] raw: 02fffc0000000100 ffff8801cf35e0c0 0000000000000000 0000000100000006 [ 39.409014] raw: ffffea00073c24a0 ffffea00073ceee0 ffff8801dac00940 0000000000000000 [ 39.409015] page dumped because: kasan: bad access detected [ 39.409016] [ 39.409017] Memory state around the buggy address: [ 39.409020] ffff8801cf35e280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 39.409023] ffff8801cf35e300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 39.409026] >ffff8801cf35e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.409027] ^ [ 39.409030] ffff8801cf35e400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.409033] ffff8801cf35e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.409034] ================================================================== [ 39.409035] Disabling lock debugging due to kernel taint [ 39.409037] Kernel panic - not syncing: panic_on_warn set ... [ 39.409037] [ 39.409041] CPU: 0 PID: 3152 Comm: syzkaller263368 Tainted: G B 4.15.0-rc4-mm1+ #49 [ 39.409043] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.409044] Call Trace: [ 39.409048] dump_stack+0x194/0x257 [ 39.409052] ? arch_local_irq_restore+0x53/0x53 [ 39.409055] ? kasan_end_report+0x32/0x50 [ 39.409059] ? lock_downgrade+0x980/0x980 [ 39.409062] ? vsnprintf+0x1ed/0x1900 [ 39.409066] ? __lock_acquire+0x3c90/0x3e00 [ 39.409069] panic+0x1e4/0x41c [ 39.409073] ? refcount_error_report+0x214/0x214 [ 39.409077] ? add_taint+0x40/0x50 [ 39.409080] ? add_taint+0x1c/0x50 [ 39.409084] ? __lock_acquire+0x3d4d/0x3e00 [ 39.409088] kasan_end_report+0x50/0x50 [ 39.409091] kasan_report+0x148/0x360 [ 39.409096] __asan_report_load8_noabort+0x14/0x20 [ 39.409099] __lock_acquire+0x3d4d/0x3e00 [ 39.409102] ? __lock_acquire+0x664/0x3e00 [ 39.409105] ? lock_downgrade+0x980/0x980 [ 39.409109] ? lock_downgrade+0x980/0x980 [ 39.409113] ? remove_wait_queue+0x81/0x350 [ 39.409118] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 39.409122] ? __lock_acquire+0x664/0x3e00 [ 39.409125] ? check_noncircular+0x20/0x20 [ 39.409131] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 39.409136] ? lock_acquire+0x1d5/0x580 [ 39.409139] ? lock_acquire+0x1d5/0x580 [ 39.409142] ? ep_free+0xf4/0x320 [ 39.409147] ? lock_release+0xa40/0xa40 [ 39.409150] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 39.409154] ? print_irqtrace_events+0x270/0x270 [ 39.409157] ? rcu_note_context_switch+0x710/0x710 [ 39.409162] ? __might_sleep+0x95/0x190 [ 39.409165] ? ep_free+0xf4/0x320 [ 39.409168] ? __mutex_lock+0x16f/0x1a80 [ 39.409171] ? ep_free+0xf4/0x320 [ 39.409175] ? print_irqtrace_events+0x270/0x270 [ 39.409178] ? ep_free+0xf4/0x320 [ 39.409182] lock_acquire+0x1d5/0x580 [ 39.409185] ? lock_acquire+0x1d5/0x580 [ 39.409189] ? remove_wait_queue+0x81/0x350 [ 39.409192] ? __lock_acquire+0x664/0x3e00 [ 39.409196] ? lock_release+0xa40/0xa40 [ 39.409201] ? lock_acquire+0x1d5/0x580 [ 39.409204] ? lock_acquire+0x1d5/0x580 [ 39.409208] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 39.409212] _raw_spin_lock_irqsave+0x96/0xc0 [ 39.409215] ? remove_wait_queue+0x81/0x350 [ 39.409219] remove_wait_queue+0x81/0x350 [ 39.409223] ? add_wait_queue+0x290/0x290 [ 39.409227] ? rcutorture_record_progress+0x10/0x10 [ 39.409232] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 39.409236] ? __kernel_text_address+0xd/0x40 [ 39.409241] ? clear_tfile_check_list+0x370/0x370 [ 39.409245] ? check_noncircular+0x20/0x20 [ 39.409250] ? locks_remove_file+0x3fa/0x5a0 [ 39.409255] ep_free+0x13f/0x320 [ 39.409258] ? ep_remove+0x800/0x800 [ 39.409261] ? fsnotify_first_mark+0x2b0/0x2b0 [ 39.409266] ? ep_free+0x320/0x320 [ 39.409269] ep_eventpoll_release+0x44/0x60 [ 39.409273] __fput+0x327/0x7e0 [ 39.409277] ? fput+0x140/0x140 [ 39.409281] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.409286] ____fput+0x15/0x20 [ 39.409289] task_work_run+0x199/0x270 [ 39.409294] ? task_work_cancel+0x210/0x210 [ 39.409297] ? _raw_spin_unlock+0x22/0x30 [ 39.409301] ? switch_task_namespaces+0x87/0xc0 [ 39.409305] do_exit+0x9bb/0x1ad0 [ 39.409309] ? binder_ioctl+0x551/0x1417 [ 39.409312] ? mm_update_next_owner+0x930/0x930 [ 39.409317] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 39.409321] ? avc_ss_reset+0x110/0x110 [ 39.409325] ? mutex_unlock+0xd/0x10 [ 39.409328] ? SyS_epoll_ctl+0x30a/0x1a80 [ 39.409332] ? find_held_lock+0x35/0x1d0 [ 39.409337] ? lock_downgrade+0x980/0x980 [ 39.409345] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 39.409349] ? rcu_note_context_switch+0x710/0x710 [ 39.409352] ? __fd_install+0x288/0x740 [ 39.409357] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 39.409360] ? do_vfs_ioctl+0x486/0x1520 [ 39.409363] ? _cond_resched+0x14/0x30 [ 39.409367] ? ioctl_preallocate+0x2b0/0x2b0 [ 39.409371] ? selinux_capable+0x40/0x40 [ 39.409375] ? __alloc_fd+0x750/0x750 [ 39.409379] do_group_exit+0x149/0x400 [ 39.409383] ? SyS_exit+0x30/0x30 [ 39.409387] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.409391] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.409395] SyS_exit_group+0x1d/0x20 [ 39.409399] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 39.409401] RIP: 0033:0x442a48 [ 39.409403] RSP: 002b:00007ffe8d871778 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 39.409406] RAX: ffffffffffffffda RBX: 6e69622f7665642f RCX: 0000000000442a48 [ 39.409408] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 39.409410] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 39.409412] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a90 [ 39.409414] R13: 0000000000401b20 R14: 0000000000000000 R15: 0000000000000000 [ 39.430804] Dumping ftrace buffer: [ 39.430808] (ftrace buffer empty) [ 39.430810] Kernel Offset: disabled [ 40.565792] Rebooting in 86400 seconds..