Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7914189rwl; Fri, 30 Dec 2022 17:51:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXsXNw7vvYGHjJ2MqU2J9XbK1wOSc7TC6WOEyHdRO+lnxvo64y0aKUGiUs8duK5w0qjiMiF3 X-Received: by 2002:a17:90a:1345:b0:226:1495:3dca with SMTP id y5-20020a17090a134500b0022614953dcamr12444494pjf.45.1672451518695; Fri, 30 Dec 2022 17:51:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672451518; cv=none; d=google.com; s=arc-20160816; b=HrVOfp9RUVbNVWffE93D0pdZjs4NnDdjlsIer0io1qB751/KiCNJM8bTrVPAl7FCm+ dnDckEsgsx5CFGYvyzQY4NeH+cHU0ZS7bZgU5khhcPfwdsZ2vedjoCCD98mG2m1t8H03 5o7za6qZQ96HmPQqfLq0mQmh3jKF6ruVFCHIWbwcTDECysLJKII/nEElscFJsXo7CS8F 2ehybGk/jcShJo1w4K4xrNrApB5PlERyMvD20Y9IcJxiJBpiHlankkC5ClULk9qC3Dcz 3pULWy97mb+4TAmaPvd8/Nf+kn1sDxmYCFc14HqIxLXjxtQRs4zwvxoxETgok93af7l4 lxtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-filter; bh=p758Zgd+yGDuok+ksdSxE2idQGSI127bm719tcowUaE=; b=ao2Voit7NUFHZiuyCRGzAotzpxiARhn841XdWTX29nDhkfRpohSf2hCfVJKBnaX8jw RbEPK1BE9I/MaPb/bDulrdtPEt3IXS3JKkwDshwv/Y/oylDJbSV80LjiumliQP7LC1X7 HLUCK97oB2Bg5mrO0J0zPgLTVxtqIvBZXSETUbwr3/IQTMqmOqQyw5piDdx4IKvuxUbT mXKwlhPf64wH5Kf0j2xmXLhA4qrpM5UOlGvEHqwDr2lLTM2Rc/ySFoJMAwPqI7dYOWwQ t2jsHTQ2jSemxkPahpRNPMTuT3R5jZKEADi8725XOvlzpeV7Tf7+bSdXWK359fdWkujQ n9ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2022120601 header.b=G4LeLSN1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a6562c4000000b0046feca13e25si22569514pgv.68.2022.12.30.17.51.46; Fri, 30 Dec 2022 17:51:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2022120601 header.b=G4LeLSN1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236032AbiLaBO6 (ORCPT + 62 others); Fri, 30 Dec 2022 20:14:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236028AbiLaBO4 (ORCPT ); Fri, 30 Dec 2022 20:14:56 -0500 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 506C8178B4 for ; Fri, 30 Dec 2022 17:14:56 -0800 (PST) Received: from [IPV6:2601:646:8600:40c1:5967:deb4:a714:2940] ([IPv6:2601:646:8600:40c1:5967:deb4:a714:2940]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 2BV1EVmS1463922 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 30 Dec 2022 17:14:32 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 2BV1EVmS1463922 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2022120601; t=1672449273; bh=p758Zgd+yGDuok+ksdSxE2idQGSI127bm719tcowUaE=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=G4LeLSN1au620qGat9Nr+WlKrYb7uSchs4cjj5ly0FiMkE05k6lizUbSIlwEBhEI7 w+kdSn+PABHB9xif38RY+Vt10NnD9unHylbnxZnZ87bqtWrwGBZxtAk0jS7Jn/WHzr oc5/PdIRZ8o6PVFPfme08Ihme5BC2aHQftb1nYb6lVOECNg9d21n9nE7eJgw/in88R FYfBTgAypVgCc1Fvqd2QayztYKT2cqjxFjY+fodRgQbu+B0C/jwmJj71Wl/2thAyQC 2HncnwoI+KOaHMwZgSQ0rXJ86AQzrJ1MQRbmk4UOf+auLmv94S6xThtlWKI5pNiChR 6CYFmtuhbDQpg== Message-ID: <7dc37024-5bdd-1206-020b-5072629b80dd@zytor.com> Date: Fri, 30 Dec 2022 17:14:26 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH qemu] x86: don't let decompressed kernel image clobber setup_data Content-Language: en-US From: "H. Peter Anvin" To: "Jason A. Donenfeld" Cc: Borislav Petkov , pbonzini@redhat.com, ebiggers@kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, ardb@kernel.org, kraxel@redhat.com, philmd@linaro.org References: <9188EEE9-2759-4389-B39E-0FEBBA3FA57D@zytor.com> <46466e54-25c3-3194-8546-a57cd4a80d9d@zytor.com> In-Reply-To: <46466e54-25c3-3194-8546-a57cd4a80d9d@zytor.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RDNS_NONE, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/30/22 17:06, H. Peter Anvin wrote > > TThe 62 MB limit mentioned in boot.rst is unrelated, and only applies to > very, very old kernels that used INT 15h, AH=88h to probe memory. > I am 88% sure this was fixed long before setup_data was created, as it was created originally to carry e820 info for more than 128(!) memory segments. However, as we see here, it is never certain that bugs didn't creep in in the meantime... -hpa