Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp942266imm; Wed, 25 Jul 2018 08:44:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIm/M0ud3GZyMO+W2A4cVWBKmpaSBzd7hc3D4+RLQJpcjE5qbr7vPHCZmSXUnPKhHTUcPf X-Received: by 2002:a17:902:5ac7:: with SMTP id g7-v6mr12571729plm.90.1532533480941; Wed, 25 Jul 2018 08:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532533480; cv=none; d=google.com; s=arc-20160816; b=KSG8aMcKYk3EZXQAwF+59qg8xtnKQK5Vw0O6II/2gFrvd5icO8BWsvfQ0odjsOqt24 IIVNtg4aXQxVzD/QkB2Ins1iv/Wx5tmkfIQQv8YOtY4R90RV/TvnVJlY4NyGtL9oxwr8 1e7Tlx5VMe0R475f1ki95iAZb026UyIM7CpSjYCUU34VCwX0em6rQ3nK9Tbwy+xeeD5S zF83SjoAsSQ7g2+1RgtLiyJ5mxDCMlUvHJoQbuvyLqZj3he2yYym3FD28d84KjoV41ku jXV0s7pvHxr/2QCyH4Ki6IsBs8x2bXFlpehUgUSSX0M2Nmz56DofypGeCwLCl7ZrEWxb V5Cw== 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=+RpT1le2DFdmd3lGyoKQlqoP9wpyb6Qn4Mq4LwS5Luw=; b=fTZ8NKn3Ecasu6TMomo16UsXRt2Hmdiwa2n8TlqQR3QNd6azSKuUIc7ANeUuL3fr+Y ReYzuA2MgtO9g43ZXdfgiKQYk+5G1jifepWk8t9EZ2VaKTOhCoN8aLURC+jdGj8Es3bF 5DGltLj+4pvMw4NF6OpZjJ5FUgevZnKGXXC7frrR6CN5dqwF8IAgOsK+gZnF+Ra0BhwB kJTeeAtGOBXK5jQrahW/HU/CsSCmc6+wP3LW/cT2XpjYi81SXKD8BjfQRKmHuACVbWOw 0fNPO8f1vjOavZ2El2Mu8zR9+1RTiQ/xAnqomeDgH2AQv5FaLs1//m8YLj7VnR5QACiW XA8g== 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 o184-v6si14114176pga.520.2018.07.25.08.44.26; Wed, 25 Jul 2018 08:44:40 -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 S1728890AbeGYQzU (ORCPT + 99 others); Wed, 25 Jul 2018 12:55:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:40736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728436AbeGYQzT (ORCPT ); Wed, 25 Jul 2018 12:55:19 -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 1973020843; Wed, 25 Jul 2018 15:43:06 +0000 (UTC) Date: Wed, 25 Jul 2018 11:43:04 -0400 From: Steven Rostedt To: Josh Poimboeuf Cc: Artem Savkov , Masami Hiramatsu , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure Message-ID: <20180725114304.6a5207af@gandalf.local.home> In-Reply-To: <20180725150226.5jdhtj4j7bdp4ddu@treble> References: <20180725142038.4765-1-asavkov@redhat.com> <20180725150226.5jdhtj4j7bdp4ddu@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 10:35:57 -0500 Josh Poimboeuf wrote: > On Wed, Jul 25, 2018 at 04:20:38PM +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 previously. > > This results in a probe being considered enabled and failures like being > > unable to remove the probe through kprobe_events file since probes_open() > > expects every probe to be disabled. > > > > Signed-off-by: Artem Savkov > > Reviewed-by: Josh Poimboeuf > Thanks Josh! Queued up and currently being tested. -- Steve