From nobody Fri May 20 21:04:16 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5916E1B3DA1D for ; Fri, 20 May 2022 21:04:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L4fNd1PcHz3nx0 for ; Fri, 20 May 2022 21:04:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 102C4197D5 for ; Fri, 20 May 2022 21:04:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24KL4HA1036971 for ; Fri, 20 May 2022 21:04:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24KL4HMe036970 for bugs@FreeBSD.org; Fri, 20 May 2022 21:04:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264021] efi: failed to allocate staging area: 9 Date: Fri, 20 May 2022 21:04:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jrtc27@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653080657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uhFWdQdx0/eAKFSvg1LXASBawpP28UnKBLbipLT3d8c=; b=fCBvlWerS+STYSbQYHJlJl1S81LI7yfogZxf/cG1PioAV7AIeJ+x2CbfFbd4TJgvph+Xsw 7ebu7qVFVm6sXkA+OossXnvDS8ap59CJ6c4lQCr1hgbcMh9Z0c6e72iIz6WTeoiIj8a410 Vd8IbKsayvNXyJKjwXHfX4oN1CRhmPqT5JHoq7mFDlSb4gvV+t4tyyrvcwMtcaaaLadDTO nwODt21n002FJ0Cr5TXkqO+JjRNcxSi6rrrNRJl4F9avL3axxE9PRlyS7ns8Z6qHp5qvo2 XaNGURd2A3o42Gur8ZLh0Q/sl4rMFemi7KtGmSJHfRCsJX7UeT2AmGCQN/Pulw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653080657; a=rsa-sha256; cv=none; b=icEl11ZVopcqjlOC+4JNlYOz4VNjmpmYPj4fZroOil+J7r7DzDsC5AU9t8JtymEyTRMeG+ jenIEm6qzXR5xf0cqPcVmZRa8lLw++cFfEFEoA+83YQUi3CIbPwFU77I5y64hvM+yRTYFp o5a4SFVeMkWC5fpcQ56QPR9VHJY0zgpvc8i9JlAM2nbvu80WONUB1ZZNGML9X9AcXAumKD VR7Na+c3EVj7Q8rdXQaES2n3FmZrivG/HGKij27TUOGGIQtgtBPxy3jpJ/XKKGsRHYkOxA 4UV56rCu6Hp0rU71qkzO+1oLloaTh6U+/GHuRl8zOGwahr7qQim/Tlolx/qZPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264021 Jessica Clarke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jrtc27@freebsd.org --- Comment #8 from Jessica Clarke --- I doubt efihdr is the problem. It's likely that the call to BS->GetMemoryMap the first time round the loop, which is guaranteed to be executed, reads an uninitialised mm, and thus we have trivially provably guaranteed UB ("The v= alue of an object with automatic storage duration is used while it is indeterminate"). What value it takes doesn't matter as the first time round= the loop we use sz =3D 0 so, unless the memory map has 0 entries, it's guarante= ed to fit, but it must be initialised to something determinate. Minimal-ish reproducer: https://godbolt.org/z/KTvd73osd --=20 You are receiving this mail because: You are the assignee for the bug.=