Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4153289pxb; Mon, 4 Oct 2021 18:57:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLLtz2plSzdh0vdh83uPm8h0z9ulvTeSraRU3y0IICyJQYec/FKSGU3TrVSyNXIzpHJSSN X-Received: by 2002:a17:906:1f49:: with SMTP id d9mr21809834ejk.150.1633399071463; Mon, 04 Oct 2021 18:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633399071; cv=none; d=google.com; s=arc-20160816; b=xFCUx3fpG5SajkYLt37V+D95Avx3FpG4VQ/71NJFGGjyLNgAZFtbvxQO2KCTKEWM+d dV95E5jCpIHcQArz4ri0kXy9d7KtFvGnbZaAhc6jUpTBYod4j7ZiP72CZXWIklg4698Y 2CuEAn8nC2nJm1GO1z3hIcs/XGZokqewg0xDLj9hQN7Pi/8Gu2RAHlzdp97hFiyCo8Ek T32/KjrHgpNVnF+XSpqJSaNw9ahX+Ic7Wup4l9hGDvkY8Up4TIoaSIwzh4eQiLukr3FL RV6JASK/XVq2Ac6Z8gylrr5ctbQ1gPiQ7YQL5BiQbT/xNe7JCpodAghYSN03F1k5/IZ8 hlEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=gYlu6Qv+8m83iP3aG7acEoyr8D3DPbZlTHZ8jerl4Jw=; b=SWGnp+O7ZG8PXl0ZmR4lsdNA8JQC4fRBsqOav9aFy8Gi5PasP/xvVSkxHheg2b62Aj CsT4BOEF/h9idSnJzcprO26E6CGj5FV3f30nuDGCULDe6er09bBUxbZGNPH9y5YsAcoI +v8IiKx/GXcg/+XgLd+qVUk9fJf4e4W7XNgq9F5AIvWZsxVc+YlNSymwf2RoykuefKfv ITRZpndmTGX7tbe/IuM06VGkQoSMdPDCCowCsZeN1TFBo5HarB8W9UofJzxqHNPpCtMk T8vAuP72p0bPhyHAHVG0sLzY+UJrrutK9tjw5LYk92NyAQ4ND01OWDaEjhGCNDgkb2YM OzDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=oI6DgPAm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dq22si23772357ejc.83.2021.10.04.18.57.27; Mon, 04 Oct 2021 18:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=oI6DgPAm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230097AbhJEB5c (ORCPT + 99 others); Mon, 4 Oct 2021 21:57:32 -0400 Received: from gandalf.ozlabs.org ([150.107.74.76]:60133 "EHLO gandalf.ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbhJEB53 (ORCPT ); Mon, 4 Oct 2021 21:57:29 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4HNgdx17Hfz4xbX; Tue, 5 Oct 2021 12:55:33 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1633398938; bh=gYlu6Qv+8m83iP3aG7acEoyr8D3DPbZlTHZ8jerl4Jw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oI6DgPAmrS6eid+iQKQamhFupmXA2CScxqKHRX+CJjC8/0fF1BV9+LamvP9D9eSE9 npjDtMfC1MNcKzde3tkhkeuyG4S9CqgWI+LezmFwIFfQSxbUaY4NuejzURphht7FGp ek1oZ95ogFF9mgsmHq93KfvqDA7s9lg+SefS7Uu4jQH2xweVqk/OBZLY5w4Y8cz5FF jyvaNEhNFclinElquxf3fKJ2na1IGJxwQje4Hg2exFycrlUGHsDHKTaqoiruy7a9vc DhFa9QFOiNLbuIgQmTX/jgFIHs3lgRjeXXAezx290U6sPOlbkpQN1FwNvR9TVFpWGR ggckHw/xPBG0Q== From: Michael Ellerman To: Kees Cook Cc: Ard Biesheuvel , Linux Kernel Mailing List , Keith Packard , Russell King , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Christophe Leroy , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Arnd Bergmann , Linux ARM , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , linux-riscv , "open list:S390" Subject: Re: [RFC PATCH 4/8] powerpc: add CPU field to struct thread_info In-Reply-To: <202109301045.15DDDA0B@keescook> References: <20210914121036.3975026-1-ardb@kernel.org> <20210914121036.3975026-5-ardb@kernel.org> <87ee99lii7.fsf@mpe.ellerman.id.au> <87pmst1rn9.fsf@mpe.ellerman.id.au> <878rzf0zmb.fsf@mpe.ellerman.id.au> <202109301045.15DDDA0B@keescook> Date: Tue, 05 Oct 2021 12:55:31 +1100 Message-ID: <87ilycqlpo.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kees Cook writes: > On Thu, Sep 30, 2021 at 08:46:04AM +1000, Michael Ellerman wrote: >> Ard Biesheuvel writes: >> > On Tue, 28 Sept 2021 at 02:16, Michael Ellerman wrote: >> >> >> >> Michael Ellerman writes: >> >> > Ard Biesheuvel writes: >> >> >> On Tue, 14 Sept 2021 at 14:11, Ard Biesheuvel wrote: >> >> >>> >> >> >>> The CPU field will be moved back into thread_info even when >> >> >>> THREAD_INFO_IN_TASK is enabled, so add it back to powerpc's definition >> >> >>> of struct thread_info. >> >> >>> >> >> >>> Signed-off-by: Ard Biesheuvel >> >> >> >> >> >> Michael, >> >> >> >> >> >> Do you have any objections or issues with this patch or the subsequent >> >> >> ones cleaning up the task CPU kludge for ppc32? Christophe indicated >> >> >> that he was happy with it. >> >> > >> >> > No objections, it looks good to me, thanks for cleaning up that horror :) >> >> > >> >> > It didn't apply cleanly to master so I haven't tested it at all, if you can point me at a >> >> > git tree with the dependencies I'd be happy to run some tests over it. >> >> >> >> Actually I realised I can just drop the last patch. >> >> >> >> So that looks fine, passes my standard quick build & boot on qemu tests, >> >> and builds with/without stack protector enabled. >> >> >> > >> > Thanks. >> > >> > Do you have any opinion on how this series should be merged? Kees Cook >> > is willing to take them via his cross-arch tree, or you could carry >> > them if you prefer. Taking it via multiple trees at the same time is >> > going to be tricky, or take two cycles, with I'd prefer to avoid. >> >> I don't really mind. If Kees is happy to take it then that's OK by me. >> >> If Kees put the series in a topic branch based off rc2 then I could >> merge that, and avoid any conflicts. > > I've created: > > git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/thread_info/cpu > > it includes a --no-ff merge commit, which I'm not sure is desirable? Let > me know if I should adjust this, or if Linus will yell about this if I > send him a PR containing a merge commit? I'm not sure what's right here. It looks good to me. I don't think Linus will be bothered about that merge. It has useful information, ie. explains why you're merging it and that arch maintainers have acked it, and quotes Ard's cover letter. cheers