Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp568577pxb; Thu, 30 Sep 2021 12:03:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1gB86Zw0zkXPHwu3ftqA8mCfNFoSsPFKPzyxz+1uZnwlrLUsrJNhPx8NzqtyUUKWsNE7u X-Received: by 2002:a17:90b:f98:: with SMTP id ft24mr8327327pjb.66.1633028595390; Thu, 30 Sep 2021 12:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633028595; cv=none; d=google.com; s=arc-20160816; b=Z226KHUomIhq+2KSr4eZNPZ7vuyCSDgJMOGXAsxqaNL5MozL9lWffCZvdWq1JTu4lj Sc3Bqt1SP2ope9L+qae8cTtCb8xBWMoIXy9XfmVYbBsyZ2U0IjiB32QnuytkLQk9Uk2u mTH5tryuOZaNiVMd7eHcYQaNsMvuRUHhhRoEeoEsYYO33uUiPs7NEapVS57nk3oOGqqx W3lRKM95gNFAZsZ4eS0I81zjQd3vF/8vnYOp3vRikd3tA0xp4fNDx+a/oMBlI8KX5nat x6guA2EV8UR3UF+I3ecR57Saeet7RywmS4HIt9XT9+U7Zr8DGiU09QknbhX+/MDvCa3m JS3Q== 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=+IS0gEgo7hipR9gibsQw5KtPLx6dQXKFRc1+dywoXVA=; b=vDClxGguawBZMvaTv3+xQ9s8SBdXFBtOD4MkZrVb446sqRHrMW/uDiTqDtTgy05EhG iOJfhH72c8zcNPf9GAV2xAhnXZKrAUB6lGPvKb4+z3agVkjunOgHZ+SRvtYATVXl67GR d4NsOPcxH1wAmkuEYdB0EGxz/y8+5qLxM7RKs3QwNYbWL6tSOSd1VaKxgu7SZSIYjv1R luilTBGYr0S9Z6T2grLisTxmQvyL/Pq0hVPvRqFjGwIBBgYbGARjE3S47kcURnAjC52l sHW3TmdbVf9oqwJZHsPIOrbct4PYiqTr490euaUaeXmdlLCc2nNK3eNJNA79fya28y4v wstg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=m0rDM0cn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si4929225pll.315.2021.09.30.12.03.01; Thu, 30 Sep 2021 12:03:15 -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=@chromium.org header.s=google header.b=m0rDM0cn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352832AbhI3RtF (ORCPT + 99 others); Thu, 30 Sep 2021 13:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352829AbhI3RtE (ORCPT ); Thu, 30 Sep 2021 13:49:04 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9739C06176A for ; Thu, 30 Sep 2021 10:47:21 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id qe4-20020a17090b4f8400b0019f663cfcd1so913645pjb.1 for ; Thu, 30 Sep 2021 10:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+IS0gEgo7hipR9gibsQw5KtPLx6dQXKFRc1+dywoXVA=; b=m0rDM0cnK0yrtL29pL81MAGf7w2Yed+jc4KUJF0fL6YCvGOj2OOT/73pX0N1cuLGzf ECJdJfF5q+Tu3Vs0H54vg8YCX4POSPt/jTDx97+sRolpUheG7qnd3LACShH3YDUGL+oL edpJws/IQ1QQ+9i+FXscZHebVHzxRo9Z53ybE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=+IS0gEgo7hipR9gibsQw5KtPLx6dQXKFRc1+dywoXVA=; b=8F4eRkeCMz7lSRla/KXuxVeiVxxujhUf0PSxhThFkMc81YCCgAhZ5AQ9nfX9ivTSIW e7jWj2W/M3CgKmpZXxQugJ2nZFhLYAgFbiSVkWv9A757KkTTGCif9F224xcECV+xNzTB 9RJv/rE/tJ1GtWtfZa9EBvwkkeYfPkqCoy4kq+LA+fj36Gz0M0ZjrcLUwXKD9Oqlt5s+ tnYJUERbBxYLcxGnJnasT9GzrtJW4pK5PUjl8KfY7FLXHg9jGCTveWbtK0JCbqvuCyP1 3EiRpTXPtMz8rBCrCW1M05llA8oPjiKmojWdgWCfrht2ydC74W3hDaQk+yhh+9EWThYi YNrA== X-Gm-Message-State: AOAM533n/FsmYMJEME0F8H5TfULuGiYUeUhjpvuTG7TlUn8oHTDmbFSF y8K3bT3UciNKYSYlkWLEWDsscA== X-Received: by 2002:a17:902:e74d:b0:13e:77cd:a300 with SMTP id p13-20020a170902e74d00b0013e77cda300mr2394421plf.80.1633024041447; Thu, 30 Sep 2021 10:47:21 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id x19sm3606048pfn.105.2021.09.30.10.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 10:47:20 -0700 (PDT) Date: Thu, 30 Sep 2021 10:47:19 -0700 From: Kees Cook To: Michael Ellerman 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878rzf0zmb.fsf@mpe.ellerman.id.au> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks! -- Kees Cook