Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp823695lqh; Thu, 28 Mar 2024 19:05:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuCG5ajRdxSCUTcx4LJoKKklYIolbpQyegtziLaNuOnwFf+1CGbuglUGbxjNAUy8n7NJ27jPNz2wzgfN6Dn1zy/jzdGHj8gkI+rMbtAQ== X-Google-Smtp-Source: AGHT+IFGctNjWz4snPQ3SHjKZ3crqZ3IAZCr/pD8SemIXBqvTS+N5leigfliArsIr4kE+CFBhFu8 X-Received: by 2002:a05:6a00:2e8f:b0:6ea:c04c:71cb with SMTP id fd15-20020a056a002e8f00b006eac04c71cbmr1108488pfb.3.1711677950512; Thu, 28 Mar 2024 19:05:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711677950; cv=pass; d=google.com; s=arc-20160816; b=jbJLTaXtp6XJZZp4yIdE+RXIXlET00ndUrQlmxoONSLYpPJ3EzRpQDlwVvxNx8rKzp x7rj0WyL8NMZyh1q04a/JwPEFj9vgo1fiZxmZxSBZGQC34apWPL3Fc9Up5SmiePOxaSe 28mscM5ev5aYifB7FMFPsSnnA+OM5olFW5ulecjklIuVv3HmCO/yp7jeCL5w37eb6MOa uAmyGtMH7XsBMcjTOWnHZygOPcrRvx07S/apbg/J6RLZQjZPu/Xm05t5zVxiyfndMhOL g+fpvWpAs1AMRGZj7R//N9lK2QiQ6k1Q+H8zBLiJ2ovYHjEycOH6PTMWCYKhh8w/Gst6 h6OQ== 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=7qesMvHPna2VGRQ3U+YOYTfZovmbGlRRDeWOIBEA3hQ=; fh=DHJoSmSeqyuDRmF+a79KCQxo12+agNtXufnJSXscvc8=; b=qTZJzmYjYs48xfC0xyq1u6rbPSRDS7Twu+HthhZcgbQe8QvrDlzUL26lpRHGNsvgsc Yz05zgr+vvf01JE+M0WcRm4Yw933V4TG11pTBa4a4u+7FIgko7T/CrYnDAl31oOQRgNm 6Vt0HaiyRtoBrMtVABdkAZ9hXuxJj81AXcvbmhgIOEhvICDeByZ4l5Pj2PBtp1htmgJP W1g7yXVP6K8NktlwqGQoR5J1zzCX0r2xVBexHMHes4wuB9VoXvJSigs1F0j5ahYZ5fyw sAES2/SUjZMRHsXbI0znPZfE8lUaIYSSVDFQdX5ZEc1tSBgetGv0iZIgnemQHIIBokAI oXXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=q9s4HHGP; 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-124013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124013-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h15-20020a056a00000f00b006eac82aa4f5si2634859pfk.45.2024.03.28.19.05.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 19:05:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=q9s4HHGP; 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-124013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124013-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 32AE828CB95 for ; Fri, 29 Mar 2024 02:05:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 434FE13B7A7; Fri, 29 Mar 2024 01:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="q9s4HHGP" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.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 81D8B13AD35 for ; Fri, 29 Mar 2024 01:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711677314; cv=none; b=tz+UX5oRSpaUmWyCH/iIy+BCaI+yvsmEoSWCyEb9TfFXocxGNuQcaAIi1tP68YZa/iCuGTc3zmkzJhsDIDeqYu41tFoAE4BA2LckCyGkHNOrddHe1lslnGdifLq7m33zcrHSDVsMgS/YOho3ALuoTFM5GUaLjYGgv8oxT0Yo9bQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711677314; c=relaxed/simple; bh=G/uTaIAkskzGcC6fM2pfc7BhIzgm1a5+YIJNknGkYno=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=rhz3czNf/MD39hNCb+bTpJPhjmbUpdAfIGQN6YKtBtYN5D/ykvJoEkwg6oeOoPaI7oX13k+FA0C0Re/taMJ7Bxy6IgAWeOUNAUMzOO1LD5qN5m+KjuG3GN3KoggqDxCAO+82gVEZNJGCrrFTdeldVVF9OkCbnzp2X18Pz6GFWtw= 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=q9s4HHGP; arc=none smtp.client-ip=209.85.219.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-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc743cc50a6so1959797276.2 for ; Thu, 28 Mar 2024 18:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711677311; x=1712282111; 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=7qesMvHPna2VGRQ3U+YOYTfZovmbGlRRDeWOIBEA3hQ=; b=q9s4HHGP1Y4POoajIPrDkRFEPdCRvS2tvrX+6OGtYUOgo4NIqyDXnOGi/KdTybGEet PQuVzJx312TkRUDLhPHbLLp2eesNLcj5SibFtAQpaPyFOMxS6FJa2ls9VhhB3WKCKdeE Wl2nvCV2mum0lFcjNmQ0oZ6ghC6BWszbC6BJCug9HPk62J7fLYPrd01vRMG9JuK1/Eyi eVt9xgde4BAUtQthbHOAF3WOTHlnmG2IbmAQJU8ev3xpRtu7S4IfkK6nDehk8TWKlbsc QPdg8fyRXRqCvJRUnrgNpMFM+q5eD5CCHdrP/nwMAOL+fdIgGKqYxkOFdrWs7B8j5QHK crRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711677311; x=1712282111; 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=7qesMvHPna2VGRQ3U+YOYTfZovmbGlRRDeWOIBEA3hQ=; b=FUcKYPnlUtzWfmMC9RvW+8SnTSZW7jDLps85DlC+ljpBtx20p4nGCh4gmNAnE+f958 lQgep5ie+1cZPtssLulxUi8iTdFojT3P+2gzSNMk2bnbamzd5ZICmzWmdiOyf7BR2O0U UzJ/sxOKQ+nk7MWkZEjWXchM4hyC28L391AY3iU0egY40/GENmXKvp7HvokskhcX4AAX yiKNtcgPzdAPfGXsYN4pY2FHu6OFP5V4CNn8RKy4kcfI7T+GPDWA1hq4NIhlBzugIlMw lu3pr1iDnzL/ley72XppXxAwk+GiMlsotOAGALie27ysU2A27pl0BeoY3vDbzjkZkIq0 7CXA== X-Forwarded-Encrypted: i=1; AJvYcCVQsy6tUMn+gRhEKx9+49Sp+HrSE2hbU8gmC2OJYo3sbrbfG8BpS1eyS0YleJfC1rs8r7rUn3BOqka6/Sx2r17YxOALOAqMOw9arXMu X-Gm-Message-State: AOJu0Yyl5AG1wLRZGrEp6JfsYA17G/q3XBSgRRoEOy0dI2NOl1PDGS1s abfsj2kXr2dQP1fsprWTMJpJWe6XTneQ7WMK7BJQoSOS4K0dmQl60Dx4AY7rZGsD5rfOmz50jsb QLg== X-Received: from drosen.mtv.corp.google.com ([2620:15c:211:201:fcce:d6ab:804c:b94b]) (user=drosen job=sendgmr) by 2002:a05:6902:2701:b0:dc2:5273:53f9 with SMTP id dz1-20020a056902270100b00dc2527353f9mr86822ybb.1.1711677311477; Thu, 28 Mar 2024 18:55:11 -0700 (PDT) Date: Thu, 28 Mar 2024 18:53:47 -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-33-drosen@google.com> Subject: [RFC PATCH v4 32/36] WIP: fuse-bpf: add error_out 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 Content-Type: text/plain; charset="UTF-8" error_out field will allow differentiating between altering error code from bpf programs, and the bpf program returning an error. TODO Signed-off-by: Daniel Rosenberg --- include/linux/bpf_fuse.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/bpf_fuse.h b/include/linux/bpf_fuse.h index 159b850e1b46..15646ba59c41 100644 --- a/include/linux/bpf_fuse.h +++ b/include/linux/bpf_fuse.h @@ -57,6 +57,7 @@ struct bpf_fuse_meta_info { uint64_t nodeid; uint32_t opcode; uint32_t error_in; + uint32_t error_out; // TODO: struct_op programs may set this to alter reported error code }; struct bpf_fuse_args { -- 2.44.0.478.gd926399ef9-goog