Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7787636rwl; Fri, 30 Dec 2022 14:55:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsOLODkGJ8DI/a7uO/CnkUcDrxh1RsFqmDjaMXQ6ixvMig7CjcOwok/c1RWW7b8ZZMB9rHw X-Received: by 2002:a17:906:724b:b0:7c1:7669:629 with SMTP id n11-20020a170906724b00b007c176690629mr28490937ejk.49.1672440907735; Fri, 30 Dec 2022 14:55:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672440907; cv=none; d=google.com; s=arc-20160816; b=S+byubtV8MEfsf9/JpK5GHudL0xK/b+/58FgsdbTIRNPPHz1qTdne2K8wq1+aEOJqH Mjdv/h0mSWmB1fo+IARpnj70xsVjSIRfvoNfK6kzWSDe4pCCHuoq3lshrvf+qDdDuoKy bL3PIuvxpJt5WtBFn46V/vhgeRxJFOzqGvHK953CY127MMSib5LLwYFDxG5pGPMkzeJI A/kGOvZ4vOZ1Obrq/I5OYI2CBGQLlNEceeXV0yxURb/mz2fKUZNthvyElD7nkbnkAr1q jvIe5Fvb0pkXWe6PofrtPQLQpsF5kEgVRKWXCOASOs8QXFTT3TmbBj0Nsa/IJw3etueP 7otQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ANdsmCLGFl3adJKDrU26y3FV7jGPIEv2301jMP+DTIo=; b=PxP5omkfZ3KS8cSp3n2pZ8HoGV94vC4EqyZoECvudiQp4J3lJJE+PFyg9kpE/hOmv9 MOkkMIKgUdO3L3CxojIti9G8aNhZ1hKPjbcrAToEmhFZDtL28yYz9PPQVvldNn0/Uqqy aELaPF2XvM3133MJ0b5hEvo3VcRFM2tZ+u0E6wxoB7NYht+uNphd6tgCwdSH5d8ydpbH aDHFf0YQYc+2Gyk4EEAk1mMWqVrICWzz2jmUWRbwcddAxJS1dFzKvIDkIEzdkiExw+cr Jw9Hx//4jMAVoOqf3RANHWYPKEreEBMDC3YQZwJVdyILeBHTlsj5uihnPpdgfrVWgspm erRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=cNfgAfr3; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xh10-20020a170906da8a00b007c1572c3efesi3327722ejb.846.2022.12.30.14.54.50; Fri, 30 Dec 2022 14:55:07 -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=@zx2c4.com header.s=20210105 header.b=cNfgAfr3; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235438AbiL3WLB (ORCPT + 62 others); Fri, 30 Dec 2022 17:11:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiL3WK7 (ORCPT ); Fri, 30 Dec 2022 17:10:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C975F1928F for ; Fri, 30 Dec 2022 14:10:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 64FAA61C2C for ; Fri, 30 Dec 2022 22:10:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B9B8C433D2; Fri, 30 Dec 2022 22:10:56 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="cNfgAfr3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1672438254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ANdsmCLGFl3adJKDrU26y3FV7jGPIEv2301jMP+DTIo=; b=cNfgAfr3kz1oYOh86w5HBs9adgDTpNYJBr0ji86TzPLguutgKoeaSjbR8pt7SGyr+6Isw9 CHBQ3zQMQ9hqvA9YOJYQFFpOkxX8+2Cp+1f2VpPtqIocJIgzsqeyUWcq7OKG8D6ppRj2tW Z4KjB3jogZk0fuHiiBoKes7v7fP6e/s= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id eb1d6463 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 30 Dec 2022 22:10:54 +0000 (UTC) Date: Fri, 30 Dec 2022 23:10:50 +0100 From: "Jason A. Donenfeld" To: "H. Peter Anvin" 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 Subject: Re: [PATCH qemu] x86: don't let decompressed kernel image clobber setup_data Message-ID: References: <9188EEE9-2759-4389-B39E-0FEBBA3FA57D@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,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 Fri, Dec 30, 2022 at 01:58:39PM -0800, H. Peter Anvin wrote: > See the other thread fork. They have identified the problem already. Not sure I follow. Is there another thread where somebody worked out why this 62meg limit was happening? Note that I sent v2/v3, to fix the original problem in a different way, and if that looks good to the QEMU maintainers, then we can all be happy with that. But I *haven't* addressed and still don't fully understand why the 62meg limit applied to my v1 in the way it does. Did you find a bug there to fix? If so, please do CC me. Jason