Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1065005pxb; Wed, 29 Sep 2021 16:16:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8ebUbEp/x/xlQAo6HgnszAUoTovWli7Fr4kQbm+3C8C8FNXHvr05SQkSGVrUss3qw/H/Y X-Received: by 2002:a17:90b:4a81:: with SMTP id lp1mr2642029pjb.161.1632957400662; Wed, 29 Sep 2021 16:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632957400; cv=none; d=google.com; s=arc-20160816; b=lAbb900tF0DTc1UPGXpqvwvkxDl1MQyb+g9/FZ9Z8YdJCu+aXI5bYeqxCoE0IVg+Fp vWmN7ayMl/V4rRh5WurdkgbM0ifskxwzueA3fs1cACxXz9mIknPDrQ4ZmL+dTEsHsYe2 BCvMhhtOMChIG6bVtpKx48OLOSjtdchyWy7obxZqX14cJOlWJkbZ7Mv4xULY8JiUtKcJ PS06UtDYORsS4KkOpM7JIK85y/evQDGL+9Lykn27X6/2bAUBLRlIcve4ZzOItXs7QS9V pkiyc1HDaoeQRzyMUs3js6eDxQgw4yBkEeMgqQuA1c2v0obwWwf2MZqnqJ7daZV8b1pA eQFw== 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=aI/ouOII6CJjBOkddynqFqEUpoEDYOKQCNZi7fDl2EE=; b=eWCeWR+S1ic4PwgZ6VTGDMY8DrTbJjMzagzhmy22Gkua8OaiSjAAoEBp0hrcq8u/aZ cmebXWh/nvqyVh7/vEDLxottgHqwWMv3Urhd/JkCdZ7H8gehPLGwJtat6ZxEuRoeEThp HaQNl9sVsKJ9ThWoBdGn6e5TZHhOxRNozM0RXcW4Xl5mbHw2MAuHrL+SNiTQLF5z5gNZ cFWXFLeDciSksWOIAf8H0Z31CxUB9EpcTFpqtybVSHVVZnG7jk75NvTx43M96CbOlQ2y auY1G4Iy3DIeI5gx4vIYd+qKyQSiiFhAzb6wfCKluK0S6eJkxAU2z5rbDefi3kA3yn/Z IoXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VSQ018jC; 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 v9si1887297plg.10.2021.09.29.16.16.17; Wed, 29 Sep 2021 16:16:40 -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=VSQ018jC; 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 S1347508AbhI2XMJ (ORCPT + 99 others); Wed, 29 Sep 2021 19:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347524AbhI2XMI (ORCPT ); Wed, 29 Sep 2021 19:12:08 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73CCEC06161C for ; Wed, 29 Sep 2021 16:10:26 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 17so4311254pgp.4 for ; Wed, 29 Sep 2021 16:10:26 -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=aI/ouOII6CJjBOkddynqFqEUpoEDYOKQCNZi7fDl2EE=; b=VSQ018jC6qTgHIau1QRTnTodwijVCmralRN9fgDiBIeacF49JRsX9nwdaRGov2W45Z Wy+M5+L4KO+HmwabrN4YtS8Cl9AyP2CMw+UiJRSYwHlncurAgHBGnkAiyjiSOeVQBWSa ikc6wX7yBW/i3FUnCULlToPllc9632H2aOQSs= 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=aI/ouOII6CJjBOkddynqFqEUpoEDYOKQCNZi7fDl2EE=; b=rQJEVxg1XuiKqR/VEyPzGN8sp+Qay5Ja7WJ9v5Muwl5a9yuJJF+HUFcuboOEXnV4Vp YdYoDqCPRP1eMzLru9ecXTEaqPNhqWSc8eFUikyrAnotUyY+lW4SH5CxQo8zyZ/1jQj6 Y2OxE2qEliJGZLGk670DLhI+wDb04DwAK6fqLrlv1gJaVogB7Faxxmcah45er9F4QAqz qaKUOiM63gKuFb+0HHKdrOtHRf7iU32MPHJlY2Zl39a7gbETkZfLwaZPfj3xJIVnsZ3O wCnf0KOLuf5j+EJJfPE/VHSIK39IoIONHbhhG8uXd0VhJMvxWxat4+kiqJxMX/0wPaiK G4lw== X-Gm-Message-State: AOAM530QHBGuCnzlLe0szejAMJxOub0Wuvd0+xxbpGmTooAoV0SAHyfy BIPwQvXXrEczq5cMDiD+y7o3pQ== X-Received: by 2002:a65:6389:: with SMTP id h9mr2112359pgv.83.1632957025919; Wed, 29 Sep 2021 16:10:25 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id f16sm602774pjj.56.2021.09.29.16.10.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 16:10:25 -0700 (PDT) Date: Wed, 29 Sep 2021 16:10:24 -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: <202109291609.BC02B39AFF@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. If that helps, yeah, I can make a separate stable branch. Thanks! -Kees -- Kees Cook