Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp941727imm; Wed, 25 Jul 2018 08:44:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdmk+abFYI+mRStPle0Zz/TGrNl4dl2X1UU0w5+SnwzVz+ulnWVDKPhEcpmUkzxPhXzHqbL X-Received: by 2002:a62:954:: with SMTP id e81-v6mr22610239pfd.231.1532533451646; Wed, 25 Jul 2018 08:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532533451; cv=none; d=google.com; s=arc-20160816; b=vK2Qy4+z2zjxRAdfNMrxnWIn7ooQH6CpVxgKLcD+idAdzfo5xDKa+6gTKokxcED5Ky jjlUngWJjtZqC3TnLvWlcSOoEZTgPn+MhCLhoSG5HZHkTNPzEukQLtwmAWVb2DvJhUfM FBRNJyl7ZKSZ3DIdkF3xLYdoMJYqA/Hx1UObkEWrpLN6eQn+T98jkwWpyycHdsGS0dxm VtsvQDhuwyy5StzMVV0pLb/vUXZm217lMJ9PAkDjteCqiuNwWBVV0wM9hodjNCK40D7w WWKkCYdCmlbPBeBoNcQomUOKfV63I6uWL8jAc/+oYQKLYMi6oIFfRKPlfyNSNdc+fQpN lasg== 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=CmqsX737EwUdyEpzH2h6M6vx0CddYmT6jgw4XeZr6+E=; b=Clv8we0yswF0NziK4Kv8ZLzZlBVIhKl1ylYqo1+jVxmIdbHw2OGbwkDxC6k05y4G0t ILHCOQZc1OR2d7E29lwqGP5qipSgZ5/rL2c6LPzyvJ2WRDhmsXayDtuAJhY8Kept4wd4 j6TjtYq//GxhAIfnOiqCBpzf/g26QfS6H2HMMZkuk64yywhhWPuxJqZgTTE8XihfuxKE sjijME5kHpwVhuiizHF4xbkTZ+M+Et5CkPAb6XAhJPUQJjV1sBnV9ABWppy4HmyxFNJQ gThtW0we5Yca4KjyehbFnwxUYOoTCHzdS31YMS/4fH3xJ6vBS2hpxXw6yk+irzC43bfm MC9Q== 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 a10-v6si13789128pln.349.2018.07.25.08.43.56; Wed, 25 Jul 2018 08:44:11 -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 S1728746AbeGYQyt (ORCPT + 99 others); Wed, 25 Jul 2018 12:54:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:40618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728436AbeGYQyt (ORCPT ); Wed, 25 Jul 2018 12:54:49 -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 E272520843; Wed, 25 Jul 2018 15:42:35 +0000 (UTC) Date: Wed, 25 Jul 2018 11:42:34 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Artem Savkov , Ingo Molnar , linux-kernel@vger.kernel.org, Josh Poimboeuf Subject: Re: [PATCH v2] tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure Message-ID: <20180725114234.5b8b7860@gandalf.local.home> In-Reply-To: <20180726004113.d578f6e6a2fa59adf1efb4ea@kernel.org> References: <20180725142038.4765-1-asavkov@redhat.com> <20180726004113.d578f6e6a2fa59adf1efb4ea@kernel.org> 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 Thu, 26 Jul 2018 00:41:13 +0900 Masami Hiramatsu wrote: > On Wed, 25 Jul 2018 16:20:38 +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. > > > > Looks good to me. > > Acked-by: Masami Hiramatsu Thanks Masami, -- Steve