Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp141863rwb; Mon, 26 Sep 2022 10:17:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/fHCkEHTvegLcipySbaUHSwRoMl12qJ+ayfZfKJ3X7KnyBFWnX5+MmPM8FCMRsWW0+iFn X-Received: by 2002:a17:907:1b1e:b0:783:8e33:2d1c with SMTP id mp30-20020a1709071b1e00b007838e332d1cmr4975841ejc.304.1664212665218; Mon, 26 Sep 2022 10:17:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664212665; cv=none; d=google.com; s=arc-20160816; b=U7WqupHdC6gALZyQb5IoMZbdAPr6tvP0H+ortXrX+9c0fnDWjIqb1t/UIm9uPMGHG4 TKt/D0g/viuMd42FExXLi1LNS3EdYrjBNVS6Lay+QCrA8xk/Esq0dzxOiHQBj+Nm0ars +DrqzyLdWwUgGuP9PuNUQEmS/bQiZ5VAIyuGcuqJf1wp8rd/OZuUJmpUHpbJ0e8bV1OJ gMdIRpDVlLmVWcrR0OLlMHZ9ad4M0RpBZZumSaE60RLZi0UDnjWu8gviPiJFyZpovXbW xw970NGe+nXbyCgfKRBJmSfbXYFKovhsl9FWdc+wVv4485c0XEVoKQiNrJFpu5Vy5G3d gr0A== 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=DYuSMl8W6Qux+nmWoyWurJAVLzjIcdi8sjvdJ4CSSZk=; b=c8KReXpNIluoNIdZtNQXKDWJg0ma+PrFFSHmKl+LQamhzBOYcCNiGiIBF+Rq+lds0S Lj4BMMYYTK7IFVHuC4+otZf98Ki1hs7IU6AdxCI9DYpvjyws2lPz1wLUNwy3JL6ns74v P9CLv9571gNCOPCSG/YLYVom3YZdVD9zB0wzI611F4D6IPwKFQM1/841hvcjBZL/hmTL KHmAj3WehzovTyNgnC1Neixv3DQnxaLSv6gpL+DHnVHBX2PKCiY8DPuf84oCrZBctHgz ZZqaNQxho5sgJJ+6ayVMsUkOGLlbbYUAYdgdQLJy0uIPXmB2lsfcmwcy2yIVN/iWr9UD w0dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gODjHIt2; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a05640242cd00b00447c58358d7si17528618edc.616.2022.09.26.10.17.19; Mon, 26 Sep 2022 10:17:45 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=gODjHIt2; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229578AbiIZQ6I (ORCPT + 99 others); Mon, 26 Sep 2022 12:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbiIZQ5w (ORCPT ); Mon, 26 Sep 2022 12:57:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F49261D67; Mon, 26 Sep 2022 08:53:59 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id DE4AAB80AF1; Mon, 26 Sep 2022 15:53:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBF53C433C1; Mon, 26 Sep 2022 15:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664207636; bh=0crWaPXBHQZ29qdGzZd0JYh4qhM+URw3eXnNCAjtI1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gODjHIt2kUVr5VF9QN5sgYvJvod+whH/q8QJHk4T1No91iuU0iYYRG30XmYbR6ULY bO9YNbFYtkgt+aPXEfAL3lDe+q+3AGJbYJ3himCuMf/BbNJ8FTqi1WHAKJEjAwIqvd Bp0JESAfiLYqjPb4MZoZ4nRipGRfeYPtBa88CNpM= Date: Mon, 26 Sep 2022 17:53:53 +0200 From: Greg Kroah-Hartman To: Ard Biesheuvel Cc: Pavel Machek , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Daniel Marth , Kees Cook , Sasha Levin Subject: Re: [PATCH 4.14 06/40] efi: libstub: Disable struct randomization Message-ID: References: <20220926100738.148626940@linuxfoundation.org> <20220926100738.463310701@linuxfoundation.org> <20220926110826.GE8978@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, Sep 26, 2022 at 04:16:02PM +0200, Ard Biesheuvel wrote: > On Mon, 26 Sept 2022 at 13:08, Pavel Machek wrote: > > > > Hi! > > > > > These structs look like the ideal randomization candidates to the > > > randstruct plugin (as they only carry function pointers), but of course, > > > these protocols are contracts between the firmware that exposes them, > > > and the EFI applications (including our stubbed kernel) that invoke > > > them. This means that struct randomization for EFI protocols is not a > > > great idea, and given that the stub shares very little data with the > > > core kernel that is represented as a randomizable struct, we're better > > > off just disabling it completely here. > > > > > Cc: # v4.14+ > > > > AFAICT RANDSTRUCT_CFLAGS is not available in v4.19, so we should not > > take this patch. > > > > Ugh, as it turns out, this macro doesn't exist before v5.19 so it > should not be backported beyond that version at all. > > Greg, can you please drop this patch from all the -stable trees except > v5.19? Thanks, and apologies for creating confusion. Now dropped from the 4.14, 4.19, and 5.4 queues, it is already in the 5.10 release. thanks, greg k-h