Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1157573ybf; Sun, 1 Mar 2020 02:17:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyNeHgiGo+G20kGOZ6wZutHszLcnPAooXEZezTVtTU9YuxtNtlr2VxuB37p7InAzlsS9LTM X-Received: by 2002:a9d:620c:: with SMTP id g12mr9605009otj.111.1583057829320; Sun, 01 Mar 2020 02:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583057829; cv=none; d=google.com; s=arc-20160816; b=gvSMj/Bu0c2tlJpiKaMF0JlizQEphJtcg2bAp1VW3SvBb3ADvzOi2UJyNB05Kpmebd EpHQy2ioLg14YVyYUNrl2ZcswSBfnKZF754W9wYW5ummhoPqH9n4PTUoZ5RWNEyIxdCs ej/s9AwXhp47zpSZojF2JkubhyTW7vXj9pHHAD0t0YFerzvRzbrJ+zaYtNLgP5zcPdZW HEvGrNbIzsqznv1UW0X8hd+mbFeifH6JwjGX9t+lZW41Rj/Zb7sJ2X1Rk9bCPjJTW7Ep neQ9w6i7N+dzOlmF3AJsPPuH5+WWKrvPg5bIK7jKjJUl3XpVaTa86C+6i/F0OmZdQm0k R+jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=GZAv4U5UZIqdtHz/lQMrHw5QsGwT5WiEgisI+bydjtE=; b=PGLii2LqmEucqJNCOUTdKb/lBnRFLu2UGU/cG7U6RdNWWschVx1lFGFDbsz5HFr2mg WEgMiXDo+hzZOVLT35a7Nt3V3kpAc57nnPWbMpDtGstx018w9EFS/t5q+8AkenZF9upp YYQKUNJdMBezIXrYSGGWOXnUvoaudiu7Ij2mNeA9FozdhfSC4whZvq2LSZCHodQYhG2/ nkidcsgeaZOehX9+HinTEHYc1T4lXJgAkJOHVIeogG8Y0mQhaVSYb87t0AQbkuVXg6CK 57Lk/N+NVqe+cS2AjOUbgEWU6/zFO8ZSCRYk6lydGvDG7lFiUAe/rwVyv6jb7yZLtlYj qA+g== 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 x136si3867475oif.122.2020.03.01.02.16.56; Sun, 01 Mar 2020 02:17:09 -0800 (PST) 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 S1726146AbgCAKQq convert rfc822-to-8bit (ORCPT + 99 others); Sun, 1 Mar 2020 05:16:46 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:40021 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgCAKQq (ORCPT ); Sun, 1 Mar 2020 05:16:46 -0500 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j8Le7-0003DH-Ix; Sun, 01 Mar 2020 11:16:27 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id D68BD100EA2; Sun, 1 Mar 2020 11:16:26 +0100 (CET) From: Thomas Gleixner To: Steven Rostedt , Andy Lutomirski Cc: Peter Zijlstra , Andy Lutomirski , LKML , x86@kernel.org, Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann , "Paul E. McKenney" Subject: Re: [patch 4/8] x86/entry: Move irq tracing on syscall entry to C-code In-Reply-To: <20200229185837.7d92cd2e@oasis.local.home> References: <87lfolfo79.fsf@nanos.tec.linutronix.de> <4EFF3B04-2C8A-4D63-BB63-B5804EBFFE2F@amacapital.net> <20200229185837.7d92cd2e@oasis.local.home> Date: Sun, 01 Mar 2020 11:16:26 +0100 Message-ID: <87imjofkhx.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT 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 Steven Rostedt writes: > On Sat, 29 Feb 2020 11:25:24 -0800 > Andy Lutomirski wrote: > >> > While the tracer itself seems to handle this correctly, what about >> > things like BPF programs which can be attached to tracepoints and >> > function trace entries? >> >> I think that everything using the tracing code, including BPF, should >> either do its own rcuidle stuff or explicitly not execute if we’re >> not in CONTEXT_KERNEL. That is, we probably need to patch BPF. > > That's basically the route we are taking. Ok, but for the time being anything before/after CONTEXT_KERNEL is unsafe except trace_hardirq_off/on() as those trace functions do not allow to attach anything AFAICT. Thanks, tglx