From nobody Fri May 20 20:07:40 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 9EC471B32230 for ; Fri, 20 May 2022 20:07:40 +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 4L4d7J3QF3z3h90 for ; Fri, 20 May 2022 20:07:40 +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 517FF18E83 for ; Fri, 20 May 2022 20:07:40 +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 24KK7eJn004109 for ; Fri, 20 May 2022 20:07:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24KK7eum004108 for bugs@FreeBSD.org; Fri, 20 May 2022 20:07:40 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 20:07:40 +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: Andrew@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=1653077260; 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=S5lF2NpLjyQmmiOkaSoMyzsVQ9oxyQPCcrTVj3PTIeQ=; b=x+7TmIpeAZntvAcwnrd2rdAp6jIBp5hNfcBu+ld7eoXWTgZpjPiUtPAkTMgsTT2c3oL+Nt bZZhMIYZcnxROp5Nh+Hioawxdk58OFi6S/dlQyof1vv3kJwYPSrWnqvAavWYCKYfL2mswA Fj7MA8g/6N++RrghYreGYJ84bDJr8Z0HMWAJXCizWV2avpQWSdOZIXR7Si3QsT5yA0IxN+ PSIV4I6GNQlnOWMEWm68jf/LaQPNgBtEcgZHvQWl5v4jLzOhrusj/FeeMVohrPNQ+weFYI A3424idtXWSTkTLfvRB+FCnNxU0rHnHOEQgOIYc05lm+goSMz4fc+P1i9nG+NA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653077260; a=rsa-sha256; cv=none; b=bG+xzWZdNw4oaLEyU1wbYa+ZnZFihG986CE9D6V1hhGIfBIRDJJGbSjDdTflJX7QHQ9Rte I2TFa7JxXeAAS7Qw6Y77c2sekFdsGCoWhWrxW0RoFhSTrDiTn+lRSaXpnwtXZQEDslifA1 e1MHD8HhU5l6Uxq2ABhtxGKFE1suM/lQzsDn2la/nuep9O/cxSzYnCyR33H1mhPP13fGvb /Jy2V4LdgqldKIJtX30Iwt61inyT4ffQh21xJ8yyxD8J6S+apRj6eV+rOwV/2SsCPrOaho npOFhroVFcfBvXD54CnvVe6DUtc8i4uIOBcAzief4BGZLZAu9N6b+3Vf9MxouQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264021 Andrew Turner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Andrew@FreeBSD.org --- Comment #7 from Andrew Turner --- It looks like the issue is the loop in bi_load_efi_data in bootinfo.c is too smart for clang, so it gets confused and thinks efihdr and mm doesn't get initialised. This causes it to remove all the code after the getenv meaning= we return from this getenv call to efi_copy_init. efi_copy_init then enters an infinite loop allocating all memory until it r= uns out & complains, however is still in the loop so continues to try and fail = to allocate more memory. I have a local fix I'll push for review soon, but a work around for now see= ms to be making sure efihdr and mm are initilised to NULL before the comment starting "Matthew Garrett has observed ..." --=20 You are receiving this mail because: You are the assignee for the bug.=