Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp839989imm; Wed, 25 Jul 2018 07:07:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdWObe+L1nPagHL4nDHU6IVM9LTb6unlFy3YXRUKyaPolnaJktSHbg1zE2OiJhTKBmOxyM/ X-Received: by 2002:a62:748:: with SMTP id b69-v6mr22230282pfd.177.1532527621639; Wed, 25 Jul 2018 07:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532527621; cv=none; d=google.com; s=arc-20160816; b=XYTJYHIhgHQJEBO+h02YvAFUneFoeDM/tjAxHgYF4tlHF2QFwqpd+O0wUE2Qo8FeS6 vrnEDAZO8UssyPda2wUKTpGN2RaFq3HGerTqyPBIYtbbaO2ZEbZBvRaBuRyJfDqyzMqy JeQUqWIZAyBd1wbh6x9nr+lN6oH/BOOOcGjz3mUo8Am0/0AA4E+nxwcSIjozo3rMYQNj PoiF2kEKHEYg7QBHp3OZuAUacdpZPhVxOUNMwQ6xTif0Hpqj3O6s0uLze9uhjOxSogO7 NucBvc5hY6BAa7ZbVFFygbdkVd6xutVeoZDpDg85yIxE6ZXXFDaXL2Tem5tH9xaGYxWW kusA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=z8EP07iGUIAMOJVmBjvAYzNqE8JTBBKMnG6LdXK0/1Q=; b=ioS2Jl4fn2IV5X4V1M1TZ4H9j4C0tctpX8eLPvHNCypq5CIEDcKMNt2m7K7ZlknUmO l8Yz43BobOQJnxbr/0JCNaAJJQmsFZiGsw6BVwREBoOswJGfmaO4pQxwd8Qp5etqnDIQ L0FWrraHqQUNXmlF/RByvgYH0h4iLTOKvBqH0k8aMUkhWTjewcYeV1iZUB/7NbhBjwFP sLmWZy0cWshL6qSCfbG5+4BVBSEfhyExXQMTd3ZNikYe2Wa5uGb5WFwkYdnVlkpqQAyn hps9n/tmiscHtL/qiCzK89xhbQ6vRjLPnQn70KqYLwCuGC1Z2jA7aXfcfQCLYHrzaajN Xh4Q== 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 e6-v6si13291090pls.419.2018.07.25.07.06.46; Wed, 25 Jul 2018 07:07:01 -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; 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 S1728631AbeGYPRe (ORCPT + 99 others); Wed, 25 Jul 2018 11:17:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:47890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728243AbeGYPRe (ORCPT ); Wed, 25 Jul 2018 11:17:34 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F3B2F20882; Wed, 25 Jul 2018 14:05:43 +0000 (UTC) Date: Wed, 25 Jul 2018 10:05:41 -0400 From: Steven Rostedt To: Josh Poimboeuf Cc: Artem Savkov , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kprobes: fix trace_probe flags in enable_trace_kprobe Message-ID: <20180725100541.36f27954@gandalf.local.home> In-Reply-To: <20180725135632.zmjq7cuqc7eshpsh@treble> References: <20180725102826.8300-1-asavkov@redhat.com> <20180725135632.zmjq7cuqc7eshpsh@treble> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Jul 2018 08:56:32 -0500 Josh Poimboeuf wrote: > On Wed, Jul 25, 2018 at 12:28:26PM +0200, Artem Savkov wrote: > > If enable_trace_kprobe fails to enable the probe in enable_k(ret)probe > > it returns an error, but does not unset the tp flags it set previosly. > > "previously" I tentatively added this to my queue. I updated the subject as: tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure But yeah, that needs to be fixed. > > > @@ -424,6 +423,16 @@ enable_trace_kprobe(struct trace_kprobe *tk, struct trace_event_file *file) > > else > > ret = enable_kprobe(&tk->rp.kp); > > } > > + > > + if (ret) { > > + if (file) { > > + list_del(&link->list); > > Should this be list_del_rcu(), since it was added to the list with > list_add_tail_rcu()? > Good catch. Yes, that should be list_del_rcu(). Artem, Can you send a v2 with the changes. Thanks, -- Steve