Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2234469ybd; Thu, 27 Jun 2019 08:58:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5VfkWgGeLBZuRNvnmygmIKnquOnrjY8INdsI2C3EUhGtnIwSaARNcxNsVizsZ53oaigty X-Received: by 2002:a63:da52:: with SMTP id l18mr4482917pgj.131.1561651131240; Thu, 27 Jun 2019 08:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561651131; cv=none; d=google.com; s=arc-20160816; b=qQOyntA3RVy+Y6d+42dYNqYD42a5xck7Ozj9FntluiqybMyVFxvoaqGLkVpsUsUqWQ Tusr39MAP+JBnwv5eDFKttDLgEaEyYY4NM5hI6levcbqBco2sp/RCchuvT+N5Ubeeajc G40pb5YjqiWKupda76RdgH9gLedIceBKQXsw9e7nSHdPUx6XyLrEUX6wHraSUTgKQ4dT Cp6WT3wYk3FMINYfREFztZVrdRL1pR9Sg0In+BDCz9nnj0F4yDm6jVNgBGNYOgWKNPSD QPPcnKMNpNbt3qsiRtbXoKSOVnt9dzPOAWl/JluhJ8jm09uc5SevMvto2Ta9tbXN/Z0u fICQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=m5jdjA4Mh5T62bcbT0WAFOmvzJ4iQAhMoI15EEuz+WQ=; b=yg8qHD7s65473vcHpZalI3lKEBOW0yIu4SLAU3nenmRrOxapg6pqrPEf4Oa++YAt/2 ZolqNAf0V6E4s1Jx7OyokFst28RfZQcsLLTNC1eUruD9b2U9yEgbf7JwhH/jbwRf5B7v Syr3t2EHwnLTxHzMTupCOb1Ze2tzKu5CJFlhS4XeHSrAfpZVEBO+lf2zNEWsS4H/K8FP fNtq0emV4DKnJ+LuyCd6rt7l1ZhklgPIc6aaz1pV6MlUaadkpjcx/iHbVDyB6qS8F/Q+ pyzPhicQ31STwiAZyJ2L9LjeQWdrflniGCI974Ll5f0STm137+cYdjd3XgU0M+TGZmju 81TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eDidBiQ2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d135si2234265pga.557.2019.06.27.08.58.35; Thu, 27 Jun 2019 08:58:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eDidBiQ2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726487AbfF0P6F (ORCPT + 99 others); Thu, 27 Jun 2019 11:58:05 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41906 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726384AbfF0P6F (ORCPT ); Thu, 27 Jun 2019 11:58:05 -0400 Received: by mail-pg1-f195.google.com with SMTP id c70so1089232pga.8 for ; Thu, 27 Jun 2019 08:58:04 -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=m5jdjA4Mh5T62bcbT0WAFOmvzJ4iQAhMoI15EEuz+WQ=; b=eDidBiQ2y/Qtxis5JF5IB4c+580qLNPD2Ms/iqUBqA4w6bRpvaG7xGa9PHfXMhj7A5 sq7eHT8vxMHZKmCT/jZr2ztJ960Xa1KyD/abiniVSGEc24u8pegg8IszBfV7BuHMIgb2 efUk40mVLp8AnvlC2CnjQ4KF0/1SBRWY4MlKQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=m5jdjA4Mh5T62bcbT0WAFOmvzJ4iQAhMoI15EEuz+WQ=; b=pnLydnsuJUrzyJHV+uiB3CJAaQyg/Ycpfg2TyrGFKeJD74kZYLvQeZzkCw0feSPQiv leBzbIuGGqD/TplLjYUaAyvI5rfI1p9mrhRi+lBzkYX+kLTURNYsyVcO2lngvWgwhW1S 3HPT34Oo7xUPWnmOyiY74g+TA94DeOGe5k6H7z0OdJB9LXUD/tCHL0zXcQ+2Z9adzdSc TiIro91TltOXkt4m9GEy1Y4ToxJ9YgPfDVEMlSXNeJmQ/P20aCWRTk03guL7z8jvRCCA nnCILbVKSFh7KjD3319SA3KioAuPxqbehiMjRCmai3hr1j8xRXTxmKTw+aAV0gLIuIBk XCWw== X-Gm-Message-State: APjAAAWGUKUSK2HZ5e1uquFzQdfvRfZUUf+xhjrTSh9EtOlNyNWZ01aA fzDURFZFgGbmlckvB3b8siDajQ== X-Received: by 2002:a17:90a:9a8d:: with SMTP id e13mr6973840pjp.77.1561651084576; Thu, 27 Jun 2019 08:58:04 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 125sm5650159pfg.23.2019.06.27.08.58.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Jun 2019 08:58:03 -0700 (PDT) Date: Thu, 27 Jun 2019 08:58:03 -0700 From: Kees Cook To: Catalin Marinas Cc: linux-kernel@vger.kernel.org, Alexander Potapenko , Qian Cai , Ard Biesheuvel , Andrew Morton Subject: Re: [PATCH] arm64: Move jump_label_init() before parse_early_param() Message-ID: <201906270856.8CF50064@keescook> References: <201906261343.5F26328@keescook> <20190627080207.sdpwjoi4wnc664gp@mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190627080207.sdpwjoi4wnc664gp@mbp> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 09:02:08AM +0100, Catalin Marinas wrote: > On Wed, Jun 26, 2019 at 01:51:15PM -0700, Kees Cook wrote: > > This moves arm64 jump_label_init() from smp_prepare_boot_cpu() to > > setup_arch(), as done already on x86, in preparation from early param > > usage in the init_on_alloc/free() series: > > https://lkml.kernel.org/r/1561572949.5154.81.camel@lca.pw > > This looks fine to me. Is there any other series to be merged soon that > depends on this patch (the init_on_alloc/fail one)? If not, I can queue > it for 5.3. Yes, but that series will be in 5.3 also, so there's rush for 5.2. Do you want Alexander (via akpm) to include it in his series instead of it going through the arm64 tree? -- Kees Cook