Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2405571pxb; Sat, 30 Jan 2021 01:23:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJweVVrNZ82+gPJkklYUvPHiZQevtRqDJX+y9PsRgEWL8PH8Vmn1xq8oojmvqC9LcH6+oQLl X-Received: by 2002:a50:aad7:: with SMTP id r23mr9058631edc.83.1611998619836; Sat, 30 Jan 2021 01:23:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611998619; cv=none; d=google.com; s=arc-20160816; b=K+MUsyPl3JzSgUM9hmLtD1aNTr2nlALT69YMsSTMhrAIHMg5ROSksLlW6TEJt2b7/2 yGE6kcar9F3zB7uwdU+LdzPlNYuoZsjzEhW8fwOlGVhn3YHIpajIodFZyX7Ui2m/slh0 xeHzSIJcTtPKGoUelzSoo4GlQLdmXQ2Fy0e12SIhlD8VSDnc5x6QO34ZPE2QTklaqv/H xe1i0UexItDmRTZkcjTPhDvP8rVXd/Hm25Qs0td3EvKOWGs7cfkFxH5YQ+PhrFO7nDyN i+kPOCNpq2SWZ4owHPDhuFgTk3HsgVO0Brb1w5CjyIFDtbI/HVKTlHLOkKL8YYwYeTL4 CNEQ== 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=aUJjQWq04yfyD9i9zO9j9MoGWuJhNQkIG0RfzLvmCjA=; b=nFiJAktTLZWkFdxyruFFE5GNNqqXkXxj8pFpJfj6FxalXHS1CIdTANZd0tRAajVno0 sGRNQybNBsJeA0JVnvrGhcXx48eiHgWB+9NUMD9UGvDlXt8wYtgefqSGWhxO3msu7Wr0 +HyzsblzkIwue8j1O+39nVHxgxxVNksFnpEpistce83iPyMevApAsdKJKToo9p6liG80 0FsAnWurZwHpw9xILe6SuaYyJ458SONfVHbqRG1oPZUr93Wpi90Jdd9Z4Ho3dMYfwfgD xj3P0e344IT8rfvvr/SWFLECpZycC9iVbI+RFGm5ATwlMnp+SvR+c8eKsbtKf9LdQAJa hHZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AT4G5Roe; 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 f9si6524909edr.611.2021.01.30.01.23.16; Sat, 30 Jan 2021 01:23:39 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=AT4G5Roe; 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 S231641AbhA3JW2 (ORCPT + 99 others); Sat, 30 Jan 2021 04:22:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbhA3JVh (ORCPT ); Sat, 30 Jan 2021 04:21:37 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EB25C061351; Sat, 30 Jan 2021 00:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=aUJjQWq04yfyD9i9zO9j9MoGWuJhNQkIG0RfzLvmCjA=; b=AT4G5Roe61L1QOg1iL8NT3diId 42noT2VCN+nZqZwZifNNJEuAKpdH9LFV6XvuCR3Uh2zfpajNaXsXiOg5n76Xq+NBj44mhCd45f4WK eGp6KoJxSAMs2NlxP8XP2d1NYecOYacNLHC9fOVgnRWkpQvgE01aUKSDy2ZaLDGi6ZA4y7e+tmeAx gY80zaBz5B4mvLEBLsYBKTfgPNSZ/XxlzcSK1tVUmDePgWrWCQ2Ujda9G13fGP5YnasTTzKrgMZY0 obzMbUh9zhtbhTd2lBIKIv0sQlZnb6eGD+cWnEUCkJAL78Ao5rRa1GFTof64b0Abo37Rk3UDBgmus iKoOBy7Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l5lcQ-00AslN-Dx; Sat, 30 Jan 2021 08:28:37 +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 05FD83011E6; Sat, 30 Jan 2021 09:28:32 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E15272DACC7DB; Sat, 30 Jan 2021 09:28:32 +0100 (CET) Date: Sat, 30 Jan 2021 09:28:32 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Alexei Starovoitov , Masami Hiramatsu , Nikolay Borisov , LKML , Alexei Starovoitov , bpf , Josh Poimboeuf Subject: Re: kprobes broken since 0d00449c7a28 ("x86: Replace ist_enter() with nmi_enter()") Message-ID: References: <20210129013452.njuh3fomws62m4rc@ast-mbp.dhcp.thefacebook.com> <20210129224011.81bcdb3eba1227c414e69e1f@kernel.org> <20210129105952.74dc8464@gandalf.local.home> <20210129162438.GC8912@worktop.programming.kicks-ass.net> <20210129175943.GH8912@worktop.programming.kicks-ass.net> <20210129140103.3ce971b7@gandalf.local.home> <20210129162454.293523c6@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210129162454.293523c6@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2021 at 04:24:54PM -0500, Steven Rostedt wrote: > Specifically, kprobe and ftrace callbacks may have this: > > if (in_nmi()) > return; > > raw_spin_lock_irqsave(&lock, flags); > [..] > raw_spin_unlock_irqrestore(&lock, flags); > > Which is totally fine to have, Why? There's a distinct lack of explaining here. Note that we ripped out all such dodgy locking from kretprobes.