[....] Starting enhanced syslogd: rsyslogd[ 17.500469] audit: type=1400 audit(1519291685.885:5): avc: denied { syslog } for pid=4027 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: [ 22.732319] audit: type=1400 audit(1519291691.117:6): avc: denied { map } for pid=4167 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.13' (ECDSA) to the list of known hosts. executing program [ 29.058179] audit: type=1400 audit(1519291697.442:7): avc: denied { map } for pid=4181 comm="syzkaller823800" path="/root/syzkaller823800512" 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 [ 29.099308] ================================================================== [ 29.106714] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 29.113376] Read of size 8 at addr ffff8801b10a0b80 by task syzkaller823800/4181 [ 29.120877] [ 29.122476] CPU: 1 PID: 4181 Comm: syzkaller823800 Not tainted 4.16.0-rc2+ #233 [ 29.129902] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.139226] Call Trace: [ 29.141789] dump_stack+0x194/0x257 [ 29.145389] ? arch_local_irq_restore+0x53/0x53 [ 29.150032] ? show_regs_print_info+0x18/0x18 [ 29.154517] ? __lock_acquire+0x3d4d/0x3e00 [ 29.158809] print_address_description+0x73/0x250 [ 29.163622] ? __lock_acquire+0x3d4d/0x3e00 [ 29.167914] kasan_report+0x23b/0x360 [ 29.171683] __asan_report_load8_noabort+0x14/0x20 [ 29.176582] __lock_acquire+0x3d4d/0x3e00 [ 29.180705] ? print_irqtrace_events+0x270/0x270 [ 29.185431] ? remove_wait_queue+0x81/0x350 [ 29.189724] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.194883] ? __lock_acquire+0x664/0x3e00 [ 29.199088] ? lock_downgrade+0x980/0x980 [ 29.203208] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.208368] ? lock_acquire+0x1d5/0x580 [ 29.212314] ? lock_acquire+0x1d5/0x580 [ 29.216259] ? ep_free+0xf4/0x320 [ 29.219683] ? lock_release+0xa40/0xa40 [ 29.223639] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 29.229497] ? check_noncircular+0x20/0x20 [ 29.233703] ? print_irqtrace_events+0x270/0x270 [ 29.238430] ? rcu_note_context_switch+0x710/0x710 [ 29.243330] ? __might_sleep+0x95/0x190 [ 29.247277] ? ep_free+0xf4/0x320 [ 29.250701] ? __mutex_lock+0x16f/0x1a80 [ 29.254732] ? ep_free+0xf4/0x320 [ 29.258156] ? print_irqtrace_events+0x270/0x270 [ 29.262880] ? ep_free+0xf4/0x320 [ 29.266304] lock_acquire+0x1d5/0x580 [ 29.270077] ? lock_acquire+0x1d5/0x580 [ 29.274027] ? remove_wait_queue+0x81/0x350 [ 29.278335] ? lock_release+0xa40/0xa40 [ 29.282282] ? lock_acquire+0x1d5/0x580 [ 29.286224] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.291395] ? lock_acquire+0x1d5/0x580 [ 29.295341] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.300765] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.305235] ? remove_wait_queue+0x81/0x350 [ 29.309539] remove_wait_queue+0x81/0x350 [ 29.313659] ? depot_save_stack+0x2ca/0x460 [ 29.317951] ? add_wait_queue+0x290/0x290 [ 29.322070] ? rcutorture_record_progress+0x10/0x10 [ 29.327056] ? lock_release+0xa40/0xa40 [ 29.331020] ? is_bpf_text_address+0xa4/0x120 [ 29.335492] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.340744] ? unwind_get_return_address+0x61/0xa0 [ 29.345645] ? clear_tfile_check_list+0x370/0x370 [ 29.350461] ? depot_save_stack+0x2ca/0x460 [ 29.354754] ? locks_remove_file+0x3fa/0x5a0 [ 29.359148] ep_free+0x13f/0x320 [ 29.362484] ? ep_remove+0x800/0x800 [ 29.366180] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.370731] ? ep_free+0x320/0x320 [ 29.374241] ep_eventpoll_release+0x44/0x60 [ 29.378534] __fput+0x327/0x7e0 [ 29.381787] ? fput+0x140/0x140 [ 29.385045] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.389516] ____fput+0x15/0x20 [ 29.392765] task_work_run+0x199/0x270 [ 29.396622] ? task_work_cancel+0x210/0x210 [ 29.400917] ? _raw_spin_unlock+0x22/0x30 [ 29.405042] ? switch_task_namespaces+0x87/0xc0 [ 29.409687] do_exit+0x9bb/0x1ad0 [ 29.413111] ? mm_update_next_owner+0x930/0x930 [ 29.417759] ? avc_ss_reset+0x110/0x110 [ 29.421710] ? mutex_unlock+0xd/0x10 [ 29.425398] ? SyS_epoll_ctl+0x30a/0x1a80 [ 29.429518] ? SyS_epoll_create+0x240/0x240 [ 29.433811] ? lock_downgrade+0x980/0x980 [ 29.437930] ? find_held_lock+0x35/0x1d0 [ 29.441985] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 29.447861] ? ppp_unregister_channel+0x660/0x660 [ 29.452691] ? do_vfs_ioctl+0x486/0x1520 [ 29.456724] ? ioctl_preallocate+0x2b0/0x2b0 [ 29.461104] ? selinux_capable+0x40/0x40 [ 29.465137] ? remap_pfn_range+0x18c/0xb10 [ 29.469345] ? vmacache_find+0x5f/0x280 [ 29.473293] do_group_exit+0x149/0x400 [ 29.477153] ? security_file_ioctl+0x7d/0xb0 [ 29.481530] ? security_file_ioctl+0x89/0xb0 [ 29.485918] ? SyS_exit+0x30/0x30 [ 29.489346] ? compat_SyS_ioctl+0x77/0x2a30 [ 29.493648] ? do_fast_syscall_32+0x156/0xf9f [ 29.498115] ? do_group_exit+0x400/0x400 [ 29.502148] SyS_exit_group+0x1d/0x20 [ 29.505922] do_fast_syscall_32+0x3ec/0xf9f [ 29.510220] ? do_int80_syscall_32+0x9c0/0x9c0 [ 29.514774] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.519501] ? syscall_return_slowpath+0x550/0x550 [ 29.524411] ? syscall_return_slowpath+0x2ac/0x550 [ 29.529311] ? prepare_exit_to_usermode+0x350/0x350 [ 29.534301] ? sysret32_from_system_call+0x5/0x3c [ 29.539115] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.543932] entry_SYSENTER_compat+0x70/0x7f [ 29.548311] RIP: 0023:0xf7f30c79 [ 29.551644] RSP: 002b:00000000ffb9bd1c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 29.559332] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 29.566574] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 29.573816] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 29.581062] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 29.588303] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 29.595546] [ 29.597146] Allocated by task 4181: [ 29.600757] save_stack+0x43/0xd0 [ 29.604227] kasan_kmalloc+0xad/0xe0 [ 29.607922] __kmalloc_node+0x47/0x70 [ 29.611712] kvmalloc_node+0x99/0xd0 [ 29.615409] alloc_netdev_mqs+0x16d/0xfb0 [ 29.619539] ppp_ioctl+0x1715/0x2a50 [ 29.623241] do_vfs_ioctl+0x1b1/0x1520 [ 29.627104] compat_SyS_ioctl+0x4ef/0x2a30 [ 29.631325] do_fast_syscall_32+0x3ec/0xf9f [ 29.635630] entry_SYSENTER_compat+0x70/0x7f [ 29.640007] [ 29.641612] Freed by task 4181: [ 29.644864] save_stack+0x43/0xd0 [ 29.648288] __kasan_slab_free+0x11a/0x170 [ 29.652491] kasan_slab_free+0xe/0x10 [ 29.656263] kfree+0xd9/0x260 [ 29.659351] kvfree+0x36/0x60 [ 29.662433] netdev_freemem+0x4c/0x60 [ 29.666207] netdev_release+0x10a/0x160 [ 29.670153] device_release+0x7c/0x210 [ 29.674018] kobject_put+0x14c/0x250 [ 29.677711] put_device+0x20/0x30 [ 29.681138] free_netdev+0x2f5/0x400 [ 29.684831] ppp_destroy_interface+0x2bc/0x390 [ 29.689380] ppp_release+0x12b/0x1a0 [ 29.693067] ppp_ioctl+0x3b1/0x2a50 [ 29.696668] do_vfs_ioctl+0x1b1/0x1520 [ 29.700524] compat_SyS_ioctl+0x4ef/0x2a30 [ 29.704730] do_fast_syscall_32+0x3ec/0xf9f [ 29.709028] entry_SYSENTER_compat+0x70/0x7f [ 29.713411] [ 29.715011] The buggy address belongs to the object at ffff8801b10a0000 [ 29.715011] which belongs to the cache kmalloc-4096 of size 4096 [ 29.727818] The buggy address is located 2944 bytes inside of [ 29.727818] 4096-byte region [ffff8801b10a0000, ffff8801b10a1000) [ 29.739833] The buggy address belongs to the page: [ 29.744733] page:ffffea0006c42800 count:1 mapcount:0 mapping:ffff8801b10a0000 index:0x0 compound_mapcount: 0 [ 29.754668] flags: 0x2fffc0000008100(slab|head) [ 29.759307] raw: 02fffc0000008100 ffff8801b10a0000 0000000000000000 0000000100000001 [ 29.767157] raw: ffffea0006c425a0 ffffea0006c4c8a0 ffff8801db000dc0 0000000000000000 [ 29.775022] page dumped because: kasan: bad access detected [ 29.780702] [ 29.782307] Memory state around the buggy address: [ 29.787205] ffff8801b10a0a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.794535] ffff8801b10a0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.801866] >ffff8801b10a0b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.809193] ^ [ 29.812529] ffff8801b10a0c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.819857] ffff8801b10a0c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.827183] ================================================================== [ 29.834515] Disabling lock debugging due to kernel taint [ 29.839948] Kernel panic - not syncing: panic_on_warn set ... [ 29.839948] [ 29.847281] CPU: 1 PID: 4181 Comm: syzkaller823800 Tainted: G B 4.16.0-rc2+ #233 [ 29.856018] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.865369] Call Trace: [ 29.867935] dump_stack+0x194/0x257 [ 29.871535] ? arch_local_irq_restore+0x53/0x53 [ 29.876178] ? kasan_end_report+0x32/0x50 [ 29.880300] ? lock_downgrade+0x980/0x980 [ 29.884419] ? vsnprintf+0x1ed/0x1900 [ 29.888207] ? __lock_acquire+0x3cf0/0x3e00 [ 29.892508] panic+0x1e4/0x41c [ 29.895670] ? refcount_error_report+0x214/0x214 [ 29.900405] ? add_taint+0x40/0x50 [ 29.903913] ? add_taint+0x1c/0x50 [ 29.907422] ? __lock_acquire+0x3d4d/0x3e00 [ 29.911724] kasan_end_report+0x50/0x50 [ 29.915668] kasan_report+0x148/0x360 [ 29.919438] __asan_report_load8_noabort+0x14/0x20 [ 29.924336] __lock_acquire+0x3d4d/0x3e00 [ 29.928467] ? print_irqtrace_events+0x270/0x270 [ 29.933198] ? remove_wait_queue+0x81/0x350 [ 29.937500] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.942668] ? __lock_acquire+0x664/0x3e00 [ 29.946874] ? lock_downgrade+0x980/0x980 [ 29.950995] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.956160] ? lock_acquire+0x1d5/0x580 [ 29.960108] ? lock_acquire+0x1d5/0x580 [ 29.964054] ? ep_free+0xf4/0x320 [ 29.967480] ? lock_release+0xa40/0xa40 [ 29.971425] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 29.977277] ? check_noncircular+0x20/0x20 [ 29.981493] ? print_irqtrace_events+0x270/0x270 [ 29.986221] ? rcu_note_context_switch+0x710/0x710 [ 29.991123] ? __might_sleep+0x95/0x190 [ 29.995069] ? ep_free+0xf4/0x320 [ 29.998491] ? __mutex_lock+0x16f/0x1a80 [ 30.002538] ? ep_free+0xf4/0x320 [ 30.005963] ? print_irqtrace_events+0x270/0x270 [ 30.010686] ? ep_free+0xf4/0x320 [ 30.014112] lock_acquire+0x1d5/0x580 [ 30.017883] ? lock_acquire+0x1d5/0x580 [ 30.021829] ? remove_wait_queue+0x81/0x350 [ 30.026123] ? lock_release+0xa40/0xa40 [ 30.030103] ? lock_acquire+0x1d5/0x580 [ 30.034051] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 30.039212] ? lock_acquire+0x1d5/0x580 [ 30.043157] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 30.048606] _raw_spin_lock_irqsave+0x96/0xc0 [ 30.053074] ? remove_wait_queue+0x81/0x350 [ 30.057377] remove_wait_queue+0x81/0x350 [ 30.061586] ? depot_save_stack+0x2ca/0x460 [ 30.065877] ? add_wait_queue+0x290/0x290 [ 30.069997] ? rcutorture_record_progress+0x10/0x10 [ 30.074998] ? lock_release+0xa40/0xa40 [ 30.078964] ? is_bpf_text_address+0xa4/0x120 [ 30.083448] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 30.088704] ? unwind_get_return_address+0x61/0xa0 [ 30.093612] ? clear_tfile_check_list+0x370/0x370 [ 30.098434] ? depot_save_stack+0x2ca/0x460 [ 30.102738] ? locks_remove_file+0x3fa/0x5a0 [ 30.107131] ep_free+0x13f/0x320 [ 30.110468] ? ep_remove+0x800/0x800 [ 30.114153] ? fsnotify_first_mark+0x2b0/0x2b0 [ 30.118707] ? ep_free+0x320/0x320 [ 30.122217] ep_eventpoll_release+0x44/0x60 [ 30.126509] __fput+0x327/0x7e0 [ 30.129759] ? fput+0x140/0x140 [ 30.133013] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.137484] ____fput+0x15/0x20 [ 30.140735] task_work_run+0x199/0x270 [ 30.144592] ? task_work_cancel+0x210/0x210 [ 30.148887] ? _raw_spin_unlock+0x22/0x30 [ 30.153019] ? switch_task_namespaces+0x87/0xc0 [ 30.157678] do_exit+0x9bb/0x1ad0 [ 30.161104] ? mm_update_next_owner+0x930/0x930 [ 30.166278] ? avc_ss_reset+0x110/0x110 [ 30.170225] ? mutex_unlock+0xd/0x10 [ 30.173911] ? SyS_epoll_ctl+0x30a/0x1a80 [ 30.178036] ? SyS_epoll_create+0x240/0x240 [ 30.182329] ? lock_downgrade+0x980/0x980 [ 30.186451] ? find_held_lock+0x35/0x1d0 [ 30.190484] ? trace_event_raw_event_sched_switch+0x810/0x810 [ 30.196350] ? ppp_unregister_channel+0x660/0x660 [ 30.201168] ? do_vfs_ioctl+0x486/0x1520 [ 30.205202] ? ioctl_preallocate+0x2b0/0x2b0 [ 30.209585] ? selinux_capable+0x40/0x40 [ 30.213619] ? remap_pfn_range+0x18c/0xb10 [ 30.217823] ? vmacache_find+0x5f/0x280 [ 30.221770] do_group_exit+0x149/0x400 [ 30.225632] ? security_file_ioctl+0x7d/0xb0 [ 30.230025] ? security_file_ioctl+0x89/0xb0 [ 30.234408] ? SyS_exit+0x30/0x30 [ 30.237831] ? compat_SyS_ioctl+0x77/0x2a30 [ 30.242139] ? do_fast_syscall_32+0x156/0xf9f [ 30.246619] ? do_group_exit+0x400/0x400 [ 30.250650] SyS_exit_group+0x1d/0x20 [ 30.254424] do_fast_syscall_32+0x3ec/0xf9f [ 30.258717] ? do_int80_syscall_32+0x9c0/0x9c0 [ 30.263271] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.267999] ? syscall_return_slowpath+0x550/0x550 [ 30.272906] ? syscall_return_slowpath+0x2ac/0x550 [ 30.277808] ? prepare_exit_to_usermode+0x350/0x350 [ 30.282808] ? sysret32_from_system_call+0x5/0x3c [ 30.287622] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.292458] entry_SYSENTER_compat+0x70/0x7f [ 30.296848] RIP: 0023:0xf7f30c79 [ 30.300183] RSP: 002b:00000000ffb9bd1c EFLAGS: 00000292 ORIG_RAX: 00000000000000fc [ 30.307864] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000080eb298 [ 30.315104] RDX: 0000000000000000 RSI: 00000000080d57f8 RDI: 00000000080eb2a0 [ 30.323016] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 30.330272] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 30.337519] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 30.345241] Dumping ftrace buffer: [ 30.348754] (ftrace buffer empty) [ 30.352446] Kernel Offset: disabled [ 30.356133] Rebooting in 86400 seconds..