Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp572760lqr; Wed, 5 Jun 2024 14:34:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhqTyJxuGO7sS7I8vfvRfo/PGWb/0X/BMiKJteM/j2Nun1eVNhs4PqbBff6lFWJLEPDTJFKJA7dtzDSWYm4Mr6F1v7aK5EJV1X8/YnGQ== X-Google-Smtp-Source: AGHT+IHozpkpBRZndyI4cMcsoKLb7WfET7suhz8FzU8RDIyLWXQYHzVqFdARzdU7MOXPqL92AwdV X-Received: by 2002:a50:aac4:0:b0:57a:2417:5ef4 with SMTP id 4fb4d7f45d1cf-57a8b6aa068mr2409254a12.17.1717623241719; Wed, 05 Jun 2024 14:34:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717623241; cv=pass; d=google.com; s=arc-20160816; b=lfatWIitKh8qea54Y2Jhfk3pod0PkbDACrN9vLe4puB/aZQUkGzPMRhl0aVkXIEPGh vQDt8ksSMG0f6ii2ARpD4ccgipuE0Y3JOU4ybfUVCjBPYrBD+sR0AoU8JUPXWHckJE8S +4T6z8KGOI8pbiatFRQXqEFT7UPaa/umigc6pvDNAxk5WDpZPS5Ue1ZZdBtYp+CdbU88 DteQ1Ko2H3Sp/qYUZtMOCAM5LV44RxPQuIsVYs4oNP0M6Z1WhgcQzsdoFcESS4drUm1B mqyOqUl7fCwHVDZPq0dZQ5t9kjqWAnWyF0bqF76LZjgOg1+gnkTmwiRgjks12/upFHJu ZeAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=vPUsNLtvA3c1wzJPrmq0xqsqKfT7lCp9zPJqLgYvZgg=; fh=YaTpL+xRLVwBbtf3vkefIhy4hJRZOlViRIWoQrOAMzk=; b=pO5AKL01vIERN7ploLjMx3KQvtiJ2kbpomtXayIr/2Z/UvIJaTmBEYiA58VEOJyYeY /0fdA9Hfp9dxQByC2GDE++4lXPrCKbQJa6ZOT0lgw8QGzo4hPq+VTu0Q05Fh/EwnKTBi q1yYbIEamZpsTIOc94aAYG8kNPttElbDzwHJV75Wox3VabDnradWDxzeUEpaDih5ipKO LO74qpCRUejayADuaVpFeNlQSHEfG3148fJUUWWNwHao1HE3dDDMeqMRK88+yPQt6Iao UPEDtkUz2WVvZ7TRHt73oZS5yEsLzJ/lLG253OS0UryYYZxq5Dbc7/IVjr55E/5BIXH2 1nUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Cb+5Zd6o; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-203293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ba6688si6491035a12.142.2024.06.05.14.34.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:34:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Cb+5Zd6o; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-203293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A31EF1F23BC0 for ; Wed, 5 Jun 2024 21:33:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26279160792; Wed, 5 Jun 2024 21:25:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Cb+5Zd6o" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 E119615FD1E for ; Wed, 5 Jun 2024 21:25:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717622738; cv=none; b=iqxojnCZky8r2s+Q2+iRRqY2eaaWqNmsas3u8JGq272xmPJUfjX3rmxTMedGSbV2rj8IzyitIfjnFXm3ROoYghe6VkL2ZnyPLSfIonNLxxsSGbLiY/aAk7nH3q8RGJ74BKCgs7n4dF+Ig3x0+5BqdoDUNLY01izSpRBhXnZtB9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717622738; c=relaxed/simple; bh=vPUsNLtvA3c1wzJPrmq0xqsqKfT7lCp9zPJqLgYvZgg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GfvnVHpcmn0ZIjI9mOwvIwFrWCiyR/VZ5f5ein1msuajUDD8AKRBcXVxrRW4NDLlgmiCYtKAEsQZuBg/KWEdQWRmtLC3ay8yECP9INsYMupwepk+icjwVVfoSZVl+LT7FIFLr1NIV6GC9otQHY8BS1zVZGxH52/K3wgSvryQmus= 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=Cb+5Zd6o; arc=none smtp.client-ip=170.10.129.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717622735; 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=vPUsNLtvA3c1wzJPrmq0xqsqKfT7lCp9zPJqLgYvZgg=; b=Cb+5Zd6o1HIngJypT+aa9uIyM+vmkI5gjS/RG3VcCXwZ5FeUYi6TPHOXFBZr0li7pjyzn5 u88hMEhnbku4bu8kPSYj7GNLa2wQlUfId4LvX11YkoQe4op+iTaDbd7wOqAc3qMXmESBNN e4nv2RB1/9lBheW/2Y5tgp2s/3tINYA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-249-cJTSEEHmPlaMTdqrJfJyqQ-1; Wed, 05 Jun 2024 17:25:30 -0400 X-MC-Unique: cJTSEEHmPlaMTdqrJfJyqQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9120A85A588; Wed, 5 Jun 2024 21:25:28 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.62]) by smtp.corp.redhat.com (Postfix) with SMTP id 7534A2166AF9; Wed, 5 Jun 2024 21:25:24 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Wed, 5 Jun 2024 23:24:00 +0200 (CEST) Date: Wed, 5 Jun 2024 23:23:55 +0200 From: Oleg Nesterov To: Andrii Nakryiko Cc: Jiri Olsa , 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: [RFC bpf-next 01/10] uprobe: Add session callbacks to uprobe_consumer Message-ID: <20240605212354.GC19139@redhat.com> References: <20240604200221.377848-1-jolsa@kernel.org> <20240604200221.377848-2-jolsa@kernel.org> <20240605175619.GH25006@redhat.com> Precedence: bulk X-Mailing-List: linux-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.4.1 on 10.11.54.6 On 06/05, Andrii Nakryiko wrote: > > WDYT? It's still fast, and it's simpler than the shadow stack idea, IMO. Andrii. I am alredy sleeping, I'll try to read your email tomorrow. Right now I can only say that everything is simpler than the shadow stack ;) > P.S. Regardless, maybe we should change the order in which we insert > consumers to uprobe? Right now uprobe consumer added later will be > executed first, which, while not wrong, is counter-intuitive. Agreed... Even if currently this doesn't really matter, I guess it is supposed that uc->handler() is "non-intrusive". Oleg.