Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp828067imm; Wed, 25 Jul 2018 06:57:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdMHu7WWn1kVd9aUgGrYCBY4YFRaMOJ7/fYmJpt7Kq1AKL6L74tVXcLirxTIClS+tz1BYFf X-Received: by 2002:a63:1c13:: with SMTP id c19-v6mr20841995pgc.332.1532527065594; Wed, 25 Jul 2018 06:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532527065; cv=none; d=google.com; s=arc-20160816; b=r47x0tIspXZnws9OkQVrXqxbiCvJU2vzsmyrQ52zKLqW/GnGDv6RGXpb6blHk2J+o9 fg1L17nr11MC/iTI8+6HFC5spRO7TdZnNbErqv1tcOpJ6Kx9D3b+rxuGtJX3CrSzuOJ8 kezpHM8PQbTe+2YzcgVtiq95YVSt2iKhVv2z6JXcU86Fxr4jB+5mNJNyemMqsJF8U8wx gpYeE1/H7phPKALAO5RZEyZLBTniO4e/P1M11pdodIzEKDPKtOQAkwyLikTaxXd8nQM0 uQRQb6rgKtG/8Gv4/wYm+Bxm6QhJRP3kMS5PVYnbWhkNO5GhzBJHFy/CJ9llk/TNedOT BylQ== 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=JXxALV9fWN9B86nilL5lKhRatGdB7FGHEX9sn57UHeg=; b=iZC46rIocFe3RNcR+I26/HQuBh77k9ugNa1toAED94WRbHHaeYUPeqf1khlVZKIkSv +D3ht0db6qE4llDEAKc9Ir+J1xIPFPxF3tnzr27pJxVK13l7sIwolaCfcWtmQGcW8nDK XHCekQ9FSCMfaQG1RFn32C/fZsIxQWvJQe1+xTWwvHKbE/UNjIsvzZs/AUcYsGr2Zd4F TREVaOhQLFwp6zQdZh2zLXzewskBp5jkxL0B64UAYnZJzBOAhRB7m4Dt6UZ2z9SHTsOO jBueKyQKTwVPZ0RZ5QVyraJAxKB+KNcumqDNUARoTTKP1djSmMRAdkqxwXoWbCQkn2sJ qpNg== 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 x19-v6si14053092pgk.80.2018.07.25.06.57.30; Wed, 25 Jul 2018 06:57:45 -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 S1729065AbeGYPIb (ORCPT + 99 others); Wed, 25 Jul 2018 11:08:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58407 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbeGYPIb (ORCPT ); Wed, 25 Jul 2018 11:08:31 -0400 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EFCED8764F; Wed, 25 Jul 2018 13:56:43 +0000 (UTC) Received: from treble (ovpn-120-113.rdu2.redhat.com [10.10.120.113]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87FEC308332B; Wed, 25 Jul 2018 13:56:39 +0000 (UTC) Date: Wed, 25 Jul 2018 08:56:32 -0500 From: Josh Poimboeuf To: Artem Savkov Cc: Steven Rostedt , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kprobes: fix trace_probe flags in enable_trace_kprobe Message-ID: <20180725135632.zmjq7cuqc7eshpsh@treble> References: <20180725102826.8300-1-asavkov@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180725102826.8300-1-asavkov@redhat.com> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 25 Jul 2018 13:56:44 +0000 (UTC) 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 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" > @@ -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()? -- Josh