[....] Starting enhanced syslogd: rsyslogd[ 16.936983] audit: type=1400 audit(1519800481.756:5): avc: denied { syslog } for pid=4084 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.200093] audit: type=1400 audit(1519800487.019:6): avc: denied { map } for pid=4224 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.18' (ECDSA) to the list of known hosts. executing program [ 28.491444] audit: type=1400 audit(1519800493.311:7): avc: denied { map } for pid=4238 comm="syzkaller305740" path="/root/syzkaller305740266" 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 [ 28.528229] ================================================================== [ 28.535587] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 28.542218] Read of size 8 at addr ffff8801afa039c0 by task syzkaller305740/4238 [ 28.549716] [ 28.551315] CPU: 1 PID: 4238 Comm: syzkaller305740 Not tainted 4.16.0-rc3+ #332 [ 28.558728] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.568054] Call Trace: [ 28.570614] dump_stack+0x194/0x24d [ 28.574230] ? arch_local_irq_restore+0x53/0x53 [ 28.578867] ? show_regs_print_info+0x18/0x18 [ 28.583331] ? __lock_acquire+0x3d4d/0x3e00 [ 28.587621] print_address_description+0x73/0x250 [ 28.592430] ? __lock_acquire+0x3d4d/0x3e00 [ 28.596718] kasan_report+0x23b/0x360 [ 28.600486] __asan_report_load8_noabort+0x14/0x20 [ 28.605382] __lock_acquire+0x3d4d/0x3e00 [ 28.609499] ? remove_wait_queue+0x81/0x350 [ 28.613788] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.618943] ? __lock_acquire+0x664/0x3e00 [ 28.623144] ? lock_downgrade+0x980/0x980 [ 28.627263] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.632419] ? lock_acquire+0x1d5/0x580 [ 28.636361] ? lock_acquire+0x1d5/0x580 [ 28.640307] ? ep_free+0xf4/0x320 [ 28.643738] ? lock_release+0xa40/0xa40 [ 28.647685] ? check_same_owner+0x320/0x320 [ 28.651972] ? trace_hardirqs_off+0x10/0x10 [ 28.656261] ? print_irqtrace_events+0x270/0x270 [ 28.660989] ? rcu_note_context_switch+0x710/0x710 [ 28.665886] ? __might_sleep+0x95/0x190 [ 28.669829] ? ep_free+0xf4/0x320 [ 28.673253] ? __mutex_lock+0x16f/0x1a80 [ 28.677279] ? ep_free+0xf4/0x320 [ 28.680706] ? print_irqtrace_events+0x270/0x270 [ 28.685434] ? ep_free+0xf4/0x320 [ 28.688866] lock_acquire+0x1d5/0x580 [ 28.692636] ? lock_acquire+0x1d5/0x580 [ 28.696583] ? remove_wait_queue+0x81/0x350 [ 28.700876] ? lock_release+0xa40/0xa40 [ 28.704823] ? lock_acquire+0x1d5/0x580 [ 28.708764] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 28.713920] ? lock_acquire+0x1d5/0x580 [ 28.717863] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 28.723283] _raw_spin_lock_irqsave+0x96/0xc0 [ 28.727745] ? remove_wait_queue+0x81/0x350 [ 28.732033] remove_wait_queue+0x81/0x350 [ 28.736148] ? rcutorture_record_progress+0x10/0x10 [ 28.741137] ? add_wait_queue+0x290/0x290 [ 28.745253] ? rcutorture_record_progress+0x10/0x10 [ 28.750238] ? is_bpf_text_address+0xa4/0x120 [ 28.754718] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 28.759977] ? unwind_get_return_address+0x61/0xa0 [ 28.764883] ? clear_tfile_check_list+0x370/0x370 [ 28.769708] ? locks_remove_file+0x3fa/0x5a0 [ 28.774101] ep_free+0x13f/0x320 [ 28.777436] ? ep_remove+0x800/0x800 [ 28.781125] ? fsnotify_first_mark+0x2b0/0x2b0 [ 28.785678] ? ep_free+0x320/0x320 [ 28.789198] ep_eventpoll_release+0x44/0x60 [ 28.793501] __fput+0x327/0x7e0 [ 28.796760] ? fput+0x140/0x140 [ 28.800016] ? _raw_spin_unlock_irq+0x27/0x70 [ 28.804483] ____fput+0x15/0x20 [ 28.807733] task_work_run+0x199/0x270 [ 28.811588] ? task_work_cancel+0x210/0x210 [ 28.815877] ? _raw_spin_unlock+0x22/0x30 [ 28.819993] ? switch_task_namespaces+0x87/0xc0 [ 28.824631] do_exit+0x9bb/0x1ad0 [ 28.828053] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 28.833036] ? mm_update_next_owner+0x930/0x930 [ 28.837672] ? avc_has_extended_perms+0x7fa/0x12c0 [ 28.842568] ? __might_sleep+0xd4/0x190 [ 28.846509] ? avc_ss_reset+0x110/0x110 [ 28.850452] ? mutex_unlock+0xd/0x10 [ 28.854132] ? SyS_epoll_ctl+0x30a/0x1a80 [ 28.858251] ? find_held_lock+0x35/0x1d0 [ 28.862279] ? SyS_epoll_create+0x240/0x240 [ 28.866567] ? lock_downgrade+0x980/0x980 [ 28.870692] ? rcu_note_context_switch+0x710/0x710 [ 28.875588] ? __fd_install+0x288/0x740 [ 28.879533] ? ppp_unregister_channel+0x660/0x660 [ 28.884345] ? do_vfs_ioctl+0x486/0x1520 [ 28.888376] ? ioctl_preallocate+0x2b0/0x2b0 [ 28.892754] ? selinux_capable+0x40/0x40 [ 28.896781] ? __alloc_fd+0x750/0x750 [ 28.900562] do_group_exit+0x149/0x400 [ 28.904419] ? SyS_exit+0x30/0x30 [ 28.907844] ? security_file_ioctl+0x7d/0xb0 [ 28.912220] ? security_file_ioctl+0x89/0xb0 [ 28.916599] ? do_syscall_64+0xb7/0x940 [ 28.920540] ? do_group_exit+0x400/0x400 [ 28.924567] SyS_exit_group+0x1d/0x20 [ 28.928334] do_syscall_64+0x281/0x940 [ 28.932193] ? __do_page_fault+0xc90/0xc90 [ 28.936394] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 28.941127] ? syscall_return_slowpath+0x550/0x550 [ 28.946051] ? syscall_return_slowpath+0x2ac/0x550 [ 28.950950] ? prepare_exit_to_usermode+0x350/0x350 [ 28.955935] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 28.961264] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 28.966074] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 28.971234] RIP: 0033:0x43e958 [ 28.974396] RSP: 002b:00007ffe63a11468 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 28.982069] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e958 [ 28.989311] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 28.996552] RBP: 00000000004be300 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.003788] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 29.011026] R13: 00000000006cc160 R14: 0000000000000000 R15: 0000000000000000 [ 29.018267] [ 29.019866] Allocated by task 4238: [ 29.023460] save_stack+0x43/0xd0 [ 29.026878] kasan_kmalloc+0xad/0xe0 [ 29.030558] __kmalloc_node+0x47/0x70 [ 29.034326] kvmalloc_node+0x99/0xd0 [ 29.038014] alloc_netdev_mqs+0x16d/0xfb0 [ 29.042138] ppp_ioctl+0x1715/0x2a50 [ 29.045907] do_vfs_ioctl+0x1b1/0x1520 [ 29.049762] SyS_ioctl+0x8f/0xc0 [ 29.053098] do_syscall_64+0x281/0x940 [ 29.056958] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.062114] [ 29.063713] Freed by task 4238: [ 29.066962] save_stack+0x43/0xd0 [ 29.070379] __kasan_slab_free+0x11a/0x170 [ 29.074578] kasan_slab_free+0xe/0x10 [ 29.078346] kfree+0xd9/0x260 [ 29.081418] kvfree+0x36/0x60 [ 29.084492] netdev_freemem+0x4c/0x60 [ 29.088262] netdev_release+0x10a/0x160 [ 29.092212] device_release+0x7c/0x210 [ 29.096070] kobject_put+0x14c/0x250 [ 29.099753] put_device+0x20/0x30 [ 29.103177] free_netdev+0x2f5/0x400 [ 29.106859] ppp_destroy_interface+0x2bc/0x390 [ 29.111410] ppp_release+0x12b/0x1a0 [ 29.115092] ppp_ioctl+0x3b1/0x2a50 [ 29.118688] do_vfs_ioctl+0x1b1/0x1520 [ 29.122540] SyS_ioctl+0x8f/0xc0 [ 29.125874] do_syscall_64+0x281/0x940 [ 29.129727] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.134882] [ 29.136478] The buggy address belongs to the object at ffff8801afa02e40 [ 29.136478] which belongs to the cache kmalloc-4096 of size 4096 [ 29.149271] The buggy address is located 2944 bytes inside of [ 29.149271] 4096-byte region [ffff8801afa02e40, ffff8801afa03e40) [ 29.161282] The buggy address belongs to the page: [ 29.166180] page:ffffea0006be8080 count:1 mapcount:0 mapping:ffff8801afa02e40 index:0x0 compound_mapcount: 0 [ 29.176118] flags: 0x2fffc0000008100(slab|head) [ 29.180755] raw: 02fffc0000008100 ffff8801afa02e40 0000000000000000 0000000100000001 [ 29.188615] raw: ffffea0006bee220 ffffea0006bee7a0 ffff8801dac00dc0 0000000000000000 [ 29.196462] page dumped because: kasan: bad access detected [ 29.202135] [ 29.203728] Memory state around the buggy address: [ 29.208623] ffff8801afa03880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.215951] ffff8801afa03900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.223275] >ffff8801afa03980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.230598] ^ [ 29.236015] ffff8801afa03a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.244728] ffff8801afa03a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.252063] ================================================================== [ 29.259396] Disabling lock debugging due to kernel taint [ 29.264813] Kernel panic - not syncing: panic_on_warn set ... [ 29.264813] [ 29.272144] CPU: 1 PID: 4238 Comm: syzkaller305740 Tainted: G B 4.16.0-rc3+ #332 [ 29.280859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.290183] Call Trace: [ 29.292741] dump_stack+0x194/0x24d [ 29.296337] ? arch_local_irq_restore+0x53/0x53 [ 29.300975] ? kasan_end_report+0x32/0x50 [ 29.305094] ? lock_downgrade+0x980/0x980 [ 29.309211] ? vsnprintf+0x1ed/0x1900 [ 29.312978] ? __lock_acquire+0x3d30/0x3e00 [ 29.317269] panic+0x1e4/0x41c [ 29.320427] ? refcount_error_report+0x214/0x214 [ 29.325150] ? add_taint+0x40/0x50 [ 29.328657] ? add_taint+0x1c/0x50 [ 29.332165] ? __lock_acquire+0x3d4d/0x3e00 [ 29.336453] kasan_end_report+0x50/0x50 [ 29.340395] kasan_report+0x148/0x360 [ 29.344173] __asan_report_load8_noabort+0x14/0x20 [ 29.349071] __lock_acquire+0x3d4d/0x3e00 [ 29.353194] ? remove_wait_queue+0x81/0x350 [ 29.357484] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.362641] ? __lock_acquire+0x664/0x3e00 [ 29.366843] ? lock_downgrade+0x980/0x980 [ 29.370961] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.376117] ? lock_acquire+0x1d5/0x580 [ 29.380061] ? lock_acquire+0x1d5/0x580 [ 29.384005] ? ep_free+0xf4/0x320 [ 29.387427] ? lock_release+0xa40/0xa40 [ 29.391373] ? check_same_owner+0x320/0x320 [ 29.395666] ? trace_hardirqs_off+0x10/0x10 [ 29.399954] ? print_irqtrace_events+0x270/0x270 [ 29.404680] ? rcu_note_context_switch+0x710/0x710 [ 29.409576] ? __might_sleep+0x95/0x190 [ 29.413516] ? ep_free+0xf4/0x320 [ 29.416940] ? __mutex_lock+0x16f/0x1a80 [ 29.420968] ? ep_free+0xf4/0x320 [ 29.424389] ? print_irqtrace_events+0x270/0x270 [ 29.429110] ? ep_free+0xf4/0x320 [ 29.432530] lock_acquire+0x1d5/0x580 [ 29.436296] ? lock_acquire+0x1d5/0x580 [ 29.440239] ? remove_wait_queue+0x81/0x350 [ 29.444526] ? lock_release+0xa40/0xa40 [ 29.448470] ? lock_acquire+0x1d5/0x580 [ 29.452410] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 29.457565] ? lock_acquire+0x1d5/0x580 [ 29.461505] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 29.466926] _raw_spin_lock_irqsave+0x96/0xc0 [ 29.471389] ? remove_wait_queue+0x81/0x350 [ 29.475681] remove_wait_queue+0x81/0x350 [ 29.479798] ? rcutorture_record_progress+0x10/0x10 [ 29.484782] ? add_wait_queue+0x290/0x290 [ 29.488897] ? rcutorture_record_progress+0x10/0x10 [ 29.493881] ? is_bpf_text_address+0xa4/0x120 [ 29.498344] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 29.503593] ? unwind_get_return_address+0x61/0xa0 [ 29.508492] ? clear_tfile_check_list+0x370/0x370 [ 29.513306] ? locks_remove_file+0x3fa/0x5a0 [ 29.517681] ep_free+0x13f/0x320 [ 29.521014] ? ep_remove+0x800/0x800 [ 29.524698] ? fsnotify_first_mark+0x2b0/0x2b0 [ 29.529246] ? ep_free+0x320/0x320 [ 29.532752] ep_eventpoll_release+0x44/0x60 [ 29.537043] __fput+0x327/0x7e0 [ 29.540290] ? fput+0x140/0x140 [ 29.543548] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.548015] ____fput+0x15/0x20 [ 29.551263] task_work_run+0x199/0x270 [ 29.555123] ? task_work_cancel+0x210/0x210 [ 29.559423] ? _raw_spin_unlock+0x22/0x30 [ 29.563545] ? switch_task_namespaces+0x87/0xc0 [ 29.568185] do_exit+0x9bb/0x1ad0 [ 29.571611] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.576598] ? mm_update_next_owner+0x930/0x930 [ 29.581242] ? avc_has_extended_perms+0x7fa/0x12c0 [ 29.586146] ? __might_sleep+0xd4/0x190 [ 29.590099] ? avc_ss_reset+0x110/0x110 [ 29.594047] ? mutex_unlock+0xd/0x10 [ 29.597734] ? SyS_epoll_ctl+0x30a/0x1a80 [ 29.601856] ? find_held_lock+0x35/0x1d0 [ 29.605892] ? SyS_epoll_create+0x240/0x240 [ 29.610186] ? lock_downgrade+0x980/0x980 [ 29.614314] ? rcu_note_context_switch+0x710/0x710 [ 29.619214] ? __fd_install+0x288/0x740 [ 29.623160] ? ppp_unregister_channel+0x660/0x660 [ 29.627972] ? do_vfs_ioctl+0x486/0x1520 [ 29.632000] ? ioctl_preallocate+0x2b0/0x2b0 [ 29.636397] ? selinux_capable+0x40/0x40 [ 29.640435] ? __alloc_fd+0x750/0x750 [ 29.644205] do_group_exit+0x149/0x400 [ 29.648060] ? SyS_exit+0x30/0x30 [ 29.651483] ? security_file_ioctl+0x7d/0xb0 [ 29.655860] ? security_file_ioctl+0x89/0xb0 [ 29.660236] ? do_syscall_64+0xb7/0x940 [ 29.664176] ? do_group_exit+0x400/0x400 [ 29.668203] SyS_exit_group+0x1d/0x20 [ 29.671973] do_syscall_64+0x281/0x940 [ 29.675832] ? __do_page_fault+0xc90/0xc90 [ 29.680036] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.684761] ? syscall_return_slowpath+0x550/0x550 [ 29.689659] ? syscall_return_slowpath+0x2ac/0x550 [ 29.694555] ? prepare_exit_to_usermode+0x350/0x350 [ 29.699540] ? entry_SYSCALL_64_after_hwframe+0x52/0xb7 [ 29.704871] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.709681] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 29.714835] RIP: 0033:0x43e958 [ 29.717991] RSP: 002b:00007ffe63a11468 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.725666] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043e958 [ 29.732906] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.740144] RBP: 00000000004be300 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.747382] R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000000001 [ 29.754621] R13: 00000000006cc160 R14: 0000000000000000 R15: 0000000000000000 [ 29.762182] Dumping ftrace buffer: [ 29.765690] (ftrace buffer empty) [ 29.769368] Kernel Offset: disabled [ 29.772967] Rebooting in 86400 seconds..