Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp935489imm; Wed, 25 Jul 2018 08:37:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcsqNDEh6h6I4Gvz3IeQwPS+25W6twttUb9+Tnu4lDp7prSOUqnaFpoiuEJdd2Xho7DukdN X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr21370351plb.108.1532533061404; Wed, 25 Jul 2018 08:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532533061; cv=none; d=google.com; s=arc-20160816; b=Lcki8lAI29ujwrsWUYQPyJQcW9juzjsgHRA2V/sg/0/skydZJtbQ+G4smRwAwEuRq1 tblCWYPnrsPHqHIsX+u0G2e7IMxqcqH/pHo5ah09dqODIDX5A9yNtUqqD+5ApJwiMod3 g+pCY/bKFQ5KRftbe6G9fVV/0/AS0FKv3hm9185hqW9GfFibz8BiBA7s4WHJeIN61KtJ uonKC3saDfjf+RgKyMNOnXO7vZ6T+bUrEi+05SqqupiYmbNTFlOID0mSTL8hg1ybUumb 1y2Wp1aNvVGgYvCQpSWxfMbw7MI2tn+BmMUMwDF5S1/zPO0Y203SIpst+yV1FUebwJvP 6MCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VN5yayxSibjlAZE4PrLITcjsOOCXC2HH6f/pEpT6g+E=; b=P7199gqLVWwEMwdLsZ0fw88aO70aXdsimzp2i6AyTIw6Tvf7sAJhrKBnlN7vs3muke GqBLTjee9ln3Z2ewjHSqPCE+P34aMpzz2bsh5pTnUjGlTBMqrKBWcaZ5jx8AdiV8311z W6cXfj2on885Osl1eg9oImnk3rx8RfdaAC6VwlVK25K9D8UPHDjF6d6HqEnxStIx4ao4 opqJi6woB3dgZaZXBawKJ5rtTWQIhgAAj6ES0cNu1XHq3Elt4/M3jt+METEfJQ01rBsf w5dURUuKEGLlg4s03W+J7UzDvhp4EGQzIBSaYVbmjg5hFJgMCsiOh5QYjCyXicKHjqgn w11A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si12774856plg.344.2018.07.25.08.37.26; Wed, 25 Jul 2018 08:37:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729216AbeGYQsK (ORCPT + 99 others); Wed, 25 Jul 2018 12:48:10 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54020 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728360AbeGYQsK (ORCPT ); Wed, 25 Jul 2018 12:48:10 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D9FA140241C0; Wed, 25 Jul 2018 15:35:58 +0000 (UTC) Received: from treble (ovpn-120-113.rdu2.redhat.com [10.10.120.113]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7DD002156897; Wed, 25 Jul 2018 15:35:58 +0000 (UTC) Date: Wed, 25 Jul 2018 10:35:57 -0500 From: Josh Poimboeuf To: Artem Savkov Cc: Steven Rostedt , 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: <20180725150226.5jdhtj4j7bdp4ddu@treble> References: <20180725142038.4765-1-asavkov@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180725142038.4765-1-asavkov@redhat.com> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 25 Jul 2018 15:35:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 25 Jul 2018 15:35:58 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Josh