Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1185256ybk; Thu, 14 May 2020 02:37:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOvNn9YXmFBFAG0zL3oBCu1c0NSZrLf4RoD75q+HdMNkJ/tz1FzACt17h3PGuAPhAoiuEi X-Received: by 2002:a17:906:5e50:: with SMTP id b16mr2977382eju.331.1589449035938; Thu, 14 May 2020 02:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589449035; cv=none; d=google.com; s=arc-20160816; b=sBA7TfUVBWN9Jq1Rw1Io9Ts0b3oyFLNbpAzmBiPs6F8MLL3rb3/jpyyFIV73PPZpCg QpRaWYRiuLGsRuWIFFlceKcJQlfSS77QmhLIhP4uvdJURM4E0Xq54DhhYl/x05034o3r cpKMiVGxxarG2cEGUc5PGhuovdy7ytrJ+9bEcsPUUQotm9dtpKd2z5Pg+aLGL2M7v7rY Aj6PkG1W9lf+4ZV/gUhV4H1NRUMWiOQNDt1tJgqCY1/boXAq7oVwnE/ze1URK6QqLBK0 wi7lUdhXrxaw0x5oO9+A4jJ4/FHolt0NKvZfK6nWQ2gAbeV4pxcRbIfN1YT4TwVe2i7u Txbg== 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=cVHXoLB2mKPJ84h2fIyDOysMGSEkFTC+SjVjPPzZLB4=; b=lAak/k6HZrqA9AFNwKFTHWUCYqs1ASg3/sfl8y8hCHiRdzybt6JX3YKxK6BAXj8csq BjiR0XfI0IC/byulnlCwdvdVPxzUNViIzsHntjMLGINJ9H2cZ83LDpFhanW8STJxtSiI bdsuVNZIyIroLjJEzd/gBjyNkmkYLlYo1Q1+lZV2nLZnTKHzdeGC/HK+H/8Rh/HiqndF 4bRuCDsQqbByDd+FcIa8xfhAlE0p9qhMqHFl0tcWrzInLyFUXUreGzC5qSdoKtcfCzHz qmXN54G1EYBvhk8EK7lbyxxWJ2d0lBMiTSIN63QOslYGA3xAtTC/qheY3+HFCAIeCYIx otgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RcKHDjZA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m60si1384952ede.128.2020.05.14.02.36.51; Thu, 14 May 2020 02:37: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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RcKHDjZA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725977AbgENJdR (ORCPT + 99 others); Thu, 14 May 2020 05:33:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725878AbgENJdR (ORCPT ); Thu, 14 May 2020 05:33:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75859C061A0C for ; Thu, 14 May 2020 02:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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; bh=cVHXoLB2mKPJ84h2fIyDOysMGSEkFTC+SjVjPPzZLB4=; b=RcKHDjZAzs8ZFQuurs9chdvEMs Ug3zPq0RzbPHbGa65zKp4w3X5G10dMdyurJesgWwc/d5hzxl8wAX1JAIpAOcGvsToBopebGu2j8ar LErFASg53ubd4FBnlXOHGsaCgGS3nYRcN7Fl9CtlB3mfLAmApp3uaFU30NFMRax4h+MyphZK5Rxk+ 3UVOHv4Xb+HC/Kdjoru9eIptT2B0k1G/At6rkuDumsIDsv7BbRmSC1xHAMOdz6eKdDUJ1Ems0l/Nb AqggijEUCueqTIqbh3Pn7UxLijTGh+ZxjPWj0i3PK5bQ9TFz83TIgs9yUvwWrwjFJHuUiWzltxKQV rof4KKPg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZAEe-0002Vl-Np; Thu, 14 May 2020 09:33:00 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 229B0301A66; Thu, 14 May 2020 11:32:57 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CF06D213C8B59; Thu, 14 May 2020 11:32:57 +0200 (CEST) Date: Thu, 14 May 2020 11:32:57 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: Thomas Gleixner , LKML , X86 ML , "Paul E. McKenney" , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon Subject: Re: [patch V4 part 4 02/24] x86/int3: Avoid atomic instrumentation Message-ID: <20200514093257.GT2978@hirez.programming.kicks-ass.net> References: <20200505134926.578885807@linutronix.de> <20200505135313.517429268@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 09:57:52PM -0700, Andy Lutomirski wrote: > On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner wrote: > > > > From: Peter Zijlstra > > > > Use arch_atomic_*() and READ_ONCE_NOCHECK() to ensure nothing untoward > > creeps in and ruins things. > > > > That is; this is the INT3 text poke handler, strictly limit the code > > that runs in it, lest it inadvertenly hits yet another INT3. > > > Acked-by: Andy Lutomirski > > Does objtool catch this error? It does not. I'll put it on the (endless) todo list..