Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp959701ybh; Tue, 10 Mar 2020 11:38:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvpN6tCNuf4kknMYA1ciNAS6Bsw5zoRn8I7I/J9ovmwSSuGADKhuB2B8HXKutrOlKhUX4B5 X-Received: by 2002:aca:e146:: with SMTP id y67mr2076476oig.93.1583865516882; Tue, 10 Mar 2020 11:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583865516; cv=none; d=google.com; s=arc-20160816; b=t8YTHUe/HIIbPiqul/cJ+0sMoOtU+OJDr5+rryGN1MguoL7C1KqpCgV0b+dTEV2LNV OGE7uLw6EyobNPH/gamAR0nWgtX/nlUYKxjkJZCn3YTueppCKZiaEER0rhhGOmn0nzMi bczyJjnIQexGd9UEVkqWHbb9jHDVruatI2AHeEG51/Yq6DGUJYbKtbDKhNaJUYau+Zsi s19Z5N1ZL51CEHo2qgJl51cnpb75sR/4pFbWrqcmr0d9jgaSAUYKQiTiJsTIvhMJQZCe StiC0QpJn4018Zoqw+nnjq+vnz20R3QkNdXZxxW6DJyjQbv81HINsXG7y10hy/x43rfp fuAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=eGfri0G7sERwSsFs3uQxZh1dlaIB473RbVMXTjRjpWc=; b=uD40p6UkWqHlxFe90eX+i8/WzzJX01t+e7hZ474wg8pUqjKALn9hNMr/77ZwAENxZf zCN8f9zUo4IqkVOkcNfqwjtA0dJRlHsNHv+0a1WmP7ptUZgcewGdhdSdc44pBdFDZ867 vohZDahCKDLnMX8x+wpWQex6lkkTz2L4Iip9I0A5fNIgeqHuyHoWqm32l3WaSMBOUSyi TNw5cqyAFtmmHrOtczDTr34KcJOktx+xTZsieKCRQ3RgC9yUcULW23yHp9+J53jxQwTo UzCJ+GpgkFZO7obGPjupMOfzuYV6tGXw00rVsteAQZbVvEjw5xGw+S4OJJJJJcZ7SYjZ 6xQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=U5fVceVW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si8217374otg.10.2020.03.10.11.38.25; Tue, 10 Mar 2020 11:38:36 -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=pass header.i=@efficios.com header.s=default header.b=U5fVceVW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727126AbgCJShd (ORCPT + 99 others); Tue, 10 Mar 2020 14:37:33 -0400 Received: from mail.efficios.com ([167.114.26.124]:47974 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbgCJShd (ORCPT ); Tue, 10 Mar 2020 14:37:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id DF614271C70; Tue, 10 Mar 2020 14:37:31 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id WL9bLm33BooY; Tue, 10 Mar 2020 14:37:31 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 9B3F5271C6F; Tue, 10 Mar 2020 14:37:31 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 9B3F5271C6F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1583865451; bh=eGfri0G7sERwSsFs3uQxZh1dlaIB473RbVMXTjRjpWc=; h=Date:From:To:Message-ID:MIME-Version; b=U5fVceVWhYgkU8T16mIH+UH3OBkxJwgWGEA/ErWPNfnmgzYR3hmU7RepWNJ7+nfKF txdSd3Rplj70f3UW1FCyrozTF63nIPJqBdox5B2deElQh3yBqUEmJh+NF1whXww13i wN4OudPQiuWAu3rKG+jep6SAgWE/tkQO5T7JPKixDPkvXKCqfLpXHWvxdjXvAyU/uK M6YEjxpq9th1W/2SlFz5mx+NEyjGIswryWgIk7cLCm+92fT4J9ovHqqtvSlhUdJh68 WxGEWciwob+FaVAjfSL0KXYCHtXPr4to8AgUk9JDiHS0ThLf/MvyBzhQKmep3/iLTg d81cAvEwhOSAw== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EirE6v3bsrvy; Tue, 10 Mar 2020 14:37:31 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 8E892271B6C; Tue, 10 Mar 2020 14:37:31 -0400 (EDT) Date: Tue, 10 Mar 2020 14:37:31 -0400 (EDT) From: Mathieu Desnoyers To: Thomas Gleixner Cc: linux-kernel , Peter Zijlstra , rostedt , Masami Hiramatsu , Alexei Starovoitov , paulmck , "Joel Fernandes, Google" , Frederic Weisbecker Message-ID: <799177238.23913.1583865451495.JavaMail.zimbra@efficios.com> In-Reply-To: <87d09k5aet.fsf@nanos.tec.linutronix.de> References: <87mu8p797b.fsf@nanos.tec.linutronix.de> <1403546357.21810.1583779060302.JavaMail.zimbra@efficios.com> <871rq171ca.fsf@nanos.tec.linutronix.de> <1489283504.23399.1583852595008.JavaMail.zimbra@efficios.com> <87imjc5f6a.fsf@nanos.tec.linutronix.de> <1666704263.23816.1583862003925.JavaMail.zimbra@efficios.com> <87d09k5aet.fsf@nanos.tec.linutronix.de> Subject: Re: Instrumentation and RCU MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_3901 (ZimbraWebClient - FF73 (Linux)/8.8.15_GA_3895) Thread-Topic: Instrumentation and RCU Thread-Index: 06r5HuF/850lcpCTrawcQQsFC9RdIA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Mar 10, 2020, at 2:31 PM, Thomas Gleixner tglx@linutronix.de wrote: > Mathieu Desnoyers writes: >> ----- On Mar 10, 2020, at 12:48 PM, Thomas Gleixner tglx@linutronix.de wrote: >>> How do you "fix" that when you can't reach the tracepoint because you >>> trip over a breakpoint and then while trying to fixup that stuff you hit >>> another one? >> >> I may still be missing something, but if the fixup code (AFAIU the code >> performing >> the out-of-line single-stepping of the original instruction) belongs to a >> section >> hidden from instrumentation, it should not be an issue. > > Sure, but what guarantees that on the way there is nothing which might > call into instrumentable code? Nothing, really. > > That's why I want the explicit sections which can be analyzed by > tools. Humans (including me) are really bad at it was demonstrated > several times. AFAIU, my in_tracer flag proposal complements yours. The explicit sections thingy is required for early/late entry/exit code, but does nothing to prevent "explicitly marked" safe-to-instrument kernel code from triggering infinite recursion. My flag proposal handles that second issue. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com