From nobody Sat May 21 11:06:54 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 DA8FC1AEC65F for ; Sat, 21 May 2022 11:06:55 +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 4L514v4RW2z3C2P for ; Sat, 21 May 2022 11:06:55 +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 7867F2581F for ; Sat, 21 May 2022 11:06:55 +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 24LB6tDu003948 for ; Sat, 21 May 2022 11:06:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24LB6tnQ003947 for bugs@FreeBSD.org; Sat, 21 May 2022 11:06:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla 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: Sat, 21 May 2022 11:06:54 +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: commit-hook@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: 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=1653131215; 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=ZDxv0Ko8yvW8pwVqFHEzXc0+M/UkTLyrAumUwcwYwNo=; b=VyIRw5o9tCtd3ubI2g7zfvXqUQSfpR3r0whOfkajap+hwBwHaRGRRqgLCX1+uy7sEKKVOm Ga492lrqigXK1nG6dBEBCtzOMVldczDwdjRlIuZO0DRJjeEUPmDpnr86eyeBFJ2mico9Xi VHy3x6vOkgmOTWHrzVZOFtt1GMgUNdj3dLDSluNEJfag86OPkS9yML+8cfUalboTv5Grlo z8FDM4KNxaAEwgTjh3Wo+41IBuFPwigCoyDcN/KrPH0/52WDB8NN6S5fKPl+sQKNqt1QqI dv/NCg6XtgfADqix0q2aM4qxO/DK10QgYusg7bfU/e5HIfc85/mNNQm/kirt7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653131215; a=rsa-sha256; cv=none; b=hospFMBI3hkkPVEH9PLso3Qhd9dRlTR9A2mJauDTclVXaK1MRLeAav7c1msQJ2QFJfjVXg 9zoLntCY1IY6OMu7kfKPxDVgD5dlHYsyhsoWitS1KGckAoqcMf2YxNtWf6kZSQvHZ7yNNL IyHtm7oTgmRv41AMOYlTt8UmeaHdsJG3WWzQzeOYyFxio3unvBMkRID440tNUJffF0zzYD d3ZM2yfVi+XpAZvSKiZgcHLf9rTTNd7FSC7KMANhRxqP99FUACMp3bv2USnjSLn/WkQf1G JVDDDtlhTGCDT4TAtnMDOJonOz+aXBps6uDD7DG6KpsecENEc4t+pBsmYUvYRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264021 --- Comment #12 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D0d6600b579be769b85f049ef421023316= f21b5c3 commit 0d6600b579be769b85f049ef421023316f21b5c3 Author: Andrew Turner AuthorDate: 2022-05-21 10:45:41 +0000 Commit: Andrew Turner CommitDate: 2022-05-21 10:45:41 +0000 Set mm before passing it to the UEFI firmware When reading the UEFI memory map we pass in a pointer to the memory to hold the map. Unfortunately it wasn't initialised before the first use so clang decided it was undefined behaviour so the entire loop was removed. This leads to everything in bi_load after this to also be removed as dead code. The next function after bi_load in the binary is efi_copy_init. The above caused us to enter efi_copy_init with a return address of the start of the function. Because of this it would enter an infinite loop of calling the function, allocating memory, then returning to the start of the function. PR: 264021 stand/efi/loader/bootinfo.c | 1 + 1 file changed, 1 insertion(+) --=20 You are receiving this mail because: You are the assignee for the bug.=