From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4C4B762D7 for ; Mon, 23 Sep 2024 12:13:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727093630; cv=none; b=mXC7bbTlmMo4sRNbJK3qlh3mnWQ1zxtC/VLSnEgdCMGhpCh/hcpv5t+vaXGPizFXyd+l7F1ITEQgxCd6ZHsrCX1AccnGX/7v6W4ly0pM7nrQhhqdsgZX5+ISdjP//Zz4Qbq2pvceE+jSNTfBhwJhqi/RMwrVw1GgyUrGpXpOuRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727093630; c=relaxed/simple; bh=QEy7BbUv17XgPef66l5Pl1s/1sq3pazOx8siZI8jVpY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bBKxbevIH/7rJgqx+NprpgqhHbN4+h449UGXs8ITJNJwArI4z9ZnrYSln7R/k/1vU6jfBsPvZRE6kqWZkhWEYV1isOJCjFECqkA2a4n5rMRV10nGliLWFWTVW3j+Ew911+h68yXBK0N7WPZHCfvCvqGEJ+Lil0iW7EkOCQzM8cU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aAB4D5a3; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aAB4D5a3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727093627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QEy7BbUv17XgPef66l5Pl1s/1sq3pazOx8siZI8jVpY=; b=aAB4D5a3mfLL6MEhNTrCdXMQjJVA8Z6RxO7pn0iZUpKMEiUAuxqwWflQ5MXhCuIfcb0DCS 3MZLa1UtUZV1OiYS+YaAdFr6rCTYSYgfSdg5YtdOFUpUT1M9UecSEOxhhsmU7sPF1X8TZF DxwZUPIv/IcUETDHSX/SAb58J5V6A9E= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-46-1OYWd4CiNoKU5SzGIIWhLQ-1; Mon, 23 Sep 2024 08:13:46 -0400 X-MC-Unique: 1OYWd4CiNoKU5SzGIIWhLQ-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (unknown [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C24C1190C4D3; Mon, 23 Sep 2024 12:13:43 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.226.16]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id A22751956060; Mon, 23 Sep 2024 12:13:36 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 23 Sep 2024 14:13:31 +0200 (CEST) Date: Mon, 23 Sep 2024 14:13:23 +0200 From: Oleg Nesterov To: Jiri Olsa Cc: Peter Zijlstra , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Steven Rostedt , Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCHv4 02/14] uprobe: Add support for session consumer Message-ID: <20240923121322.GC20793@redhat.com> References: <20240917085024.765883-1-jolsa@kernel.org> <20240917085024.765883-3-jolsa@kernel.org> <20240917120250.GA7752@redhat.com> <20240922152722.GA12833@redhat.com> <20240923100552.GA20793@redhat.com> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 On 09/23, Jiri Olsa wrote: > > On Mon, Sep 23, 2024 at 12:05:53PM +0200, Oleg Nesterov wrote: > > On 09/23, Jiri Olsa wrote: > > > > > > change below should do what you proposed originally > > > > LGTM, just one nit below. > > > > But I guess you need to do this on top of bpf/bpf.git, Andrii has already > > applied your series. > > that seems confusing Yes ;) > but looks like just that one fix with the > commit link in [1] was applied Ah, OK. > > And to remind, 02/14 must be fixed in any case unless I am totally confused, > > handler_chain() can leak return_instance. > > yep it was missing kfree, but it's not needed in this new version Yes, yes, the new version looks fine to me. Oleg.