Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp846379iog; Wed, 15 Jun 2022 13:46:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sC1sf+mZjkoF4/OAoACBWNR13AdHjgQDd5pY7T4yApqSKT/XgDqr3jFF1vaR0sACRtkgu6 X-Received: by 2002:a65:6405:0:b0:3fd:23e9:d2bb with SMTP id a5-20020a656405000000b003fd23e9d2bbmr1364292pgv.397.1655325984628; Wed, 15 Jun 2022 13:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655325984; cv=none; d=google.com; s=arc-20160816; b=ZD6DhZxQs0pad/7USWqpkqbPmyrFP5ctMryX3GcNdlELWJCvnHg1RETfwKl9Zge/9+ h7JJXY+gtVxY56JwSBZ5XeX3sosStQ4gjXqSe4ai4gIM2773/D4DDlS1Tfzki5aIlJ1x uzqFXBhh9JbvhUgaiPNNhX815fUauL1BF78va5LjMz4G/5uzhIKd02MbUkkdht5StDhH h4/xJmfDxFBN5nwY5nfDzNNXhSwQ/cALBeeLIep/3Pv/u6Y0wh9x7DLhfxp2dIXwryzj CrFVbAR0YDhBLlg8dHEe3YkVStsqQnQA7ugJShZ+wKZFK3eZ3Vl9xhNj0Bp769Cj4hDf GnFw== 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=HJKdsu9x0T/3zC7ASKLT3juePP9ptA6m+SybiSsx4Fw=; b=NV0KAtTQvD7Fbqgb9bfOsUSExOt3er3aIxzIXndBzjMbXUVuOkowQDITRJuHNq31E4 +wwJ/2UOYuxfxxjI/muo4poeEy9PLjjQrJBDi0eDngz5xMc0qCdiOyqWFcxdVDkknDuA IRLRZ98YaCIKXGunnUNX+Aosvgo4tvcU0HTNXF7uBaxiFkCY57GB47VosdKbk+hYMsFZ 2cpcoKbgGU1qqlAOlQazMX8UWg/Zg5VdHbu6ISavwQ69oGom53VNKS/9lyTuMrfTHYIt FB7Wr/MIbgHZ96o5gdhjgCDjQcaI2hMwZD/BW1N9VuY7FJfasav2DfkttnEUp0iEHLC8 Iltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=atA2+jvX; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a170902d15400b00153b2d1646asi184655plt.114.2022.06.15.13.46.11; Wed, 15 Jun 2022 13:46:24 -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=@kernel.org header.s=k20201202 header.b=atA2+jvX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243528AbiFOUfg (ORCPT + 99 others); Wed, 15 Jun 2022 16:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244033AbiFOUfd (ORCPT ); Wed, 15 Jun 2022 16:35:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85FB154F83; Wed, 15 Jun 2022 13:35:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id CA4FD615C1; Wed, 15 Jun 2022 20:35:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB528C3411A; Wed, 15 Jun 2022 20:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655325331; bh=xL3iRBMb0QwwFJnaKQCkBT5757ICTMbyClIDX5a/oko=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=atA2+jvX/Jftx7vrJ/RGVSj0e6RnEXoaWrD3iWmWva1XdR4n6Nq1jtvXhVe5ThF9i tgfsMb+pTFAkoSzRIKSZSncni477eTTbe9NHb+BIkmqh4uGPOomuX8GZLwU1Xo+G43 tBnJnd3QzabTZSNEJFR68DelHR6DeyPjxPOJ0ymgNfE4T+DZ9b66F4G5u8bspmYMXh LrCdUfJ8AkBqp3JZTlaGU1YaJIp7jCO9AZqlj/akVXnrIC4IaD6NakQJiTrGVd/E1N sr8/LKwoDkqrXIHkrkggYtsw51Pt/jEnVgs3FrvJ1/etwcDYSyPXaUVRRivdNmve1K VY5Om/NP+1lSQ== Date: Wed, 15 Jun 2022 13:35:28 -0700 From: Nathan Chancellor To: Kees Cook Cc: Stephen Rothwell , "Paul E. McKenney" , Frederic Weisbecker , Sami Tolvanen , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Subject: Re: Contextual conflict between kspp and rcu trees Message-ID: References: <202206151326.E34CDE453@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202206151326.E34CDE453@keescook> X-Spam-Status: No, score=-8.3 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,T_SCC_BODY_TEXT_LINE 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 Wed, Jun 15, 2022 at 01:28:00PM -0700, Kees Cook wrote: > On Wed, Jun 15, 2022 at 12:55:53PM -0700, Nathan Chancellor wrote: > > Per the above RCU commit and commit 6c5218715286 ("context_tracking: > > Take IRQ eqs entrypoints over RCU"), it appears that the following diff > > is the proper fix up. Would you mind applying it to the merge of > > whichever tree comes second if possible? I did build and boot test it > > but it would not be a bad idea for Sami and Frederic to verify that it > > is correct so that Kees/Paul can mention it to Linus :) > > Actually, the CFI fix (and a few others) are meant to be sent for > -rc3, so if the ct_irq_enter() change is in -next, this can maybe get > sorted out? Ah, I had assumed that branch was destined for the next release. If it is for 5.19 and they make -rc3 then it should be trivial for Paul to either rebase the changes on -rc3 and apply that diff as part of "context_tracking: Take IRQ eqs entrypoints over RCU" (if his tree is mutable) or just merge -rc3 and apply that diff as part of the merge. I don't really care how it gets resolved, just so long as it does :) Cheers, Nathan