Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4495861ybi; Tue, 30 Jul 2019 03:05:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwK4Cc+tA/OKZGIPYl5qz9x16zYAlG6KIoLvhADjh9HMJ8djrwsXAli5DGukPYJ9INrfWBC X-Received: by 2002:a17:902:ba8e:: with SMTP id k14mr114235945pls.256.1564481150241; Tue, 30 Jul 2019 03:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564481150; cv=none; d=google.com; s=arc-20160816; b=gjsKyi5wyYtgfS/vq+kuEy3fyyyBcPxRyyG5zQoGUhE8lIrRo3VkNCUOoLQtDvSoiU s1h8DB8o2T5ajxSzVA4E4fyl9W/TpsD6uQ34XEFaKcb4bOEacUiiRGDI0X1LscdY6suX LjTFyVGsXB9mNYWTFOCZ3p1yc9O55VshBHhsaYbCTqT3BgATTzhU0DSZgKlfyRnxbPvg 6kdIwnHoEHV03D11fJcpCIpnazTMmnkJtiK8rV2XxMOVUrVXHaBNzJ0BqaXTLgZ+NViw 86NhjiOIFnk5AokgXIGcrwemiHifgIxf0Qw8L2g+6FGXrlBsHWFeYm5dTpDjehr3WFUd fQ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nQ683IxaS2cCdEC0NtzNiRTRgopPEXo2ky8LcnAwTHI=; b=lDRMawmk1JMgzFApqwmzvCbzYIn5zb074rO+CAZDG4my39HRc2CzCYZJfy9MhxTv4a 318lA9ldjneNvZquZZCM/PloMNcrnXF5i0pQPFKMcEN00148JEqfJdgAqIguSTKUR6Ye 7AzS2oc33X8j0GG+pxP2+PBaIasy5kaZqVqro1+2nGZ2GT6IBxzsETG1slVWBatRhjq4 OjXPu9moj/vpfC3OzX4f7EOIzrSy+DNeKfqB2Aa7+w9l42ovwzB8GYiz4AbhvE61zwu5 g/oRmYmfs9UT1TTL+5DZOTlQsPJzVqNJgMRTxB15agTKvf/Qs1LtjhSvq3U+51yXOSXZ YQpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=YXd7kBZw; 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 y193si29529612pgd.108.2019.07.30.03.05.35; Tue, 30 Jul 2019 03:05:50 -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=@joelfernandes.org header.s=google header.b=YXd7kBZw; 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 S1726392AbfG3ETt (ORCPT + 99 others); Tue, 30 Jul 2019 00:19:49 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38443 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbfG3ETt (ORCPT ); Tue, 30 Jul 2019 00:19:49 -0400 Received: by mail-lf1-f68.google.com with SMTP id h28so43618587lfj.5 for ; Mon, 29 Jul 2019 21:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nQ683IxaS2cCdEC0NtzNiRTRgopPEXo2ky8LcnAwTHI=; b=YXd7kBZwL28XEpjz/Z3rtR2dIB0OAidqsAOvHtlQRogEYM6NC2ckM1jSIgsGWoCMGZ X4kEVhO2JN9T8BnkvbQGc0ZIxFAWD/Nx5DfQ/vkzYSAz1D/KaNnTbs6puGB0gjop/fW4 d2bo9BqeIyQDhBhh030hPqWlNYWaRdg2iUgXQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nQ683IxaS2cCdEC0NtzNiRTRgopPEXo2ky8LcnAwTHI=; b=qQGhoJj14lARMHmLBeJbWdXAl8fWi9ibhp36i9isgy+tFsQHuqhjhOS3YHjCtnhajj yDIphJisMBBauWgQp2o2SDkKsXNLJ/uugSvqNjSJH3S5ORYvCb7ltX9WmJOkwioTYM2/ hi0hZHuU5Kf4LHh+2OfvptLxTcETgblpI79tvcPV3GvomMSgZ1OKQVuujwih0qA2ugwH TWj5HgwU6Fny5yVu+qGYhTajKAvhsQhbbwFJgi0q3r1uwTC7SL/GRTgphHypVyLhx/Na +JLlbB2Ccy/qoDFgT9pjabPrF23keA05IfwVN2Wd41IsouzLUtdB/cLGn7KVUV//docE GJfg== X-Gm-Message-State: APjAAAW67Ti+GqGvw/rixF82t8ojpV6IPB1cijfpt/gotJ5oKady8VzY 3OPRAl8k6xrB93MZdsWRGBJ+UXPT0rxgGn9TOPTFDw== X-Received: by 2002:a19:8c06:: with SMTP id o6mr53293760lfd.176.1564460387288; Mon, 29 Jul 2019 21:19:47 -0700 (PDT) MIME-Version: 1.0 References: <20190729010734.3352-1-devel@etsukata.com> <20190729112126.6554b141@gandalf.local.home> <2ceec933-503e-5d58-60b4-85b491b017d4@etsukata.com> <20190729221506.1aed7dfc@oasis.local.home> In-Reply-To: <20190729221506.1aed7dfc@oasis.local.home> From: Joel Fernandes Date: Tue, 30 Jul 2019 00:19:36 -0400 Message-ID: Subject: Re: [PATCH] tracing: Prevent RCU EQS breakage in preemptirq events To: Steven Rostedt Cc: Eiichi Tsukata , "Paul E. McKenney" , Thomas Glexiner , Peter Zilstra , Ingo Molnar , Frederic Weisbecker , Luto , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 10:15 PM Steven Rostedt wrote: [snip] > > If the problem was only with userstacktrace, it will be reasonable to > > surround only the userstack unwinder. But the situation is similar to > > the previous "tracing vs CR2" case. As Peter taught me in > > https://lore.kernel.org/lkml/20190708074823.GV3402@hirez.programming.kicks-ass.net/ > > there are some other codes likely to to user access. > > So I surround preemptirq events earlier. > > I disagree. The issue is with the attached callbacks that call > something (a stack unwinder) that can fault. > > This is called whenever irqs are disabled. I say we surround the > culprit (the stack unwinder or stack trace) and not punish the irq > enable/disable events. I agree with everything Steve said. thanks, - Joel