From nobody Sat May 21 20:02:30 2022 X-Original-To: dev-commits-src-main@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 AAB821AE9FA2 for ; Sat, 21 May 2022 20:02:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4L5Dz65Ytrz584y for ; Sat, 21 May 2022 20:02:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653163355; bh=xPu9BR0UvWDJdJPnXRPJBok9T3mMfLOjD41KEB6xtn0=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=t7bIKdKZxzYevVas0jnhc0lVlLiWzn7F77Q9BqHESH1DL17wvutyTuVRoDc6GhNiuag8lWGmrd71x8UK9PALUfn8yYe/v1rH1tHjrltD2/u2vm3153nZBifsZGRCsFLVKMAPaw4nDBFXjlEVorC6REYlih0xZg48ndVQ8eV5j3TYljWu5rAbiRsfD5YmKvHBl4JcFDzEIp3YKe1mmLCvA0HtqqKq2M+1/8cDR/RHQAm9Wb4blTd2Bj0a8R9W3/9fqg+5NJwVkdcZjdaKZ2AcobWErUw54IaWywc9pfUG6Mib4Ab5RwA+W89jDDUW/nzW23TOTomJdP+4MG7PcFnIqQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653163355; bh=xCdR+WEqyJ0kqNTAsJB+jLa88FALKMkPMMao6egxlya=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=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ml.PlQLSsE7etpnJ_3cPIhAkYjmvJ8NcBbd9c9 E1HQ6q3EMVGVXJd2DrolgKh2MYj3DijE8dqsXOeBG8BvbxwQxgp6SOR_8U529Ampcig.EsgCzvJp lBiqFNjXrewXcxsG1w4Gu7HjTUoOUn7s3kL1.vSyQEq2pIt0lP6_WWaP8zyKp2B.CQRwo04KqB.H nAwMKkmdcWET_LfYu9O3smzd0C3ueHjHt0eqVoXtYGHrvbI7JYCjTQhhDukdnfnEIuyleG4lcjHZ KCeQKjYB00nUmTubHKmY0ChARf9n90Cs87nnCw_009dwIcmSnfYMCjt0g4G4PqdHmR.yK4gpRPF1 QPgdhf_O7yAWm7gPbRqHixtuIYGG482wecoLAQ8QgnNPk2g8PVLOffHZRPuf68hOnB_1bFwgVRMA U3Z7ZmVeL9Ylc4sbdlFNhs5iSNxOmTlFXmcH4VHBEwLhkuBaIDJDwCWZTo0CkkVsrXWSWD2xNhg3 8doxlh0UBghdlOdHy7W9pPvRxrW9KYbOWrOTcz0Rlu3TT3HBnzIM7uUtbRY6f9XLjj9kdsUJrRX0 0qd5ZmDxhmwxgx13Qpl.UZ4BESNx_9A-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sat, 21 May 2022 20:02:35 +0000 Received: by hermes--canary-production-ne1-5495f4d555-bjbtf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fe1f9c60197ffdae0a764da37ca13284; Sat, 21 May 2022 20:02:32 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: git: 0d6600b579be - main - Set mm before passing it to the UEFI firmware Message-Id: <0560AA26-3E4D-412E-8375-67B0D33DD096@yahoo.com> Date: Sat, 21 May 2022 13:02:30 -0700 To: Andrew Turner , dev-commits-src-main@freebsd.org X-Mailer: Apple Mail (2.3654.120.0.1.13) References: <0560AA26-3E4D-412E-8375-67B0D33DD096.ref@yahoo.com> X-Rspamd-Queue-Id: 4L5Dz65Ytrz584y X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=t7bIKdKZ; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.205 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-1.22 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_MEDIUM(0.99)[0.991]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.205:from]; NEURAL_HAM_SHORT(-0.71)[-0.707]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MLMMJ_DEST(0.00)[dev-commits-src-main]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-ThisMailContainsUnwantedMimeParts: N If I understand the history that I'm looking at correctly, this Undefined Behavior usage error has existed since: QUOTE author Rebecca Cran 2019-03-06 05:39:40 +0000 committer Rebecca Cran 2019-03-06 05:39:40 +0000 commit ce37b71e6809fe5074be54230da9cf09543d3cdd (patch) tree 6dcce17c6e090289b79e78f72e3f2904d8ba171b /stand/efi/loader/bootinfo.c parent 151c6d102035a05ff5c62b7df02bb7b3247dd0f7 (diff) download src-ce37b71e6809fe5074be54230da9cf09543d3cdd.tar.gz src-ce37b71e6809fe5074be54230da9cf09543d3cdd.zip Add retry loop around GetMemoryMap call to fix fragmentation bug The call to BS->AllocatePages can cause the memory map to become framented, causing BS->GetMemoryMap to return EFI_BUFFER_TOO_SMALL more than once. For example this can happen on the MinnowBoard Turbot, causing the boot to stop with an error. Avoid this by calling GetMemoryMap in a loop. Reviewed by: imp, tsoome, kevans Differential Revision: https://reviews.freebsd.org/D19341 Notes Notes: svn path=/head/; revision=344839 END QUOTE So, I end up with the question: MFC to avoid depending on details of various toolchains' handling of the Undefined Behavior? === Mark Millard marklmi at yahoo.com