[....] Starting enhanced syslogd: rsyslogd[ 15.964515] audit: type=1400 audit(1518313690.465:5): avc: denied { syslog } for pid=3991 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: [ 18.442460] audit: type=1400 audit(1518313692.943:6): avc: denied { map } for pid=4128 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.56' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program [ 24.716922] audit: type=1400 audit(1518313699.217:7): avc: denied { map } for pid=4142 comm="syzkaller003974" path="/root/syzkaller003974443" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 25.190348] ================================================================== [ 25.197898] BUG: KASAN: use-after-free in inet_shutdown+0x2d4/0x350 [ 25.204429] Read of size 4 at addr ffff8801c80c1180 by task syzkaller003974/4254 [ 25.211971] [ 25.213604] CPU: 1 PID: 4254 Comm: syzkaller003974 Not tainted 4.15.0+ #218 [ 25.220701] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.230065] Call Trace: [ 25.232674] dump_stack+0x194/0x257 executing program executing program [ 25.236323] ? arch_local_irq_restore+0x53/0x53 [ 25.241002] ? show_regs_print_info+0x18/0x18 [ 25.245512] ? mark_held_locks+0xaf/0x100 [ 25.249681] ? do_raw_spin_trylock+0x190/0x190 [ 25.254276] ? inet_shutdown+0x2d4/0x350 [ 25.258352] print_address_description+0x73/0x250 [ 25.263210] ? inet_shutdown+0x2d4/0x350 [ 25.267283] kasan_report+0x23b/0x360 [ 25.271116] __asan_report_load4_noabort+0x14/0x20 [ 25.276052] inet_shutdown+0x2d4/0x350 [ 25.279960] pppol2tp_session_close+0x92/0xf0 [ 25.284477] l2tp_tunnel_closeall+0x305/0x410 executing program executing program executing program [ 25.288988] ? pppol2tp_seq_show+0x1420/0x1420 [ 25.293581] ? __l2tp_session_unhash+0x7d0/0x7d0 [ 25.298350] ? __release_sock+0x360/0x360 [ 25.302503] ? lock_sock_nested+0x91/0x110 [ 25.306758] ? l2tp_tunnel_del_work+0x4a0/0x4a0 [ 25.311434] l2tp_udp_encap_destroy+0x95/0x100 [ 25.316031] udpv6_destroy_sock+0x161/0x190 [ 25.320374] ? udp_v6_flush_pending_frames+0xe0/0xe0 [ 25.325494] ? l2tp_tunnel_del_work+0x4a0/0x4a0 [ 25.330184] ? ipv6_sock_ac_close+0x2e8/0x3e0 [ 25.334727] ? udp_v6_flush_pending_frames+0xe0/0xe0 executing program [ 25.339844] sk_common_release+0x6b/0x2f0 [ 25.344011] udp_lib_close+0x15/0x20 [ 25.347737] inet_release+0xed/0x1c0 [ 25.351470] inet6_release+0x50/0x70 [ 25.355192] sock_release+0x8d/0x1e0 [ 25.358914] ? sock_alloc_file+0x560/0x560 [ 25.363159] sock_close+0x16/0x20 [ 25.366619] __fput+0x327/0x7e0 [ 25.369916] ? fput+0x140/0x140 [ 25.373210] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.377732] ____fput+0x15/0x20 [ 25.381019] task_work_run+0x199/0x270 [ 25.384925] ? task_work_cancel+0x210/0x210 executing program executing program [ 25.389255] ? __close_fd+0x222/0x360 [ 25.393064] ? exit_to_usermode_loop+0x8c/0x2f0 [ 25.397752] exit_to_usermode_loop+0x275/0x2f0 [ 25.402354] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.407913] ? do_fast_syscall_32+0x156/0xfa1 [ 25.412426] ? filp_close+0x230/0x230 [ 25.416250] do_fast_syscall_32+0xbe8/0xfa1 [ 25.420600] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.425197] ? finish_task_switch+0x1e2/0x890 [ 25.429816] ? finish_task_switch+0x1b9/0x890 [ 25.434334] ? syscall_return_slowpath+0x2ac/0x550 executing program executing program [ 25.439386] ? prepare_exit_to_usermode+0x350/0x350 [ 25.444418] ? sysret32_from_system_call+0x5/0x3b [ 25.449283] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.454152] entry_SYSENTER_compat+0x54/0x63 [ 25.458568] RIP: 0023:0xf7f4bc79 [ 25.462046] RSP: 002b:00000000f7f471fc EFLAGS: 00000296 ORIG_RAX: 0000000000000006 [ 25.469764] RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000000001 [ 25.477044] RDX: 0000000000000032 RSI: 0000000000000000 RDI: 0000000000000000 [ 25.484325] RBP: 00000000003d0f00 R08: 0000000000000000 R09: 0000000000000000 executing program executing program [ 25.491605] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.498887] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.506185] [ 25.507808] Allocated by task 4265: [ 25.511446] save_stack+0x43/0xd0 [ 25.514906] kasan_kmalloc+0xad/0xe0 [ 25.518634] kasan_slab_alloc+0x12/0x20 [ 25.522614] kmem_cache_alloc+0x12e/0x760 [ 25.526766] sock_alloc_inode+0x70/0x300 [ 25.530847] alloc_inode+0x65/0x180 [ 25.534480] new_inode_pseudo+0x69/0x190 [ 25.538544] sock_alloc+0x41/0x270 executing program executing program [ 25.542097] __sock_create+0x148/0x850 [ 25.545994] SyS_socket+0xeb/0x1d0 [ 25.549541] do_fast_syscall_32+0x3ee/0xfa1 [ 25.553866] entry_SYSENTER_compat+0x54/0x63 [ 25.558268] [ 25.559893] Freed by task 4265: [ 25.563179] save_stack+0x43/0xd0 [ 25.566636] __kasan_slab_free+0x11a/0x170 [ 25.570878] kasan_slab_free+0xe/0x10 [ 25.574682] kmem_cache_free+0x83/0x2a0 [ 25.578662] sock_destroy_inode+0x56/0x70 [ 25.582809] destroy_inode+0x15d/0x200 [ 25.586711] evict+0x57e/0x920 executing program executing program executing program [ 25.589908] iput+0x7b9/0xaf0 [ 25.593016] dentry_unlink_inode+0x4b0/0x5e0 [ 25.597433] __dentry_kill+0x3de/0x700 [ 25.601333] dput.part.21+0x6fb/0x830 [ 25.605140] dput+0x1f/0x30 [ 25.608077] __fput+0x51c/0x7e0 [ 25.611363] ____fput+0x15/0x20 [ 25.614646] task_work_run+0x199/0x270 [ 25.618538] exit_to_usermode_loop+0x275/0x2f0 [ 25.623125] do_fast_syscall_32+0xbe8/0xfa1 [ 25.627453] entry_SYSENTER_compat+0x54/0x63 [ 25.631854] [ 25.633487] The buggy address belongs to the object at ffff8801c80c1180 executing program executing program [ 25.633487] which belongs to the cache sock_inode_cache of size 992 [ 25.646591] The buggy address is located 0 bytes inside of [ 25.646591] 992-byte region [ffff8801c80c1180, ffff8801c80c1560) [ 25.658292] The buggy address belongs to the page: [ 25.663225] page:ffffea0007203040 count:1 mapcount:0 mapping:ffff8801c80c1180 index:0xffff8801c80c1ffd [ 25.672679] flags: 0x2fffc0000000100(slab) [ 25.676918] raw: 02fffc0000000100 ffff8801c80c1180 ffff8801c80c1ffd 0000000100000003 [ 25.684809] raw: ffffea0007203760 ffffea00072037a0 ffff8801d9fea380 0000000000000000 executing program executing program executing program [ 25.692688] page dumped because: kasan: bad access detected [ 25.698399] [ 25.700027] Memory state around the buggy address: [ 25.704957] ffff8801c80c1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.712321] ffff8801c80c1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.719691] >ffff8801c80c1180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.727052] ^ [ 25.730422] ffff8801c80c1200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program [ 25.737800] ffff8801c80c1280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.745169] ================================================================== [ 25.752537] Disabling lock debugging due to kernel taint [ 25.758143] Kernel panic - not syncing: panic_on_warn set ... [ 25.758143] [ 25.765512] CPU: 1 PID: 4254 Comm: syzkaller003974 Tainted: G B 4.15.0+ #218 [ 25.773916] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.783273] Call Trace: [ 25.785864] dump_stack+0x194/0x257 executing program executing program [ 25.789498] ? arch_local_irq_restore+0x53/0x53 [ 25.794166] ? kasan_end_report+0x32/0x50 [ 25.798321] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.803076] ? vsnprintf+0x1ed/0x1900 [ 25.806877] ? inet_shutdown+0x250/0x350 [ 25.810941] panic+0x1e4/0x41c [ 25.814139] ? refcount_error_report+0x214/0x214 [ 25.818916] ? add_taint+0x1c/0x50 [ 25.822474] ? add_taint+0x1c/0x50 [ 25.826026] ? inet_shutdown+0x2d4/0x350 [ 25.830106] kasan_end_report+0x50/0x50 [ 25.834097] kasan_report+0x148/0x360 [ 25.837912] __asan_report_load4_noabort+0x14/0x20 executing program executing program executing program executing program executing program [ 25.842845] inet_shutdown+0x2d4/0x350 [ 25.846739] pppol2tp_session_close+0x92/0xf0 [ 25.851240] l2tp_tunnel_closeall+0x305/0x410 [ 25.855739] ? pppol2tp_seq_show+0x1420/0x1420 [ 25.860323] ? __l2tp_session_unhash+0x7d0/0x7d0 [ 25.865089] ? __release_sock+0x360/0x360 [ 25.869245] ? lock_sock_nested+0x91/0x110 [ 25.873492] ? l2tp_tunnel_del_work+0x4a0/0x4a0 [ 25.878167] l2tp_udp_encap_destroy+0x95/0x100 [ 25.882755] udpv6_destroy_sock+0x161/0x190 [ 25.887091] ? udp_v6_flush_pending_frames+0xe0/0xe0 executing program executing program executing program [ 25.892202] ? l2tp_tunnel_del_work+0x4a0/0x4a0 [ 25.896875] ? ipv6_sock_ac_close+0x2e8/0x3e0 [ 25.901379] ? udp_v6_flush_pending_frames+0xe0/0xe0 [ 25.906501] sk_common_release+0x6b/0x2f0 [ 25.910649] udp_lib_close+0x15/0x20 [ 25.914365] inet_release+0xed/0x1c0 [ 25.918083] inet6_release+0x50/0x70 [ 25.921801] sock_release+0x8d/0x1e0 [ 25.925531] ? sock_alloc_file+0x560/0x560 [ 25.929773] sock_close+0x16/0x20 [ 25.933233] __fput+0x327/0x7e0 [ 25.936526] ? fput+0x140/0x140 executing program executing program executing program [ 25.939809] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.944316] ____fput+0x15/0x20 [ 25.947606] task_work_run+0x199/0x270 [ 25.951492] ? task_work_cancel+0x210/0x210 [ 25.955815] ? __close_fd+0x222/0x360 [ 25.959620] ? exit_to_usermode_loop+0x8c/0x2f0 [ 25.964295] exit_to_usermode_loop+0x275/0x2f0 [ 25.968881] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 25.974426] ? do_fast_syscall_32+0x156/0xfa1 [ 25.978928] ? filp_close+0x230/0x230 [ 25.982745] do_fast_syscall_32+0xbe8/0xfa1 [ 25.987079] ? do_int80_syscall_32+0x9d0/0x9d0 executing program executing program executing program [ 25.991674] ? finish_task_switch+0x1e2/0x890 [ 25.996176] ? finish_task_switch+0x1b9/0x890 [ 26.000696] ? syscall_return_slowpath+0x2ac/0x550 [ 26.005651] ? prepare_exit_to_usermode+0x350/0x350 [ 26.010676] ? sysret32_from_system_call+0x5/0x3b [ 26.015527] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 26.020378] entry_SYSENTER_compat+0x54/0x63 [ 26.024785] RIP: 0023:0xf7f4bc79 [ 26.028143] RSP: 002b:00000000f7f471fc EFLAGS: 00000296 ORIG_RAX: 0000000000000006 [ 26.035861] RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000000001 executing program executing program [ 26.043138] RDX: 0000000000000032 RSI: 0000000000000000 RDI: 0000000000000000 [ 26.050414] RBP: 00000000003d0f00 R08: 0000000000000000 R09: 0000000000000000 [ 26.057685] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 26.064957] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 26.072716] Dumping ftrace buffer: [ 26.076243] (ftrace buffer empty) [ 26.079929] Kernel Offset: disabled [ 26.083527] Rebooting in 86400 seconds..