Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp819976lqh; Thu, 28 Mar 2024 18:54:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcjI8wHNJd0KRRGZMCyPJxCagirzIwvhMQVgNvD3P320lE4Gh1SFLSNCMVuQIR2UTEsdeh09rFAUzVori0GSqBv/MMDSj3mZNqYBRqVg== X-Google-Smtp-Source: AGHT+IHAagam5fTkn14AgZXSKiZBH4xy0yQgYdoCFYhVjN3cXMVJ4tkTdGOes0Yc9a+uf9s10TvN X-Received: by 2002:a17:90a:bc8c:b0:2a2:1625:e424 with SMTP id x12-20020a17090abc8c00b002a21625e424mr171765pjr.16.1711677286279; Thu, 28 Mar 2024 18:54:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711677286; cv=pass; d=google.com; s=arc-20160816; b=aUnaSZSZ7AN7Fx2yB+CALVwddt8VFa1CRuTr21TPz6gFJbOc/PJ4zS0fjiyumHkjhC K34UlA8l5smvlbH72mncY7TBhUJ1nNRyGBv7JAn0bzv1hWykIcyAdpF2HCvykGaJf/cJ Zg5mtmrhblCI3eQadlym7gPNnqJE4Ns6kkE8ZZ5q32rIz+TR/95RYdvZ1A6GXJrOVGBW lVGSfhlrceCMgYs5KylsHCcfqgoCQu4Pd3KYhYeW8FUY+wV++zEGryxfWz9JqEOnhVgi DxRtLGfdQ9i9wEbBqoJ3Y3s6lKnaAuC61UvNyYrdPcrZcqDQvlCUQnn7hT5TtkyjXwuf y/NQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=zuG/mHGKrSIUtx4w6cEfQTJMQYadvua3gQmJfgk1lpo=; fh=VwgEc/phadRMrH6O2MDXGHVhukR1IqZ7ZXCLv6+xynM=; b=QmWU2Yxjx27tggo6mOl0iqHrBiahGrrhK95z6GwN+xnaJ+XPEVxqoU9v0wHKcY0WEH 8lF6lWgJD8sf4LdUjFIEXly1Svu2GTXCHrkoh4aIgPFrjeZ+aj9XA2cKT4iC3ftuGDts Tl86fwOfMpRoZOSwXjt3oJB/cpyGimGX4Fc0vr7CKRP5qoYvqB6tdIS++uxuscghm+c4 7dAOxdS04ADdfRQaUZrpR0tlYJC88Xw3n3O92Ec5XxoAeWSfjsX2ubbn2RpA0PVPihpX ZKGmWStyLPC5qqh+tWK31WcL2AWp16xAjVnJgn6T+clw4w4KHEly1foGTOu2U0rLt0vl xKcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=JMbkzifS; arc=pass (i=1 spf=pass spfdomain=flex--drosen.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-123980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d1-20020a17090ab30100b002a09070990esi2685592pjr.19.2024.03.28.18.54.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 18:54:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=JMbkzifS; arc=pass (i=1 spf=pass spfdomain=flex--drosen.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-123980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1B022B23058 for ; Fri, 29 Mar 2024 01:54:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C74582260A; Fri, 29 Mar 2024 01:54:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JMbkzifS" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26A2C1C691 for ; Fri, 29 Mar 2024 01:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711677246; cv=none; b=uurZBz4VBm8hmQ0zGvGAJ/7rNQYrw+3rw9BgTEWYq2OiOEGITMKf3iM182nnC3vT3bdgMrLXhFUrP0NYQkMgB2fQcBce7FNpxQ8f14oVz07AGvQwaC4mYhY0UBWswGsHITexgVSsU2f5bOB41znvbQuf4AubkfWkxDrAZhyOW4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711677246; c=relaxed/simple; bh=COTMQsswrF0FRMT13SRuAVp3LcxDhFLtqlaO5tjK0pg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=QNW1hB9dbn/I2zyGagyjd3irOe4cKNfrA9o9txM7fGQ38Io1lZasptbIF/42lUr9k3PkRQwApV3ZNPwRL0PTJ8S14XUKMDhqscP67Mm0BBdndYQlWmtPljWve93j8noI34rGM0NC2xiwfoRcnYkYZBitUVh0v0XVDZfsEWL7l8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--drosen.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=JMbkzifS; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--drosen.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-614400d9f35so3431167b3.3 for ; Thu, 28 Mar 2024 18:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711677242; x=1712282042; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=zuG/mHGKrSIUtx4w6cEfQTJMQYadvua3gQmJfgk1lpo=; b=JMbkzifSdQbpTkTqfHNkqnaRj+wpfquBvXHY8dyVo2yT8jVN7RReBnh86V0Vzv7pOT 1Z+B7LJKxNIldSDuPZzmhQuwOSH7Q2+HqEh9wtGPSCHKz+6U8kWx5jz9bXvIFyX2wgNK PpjOlfHzxmKVClgNJXQ1kxEex9CHQgMjGl+IRI5NSHq+VlLODdw8YC+DZ8cn3yaIhBxp RWTjoPy7H+7CDrOZ38IQjeYf0mFavZ8B2QrxsAa8VdY2qAhqW7+/nYKkNjJBtiB2JZUd ywF3NY8v1LJdJPO1Tr0E7YsrSpWQKN0VYB8ywjJgRWBHdeT+9MwX+AoPTpp8XZKuYigC BKWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711677242; x=1712282042; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zuG/mHGKrSIUtx4w6cEfQTJMQYadvua3gQmJfgk1lpo=; b=jB8XmtMvuBsqsFP/csD0KkIDzwfTA6gSWy8CWE6zmFgIK0C3On/+W0uD5Iauo3vhJq 7ZBv/+OHJCaxUjExWIoW3NaTuc+ojw0zkqMeRL1D5vU7b+Hwk1QOKS2Xixb36RWa9shH aRIsFzit/BIjCo1MYyEF9PDjdbXFton7TIAJXSfw8YteiprxaFKnNodN4162Kl09fkHu gKST+gJ/jFgjBak0RS7E1I6Mdy0NKyKg8geyRcw+8Jovenhpxj/LQHGhVHa4OloIOpxs b93gKadOeehIK95uJLrdrvBUp0Gp/USZofm66YnwF3dwqf+x1hIqsu6V988zvUCJsJhY 1Bfw== X-Forwarded-Encrypted: i=1; AJvYcCVfqhlGmitSOmS34oZMr4sjNfnXSN95+U8WFFuO1y7YPdj6Zn72zd7CD/FgtgSEvjbCJ8rnnYYvxB7CDg/CUoXYqQsZTOs3rPWmFpKS X-Gm-Message-State: AOJu0YxxjiyEdYgbqtvPJPfT0YI2zyK4IbjTOEs/AQSa1x//hzJQZnRQ K3Vq6fR4c4C7qtdMvxKAW9QgIwfyKu+sdMW84HaNdvAcBUYHncfdomZ9khDO+vmlO0+VjdyM0Zd 1sw== X-Received: from drosen.mtv.corp.google.com ([2620:15c:211:201:fcce:d6ab:804c:b94b]) (user=drosen job=sendgmr) by 2002:a81:52ca:0:b0:609:25d1:ea9a with SMTP id g193-20020a8152ca000000b0060925d1ea9amr309533ywb.9.1711677242218; Thu, 28 Mar 2024 18:54:02 -0700 (PDT) Date: Thu, 28 Mar 2024 18:53:16 -0700 In-Reply-To: <20240329015351.624249-1-drosen@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240329015351.624249-1-drosen@google.com> X-Mailer: git-send-email 2.44.0.478.gd926399ef9-goog Message-ID: <20240329015351.624249-2-drosen@google.com> Subject: [RFC PATCH v4 01/36] fuse-bpf: Update fuse side uapi From: Daniel Rosenberg To: Miklos Szeredi , bpf@vger.kernel.org, Alexei Starovoitov Cc: Amir Goldstein , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Eduard Zingerman , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jonathan Corbet , Joanne Koong , Mykola Lysenko , Christian Brauner , kernel-team@android.com, Daniel Rosenberg , Paul Lawrence Content-Type: text/plain; charset="UTF-8" Adds structures which will be used to inform fuse about what it is being stacked on top of. Once filters are in place, error_in will inform the post filter if the backing call returned an error. Signed-off-by: Daniel Rosenberg Signed-off-by: Paul Lawrence --- include/uapi/linux/fuse.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index e7418d15fe39..0c0a9a8b5c26 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h @@ -654,6 +654,29 @@ struct fuse_entry_out { struct fuse_attr attr; }; +#define FUSE_BPF_MAX_ENTRIES 2 + +enum fuse_bpf_type { + FUSE_ENTRY_BACKING = 1, + FUSE_ENTRY_BPF = 2, + FUSE_ENTRY_REMOVE_BACKING = 3, + FUSE_ENTRY_REMOVE_BPF = 4, +}; + +#define BPF_FUSE_NAME_MAX 15 + +struct fuse_bpf_entry_out { + uint32_t entry_type; + uint32_t unused; + union { + struct { + uint64_t unused2; + uint64_t fd; + }; + char name[BPF_FUSE_NAME_MAX + 1]; + }; +}; + struct fuse_forget_in { uint64_t nlookup; }; -- 2.44.0.478.gd926399ef9-goog