Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3660186imm; Mon, 25 Jun 2018 02:24:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL+owz+ajR0f0lmEwjzKQMLbPdNNSMXS1K8GkGoJss7ldUjFvpZn2DLSGaNELiE3woIxx/I X-Received: by 2002:a65:4a4d:: with SMTP id a13-v6mr9997041pgu.161.1529918648385; Mon, 25 Jun 2018 02:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529918648; cv=none; d=google.com; s=arc-20160816; b=fDjP59vwr//KGolhtew23X2MX5MhArgzQnc1L8MYzIxrLnh9f5U6q/V1jSyNn43sIO x/Gq5TQG52b7N0eMd9TU6EAt8XLXcpYN10L9eZnnpkeXUHgWnUPjB/x2xnw4suF4sRr8 WZUYMh+gE50S5gYswOmgNkKNU+FNTlN3kTtI8oxr0QJC/IGuTgh2L/F+Bx5ogVBqpDFf qBekBfoPUklLnVE4ZSCq9SQd+OFmeaLC6fRLLDgNpk+Kkz6dop8EVICmTkP9o2gj58je uopa7oVsz2wNChk4vH0vz/JBnJTHaI57Z00EvFbanwugvukz+tg9L8ugK+JIKuTDYoP7 Sd0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=pZpuGCAqa9fPwHqUmnsy91+PnI9rtLAf81BB5Twlms0=; b=Cjsdia5ZovTX7SJ6sCoyuWxQj9hpSMkuxrzCN6aub81/oB7gK23WrVTAH6qkgX+tEk K8Nuq6lqYGeB1biyFUcP4zxP/rE11y2uHP43uqaG88RYeu/AcLVzgG6u9QuptTWxGCjU 0xctSPPuO6Nf5HDnLfC9ZAwoxN7NI0Oh5IvolbpB2+s03KoeKaMgbWfkzokaVvryuToE iUz904dKdDaAk5aSzrY//9b3TyiZ3UpQZvatPEIGb8RFPxlMtf7aOgTp4Q2VwzVAPZnO LXJKRvRgZOAGuxL+VDekDvBFVyfFO9RneptoguNGv2YlarBlKSGNSBQLmk56cuOIHYal oPxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QS9kGyD7; 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 67-v6si3851111pgi.456.2018.06.25.02.23.53; Mon, 25 Jun 2018 02:24:08 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QS9kGyD7; 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 S1755018AbeFYJW4 (ORCPT + 99 others); Mon, 25 Jun 2018 05:22:56 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46700 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754753AbeFYJWy (ORCPT ); Mon, 25 Jun 2018 05:22:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pZpuGCAqa9fPwHqUmnsy91+PnI9rtLAf81BB5Twlms0=; b=QS9kGyD7C3FA+6h7n2DYYSAfp IERye8td9xD2YXbjb/+eofMOsogh7cvPJTwseogpjUmVBktXdWo0LD4XiqAjimIGanDVP3nkI+orZ WwJ7tsEGd61JLlookWKChKdXJkYD1RIrg6wdumunqwfBn4fZj5KBddIhS6S55pVWajFXaxTBPZl00 g5cY68CDF36AqdMyx/GyfDfXUrU0TS4PYcfhYctSUHcaFZgGfbJibh9RijaFvxRUbTKwPSw/3Z9Jg /ErZzfV6wZe3hp0NJF++dg5rKAR2wRPKOcY/e/1Er4n+cpSp6QfDGLj6iJRWk4pU3EWGs4kSYPJcI r2FOo+r0A==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fXNhe-0006hw-CK; Mon, 25 Jun 2018 09:22:30 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 2A7872029F1D7; Mon, 25 Jun 2018 11:22:29 +0200 (CEST) Date: Mon, 25 Jun 2018 11:22:29 +0200 From: Peter Zijlstra To: Thomas Gleixner 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 Message-ID: <20180625092229.GW2494@hirez.programming.kicks-ass.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 11:18:02AM +0200, Thomas Gleixner wrote: > 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. It _should_ all work.. but scary, who knows where this early stuff ends up being used.