[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 33.707475] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 [ 34.006133] kauditd_printk_skb: 10 callbacks suppressed [ 34.006140] audit: type=1400 audit(1576223860.822:35): avc: denied { map } for pid=7025 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 syzkaller login: [ 34.109990] random: sshd: uninitialized urandom read (32 bytes read) [ 34.695328] random: sshd: uninitialized urandom read (32 bytes read) [ 103.854442] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.16' (ECDSA) to the list of known hosts. [ 109.538373] random: sshd: uninitialized urandom read (32 bytes read) [ 109.731786] audit: type=1400 audit(1576223936.552:36): avc: denied { map } for pid=7038 comm="syz-execprog" path="/root/syz-execprog" 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 2019/12/13 07:58:56 parsed 1 programs [ 110.209543] random: cc1: uninitialized urandom read (8 bytes read) [ 111.193512] audit: type=1400 audit(1576223938.012:37): avc: denied { map } for pid=7038 comm="syz-execprog" path="/sys/kernel/debug/kcov" dev="debugfs" ino=98 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:debugfs_t:s0 tclass=file permissive=1 2019/12/13 07:58:58 executed programs: 0 [ 111.234200] audit: type=1400 audit(1576223938.052:38): avc: denied { map } for pid=7038 comm="syz-execprog" path="/root/syzkaller-shm087639111" dev="sda1" ino=2233 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 [ 111.501045] IPVS: ftp: loaded support on port[0] = 21 [ 112.308056] chnl_net:caif_netlink_parms(): no params data found [ 112.338164] bridge0: port 1(bridge_slave_0) entered blocking state [ 112.345103] bridge0: port 1(bridge_slave_0) entered disabled state [ 112.352180] device bridge_slave_0 entered promiscuous mode [ 112.359385] bridge0: port 2(bridge_slave_1) entered blocking state [ 112.366032] bridge0: port 2(bridge_slave_1) entered disabled state [ 112.372980] device bridge_slave_1 entered promiscuous mode [ 112.387671] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 112.397668] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 112.415998] IPv6: ADDRCONF(NETDEV_UP): team_slave_0: link is not ready [ 112.423514] team0: Port device team_slave_0 added [ 112.429050] IPv6: ADDRCONF(NETDEV_UP): team_slave_1: link is not ready [ 112.436486] team0: Port device team_slave_1 added [ 112.441983] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_0: link is not ready [ 112.449317] IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready [ 112.521993] device hsr_slave_0 entered promiscuous mode [ 112.560444] device hsr_slave_1 entered promiscuous mode [ 112.601107] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready [ 112.608371] IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready [ 112.622250] bridge0: port 2(bridge_slave_1) entered blocking state [ 112.628671] bridge0: port 2(bridge_slave_1) entered forwarding state [ 112.635679] bridge0: port 1(bridge_slave_0) entered blocking state [ 112.642075] bridge0: port 1(bridge_slave_0) entered forwarding state [ 112.669996] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready [ 112.676210] 8021q: adding VLAN 0 to HW filter on device bond0 [ 112.684135] IPv6: ADDRCONF(NETDEV_UP): veth0: link is not ready [ 112.692964] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 112.714555] bridge0: port 1(bridge_slave_0) entered disabled state [ 112.721755] bridge0: port 2(bridge_slave_1) entered disabled state [ 112.731801] IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready [ 112.737866] 8021q: adding VLAN 0 to HW filter on device team0 [ 112.746773] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 112.754394] bridge0: port 1(bridge_slave_0) entered blocking state [ 112.760890] bridge0: port 1(bridge_slave_0) entered forwarding state [ 112.770351] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 112.777888] bridge0: port 2(bridge_slave_1) entered blocking state [ 112.784272] bridge0: port 2(bridge_slave_1) entered forwarding state [ 112.799979] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 112.807717] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 112.817367] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 112.828043] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 112.837609] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 112.848574] IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready [ 112.854692] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 112.867515] IPv6: ADDRCONF(NETDEV_UP): vxcan0: link is not ready [ 112.875011] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready [ 112.881861] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready [ 112.892130] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 113.300563] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready 2019/12/13 07:59:03 executed programs: 33 2019/12/13 07:59:08 executed programs: 106 2019/12/13 07:59:13 executed programs: 184 2019/12/13 07:59:18 executed programs: 259 2019/12/13 07:59:23 executed programs: 326 2019/12/13 07:59:28 executed programs: 402 2019/12/13 07:59:33 executed programs: 472 2019/12/13 07:59:38 executed programs: 546 2019/12/13 07:59:43 executed programs: 613 2019/12/13 07:59:48 executed programs: 685 2019/12/13 07:59:53 executed programs: 751 2019/12/13 07:59:58 executed programs: 823 [ 172.513458] ================================================================== [ 172.521074] BUG: KASAN: use-after-free in inet_shutdown+0x2d3/0x350 [ 172.527474] Read of size 4 at addr ffff888099fe7980 by task syz-executor.0/13326 [ 172.534995] [ 172.536624] CPU: 0 PID: 13326 Comm: syz-executor.0 Not tainted 4.14.158-syzkaller #0 [ 172.544483] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 172.553818] Call Trace: [ 172.556398] dump_stack+0x142/0x197 [ 172.560024] ? inet_shutdown+0x2d3/0x350 [ 172.564070] print_address_description.cold+0x7c/0x1dc [ 172.569336] ? inet_shutdown+0x2d3/0x350 [ 172.573377] kasan_report.cold+0xa9/0x2af [ 172.577506] __asan_report_load4_noabort+0x14/0x20 [ 172.582413] inet_shutdown+0x2d3/0x350 [ 172.586292] pppol2tp_session_close+0xa0/0xe0 [ 172.590784] l2tp_tunnel_closeall+0x243/0x380 [ 172.595275] ? pppol2tp_recvmsg+0x230/0x230 [ 172.599587] ? l2tp_tunnel_find+0x490/0x490 [ 172.603891] ? udp_v6_flush_pending_frames+0xe0/0xe0 [ 172.608972] l2tp_udp_encap_destroy+0x96/0x100 [ 172.613550] udpv6_destroy_sock+0xb3/0xd0 [ 172.617681] sk_common_release+0x6b/0x310 [ 172.621984] udp_lib_close+0x16/0x20 [ 172.625675] inet_release+0xec/0x1c0 [ 172.629382] inet6_release+0x53/0x80 [ 172.633093] __sock_release+0xce/0x2b0 [ 172.636969] ? __sock_release+0x2b0/0x2b0 [ 172.641104] sock_close+0x1b/0x30 [ 172.644539] __fput+0x275/0x7a0 [ 172.647803] ____fput+0x16/0x20 [ 172.651063] task_work_run+0x114/0x190 [ 172.654937] exit_to_usermode_loop+0x1da/0x220 [ 172.659504] do_syscall_64+0x4bc/0x640 [ 172.663371] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 172.668215] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 172.673384] RIP: 0033:0x4144a1 [ 172.676550] RSP: 002b:00007ffcd57dd2b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 172.684236] RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004144a1 [ 172.691498] RDX: 0000000000000000 RSI: 0000000000000081 RDI: 0000000000000003 [ 172.698760] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffffffffffff [ 172.706026] R10: 00000000007609e0 R11: 0000000000000293 R12: 000000000075bfc8 [ 172.713275] R13: 0000000000000002 R14: 00000000007609f0 R15: 000000000075bfd4 [ 172.720531] [ 172.722189] Allocated by task 13330: [ 172.725882] save_stack_trace+0x16/0x20 [ 172.729850] save_stack+0x45/0xd0 [ 172.733297] kasan_kmalloc+0xce/0xf0 [ 172.736993] kasan_slab_alloc+0xf/0x20 [ 172.740857] kmem_cache_alloc+0x12e/0x780 [ 172.744983] sock_alloc_inode+0x1d/0x260 [ 172.749220] alloc_inode+0x64/0x180 [ 172.752825] new_inode_pseudo+0x19/0xf0 [ 172.756791] sock_alloc+0x41/0x280 [ 172.760309] __sock_create+0x8f/0x620 [ 172.764087] SyS_socket+0xd3/0x170 [ 172.767606] do_syscall_64+0x1e8/0x640 [ 172.771479] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 172.776642] [ 172.778249] Freed by task 13330: [ 172.781595] save_stack_trace+0x16/0x20 [ 172.785545] save_stack+0x45/0xd0 [ 172.789024] kasan_slab_free+0x75/0xc0 [ 172.792890] kmem_cache_free+0x83/0x2b0 [ 172.796842] sock_destroy_inode+0x54/0x60 [ 172.800970] destroy_inode+0xc2/0x120 [ 172.804748] evict+0x3e6/0x630 [ 172.807925] iput+0x471/0x900 [ 172.811007] dentry_unlink_inode+0x286/0x340 [ 172.815390] __dentry_kill+0x32e/0x580 [ 172.819253] dput.part.0+0x59f/0x750 [ 172.822942] dput+0x20/0x30 [ 172.825852] __fput+0x45f/0x7a0 [ 172.829108] ____fput+0x16/0x20 [ 172.832379] task_work_run+0x114/0x190 [ 172.836244] exit_to_usermode_loop+0x1da/0x220 [ 172.840805] do_syscall_64+0x4bc/0x640 [ 172.844670] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 172.849846] [ 172.851482] The buggy address belongs to the object at ffff888099fe7980 [ 172.851482] which belongs to the cache sock_inode_cache of size 992 [ 172.864554] The buggy address is located 0 bytes inside of [ 172.864554] 992-byte region [ffff888099fe7980, ffff888099fe7d60) [ 172.876231] The buggy address belongs to the page: [ 172.881138] page:ffffea000267f9c0 count:1 mapcount:0 mapping:ffff888099fe7080 index:0xffff888099fe7ffd [ 172.890576] flags: 0xfffe0000000100(slab) [ 172.894703] raw: 00fffe0000000100 ffff888099fe7080 ffff888099fe7ffd 0000000100000003 [ 172.902577] raw: ffffea00023c41e0 ffffea000267f9a0 ffff8880a9e19780 0000000000000000 [ 172.910706] page dumped because: kasan: bad access detected [ 172.916511] [ 172.918149] Memory state around the buggy address: [ 172.923071] ffff888099fe7880: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 172.930661] ffff888099fe7900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 172.938004] >ffff888099fe7980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 172.945357] ^ [ 172.948702] ffff888099fe7a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 172.956040] ffff888099fe7a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 172.963374] ================================================================== [ 172.970710] Disabling lock debugging due to kernel taint [ 172.977250] Kernel panic - not syncing: panic_on_warn set ... [ 172.977250] [ 172.984734] CPU: 1 PID: 13326 Comm: syz-executor.0 Tainted: G B 4.14.158-syzkaller #0 [ 172.990112] kobject: 'loop0' (ffff8880a405c4a0): kobject_uevent_env [ 172.993812] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 173.000276] kobject: 'loop0' (ffff8880a405c4a0): fill_kobj_path: path = '/devices/virtual/block/loop0' [ 173.009550] Call Trace: [ 173.021553] dump_stack+0x142/0x197 [ 173.025181] ? inet_shutdown+0x2d3/0x350 [ 173.029241] panic+0x1f9/0x42d [ 173.032432] ? add_taint.cold+0x16/0x16 [ 173.036411] ? ___preempt_schedule+0x16/0x18 [ 173.040821] kasan_end_report+0x47/0x4f [ 173.044805] kasan_report.cold+0x130/0x2af [ 173.049046] __asan_report_load4_noabort+0x14/0x20 [ 173.053986] inet_shutdown+0x2d3/0x350 [ 173.057875] pppol2tp_session_close+0xa0/0xe0 [ 173.062375] l2tp_tunnel_closeall+0x243/0x380 [ 173.066869] ? pppol2tp_recvmsg+0x230/0x230 [ 173.071186] ? l2tp_tunnel_find+0x490/0x490 [ 173.075506] ? udp_v6_flush_pending_frames+0xe0/0xe0 [ 173.080611] l2tp_udp_encap_destroy+0x96/0x100 [ 173.085194] udpv6_destroy_sock+0xb3/0xd0 [ 173.089343] sk_common_release+0x6b/0x310 [ 173.093494] udp_lib_close+0x16/0x20 [ 173.097209] inet_release+0xec/0x1c0 [ 173.100922] inet6_release+0x53/0x80 [ 173.104808] __sock_release+0xce/0x2b0 [ 173.108769] ? __sock_release+0x2b0/0x2b0 [ 173.112917] sock_close+0x1b/0x30 [ 173.116369] __fput+0x275/0x7a0 [ 173.119654] ____fput+0x16/0x20 [ 173.122930] task_work_run+0x114/0x190 [ 173.126816] exit_to_usermode_loop+0x1da/0x220 [ 173.131409] do_syscall_64+0x4bc/0x640 [ 173.135298] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 173.140144] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 173.145328] RIP: 0033:0x4144a1 [ 173.148513] RSP: 002b:00007ffcd57dd2b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 [ 173.156217] RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004144a1 [ 173.163485] RDX: 0000000000000000 RSI: 0000000000000081 RDI: 0000000000000003 [ 173.170754] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffffffffffff [ 173.178023] R10: 00000000007609e0 R11: 0000000000000293 R12: 000000000075bfc8 [ 173.185289] R13: 0000000000000002 R14: 00000000007609f0 R15: 000000000075bfd4 [ 173.194200] Kernel Offset: disabled [ 173.197846] Rebooting in 86400 seconds..