Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3656532imm; Mon, 25 Jun 2018 02:19:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK7JAZUdMQAXEMi9dnlKB5zDw+mY11UsiDeY9Uw+/tpb6AVBkEsvirBpwqjHuMLUOz6Xotr X-Received: by 2002:a63:b505:: with SMTP id y5-v6mr10270413pge.213.1529918368418; Mon, 25 Jun 2018 02:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529918368; cv=none; d=google.com; s=arc-20160816; b=L8nvRYJbpuKZ7o33tamVnSgEUhpUiVrDKqKkqc1qxaUX5l246m23JLpSPqAiJ2nwa6 qQA8+xwEJDlEt8HwgJY57rSpp37D+dUcnw0Q+7bvZb6/NWnGx18hkXiGjU4Vdjzj3W7+ GA69D1QTAPduBMpKguSMoiPvaG7eoKfeyGpVe7MMox6XOKSOLvGSFL/waZepZc+Y98mT ttedA9Yg3y0lCpbVqPDy6Pnvp/W7XrH6ia49OspOxqfSXL1GsISoVSRhqPvnDMK7zeH/ 4x4ttKurjlyc0hnnWkM0Gdxpm+mNaxoK34/DlYxpDiizVX1sVgEfpC6Js66wgNfTYZCp mTMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=SRk8xOYLe+WKYmpV4ps2wKMxSFuTg2DQAFcM8YfHfEc=; b=BjUssqxP8QXLSXmJ7ocutSxYp3TabB9jedZ+EZ1qPGmvBOu94sjY3ah+aNnU76R8J/ e9dvf9jHddjPWkxn0jRdLeqirVrx7m8pK/s/nnFMlD5SoGDGUyIgh7pZ+NVvuWBP+vu/ 5o5sYo4PdLhPEBtBdTc8nQvs03Z+DHePhtlQ9aGIN5Y0MuNM2dYU9pshaKmEH9yEAoga vTsWiXWnn7HLnmsuQYLIS3M979SoYk/axb55NZw5WOWI0K6UHEetPnikhlW8z99S1jxQ EVIUE7ukypIM/muC8ZLy9xjb3Hl7rkNoy7ZKrc34ttPCmGdLTi3I31FPJZeA9avUuYda 4XKA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si2063841pgv.573.2018.06.25.02.19.14; Mon, 25 Jun 2018 02:19:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754917AbeFYJSh (ORCPT + 99 others); Mon, 25 Jun 2018 05:18:37 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:45955 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754701AbeFYJSg (ORCPT ); Mon, 25 Jun 2018 05:18:36 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fXNdL-0005Jd-Ho; Mon, 25 Jun 2018 11:18:03 +0200 Date: Mon, 25 Jun 2018 11:18:02 +0200 (CEST) From: Thomas Gleixner To: Peter Zijlstra cc: Pavel Tatashin , steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux@armlinux.org.uk, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, john.stultz@linaro.org, sboyd@codeaurora.org, x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, hpa@zytor.com, douly.fnst@cn.fujitsu.com, prarit@redhat.com, feng.tang@intel.com, pmladek@suse.com, gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org, Steven Rostedt Subject: Re: [PATCH v12 01/11] x86: text_poke() may access uninitialized struct pages In-Reply-To: <20180625090915.GV2494@hirez.programming.kicks-ass.net> Message-ID: References: <20180621212518.19914-1-pasha.tatashin@oracle.com> <20180621212518.19914-2-pasha.tatashin@oracle.com> <20180625081429.GS2494@hirez.programming.kicks-ass.net> <20180625090915.GV2494@hirez.programming.kicks-ass.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Jun 2018, Peter Zijlstra wrote: > On Mon, Jun 25, 2018 at 10:39:24AM +0200, Thomas Gleixner wrote: > > On Mon, 25 Jun 2018, Peter Zijlstra wrote: > > > I'm not entirely sure this is right.. Because not only do we need the > > > whole fixmap stuff working, we also need #DB and the IPI handlers set-up > > > and working. > > > > IPI? That's early UP boot why would you need an IPI? > > Because the way this is called is from __jump_label_transform() -> > text_poke_bp() -> text_poke() -> text_poke_early(). > > And if you look at text_poke_bp(), you'll note it relies on #DB and > on_each_cpu() IPIs. on_each_cpu() resolves to a direct call on the current CPU and as there is no other CPU it does not matter. #DB might be a different story, haven't looked yet. > Which is of course exactly the reason I avoided text_poke_bp() entirely > in the first place. Fair enough. Thanks, tglx