Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4757341rwe; Mon, 17 Apr 2023 18:45:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQHStIUHl2oLg/3ALKZocHsdCZdWoHhPUXv+M8g4FAhBPu+ABWEl8BvWeHBrMShNoxknml X-Received: by 2002:a05:6a00:1744:b0:63a:d2e4:cc35 with SMTP id j4-20020a056a00174400b0063ad2e4cc35mr24549024pfc.31.1681782325120; Mon, 17 Apr 2023 18:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681782325; cv=none; d=google.com; s=arc-20160816; b=dySh5n+DibNwmfIJHw5t6gtHYMWtGeSYn4FaJyDudsGcJobiVng3s4nomlm/hWoI21 pCHAb07Yfm5VEl+QsD10Xe0GTaPKmIS1UAld0XT8Wx0N3DHN2ueTY0n+L8a/cYO7lycY U2lRtBhDN5ez728bY4IKxRyCzoHkP5rQNUf2GTwxIUWrISAOFxPbgh0H3oGueXDsZ2PH s2guP3KdIuf3ttZ+SG36Nve3IjADQ13DibAOmudsSG4ng+es7i1uYi+iEKJK2YcNCMh8 S3mvGpKkqJeoeazdDbEwsMMeD2L7+4rrJ/SaWFAIoCfq8jxMMsU38GdtcvWKLRC2Ltc8 TIKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=ddXTLGLPlq5L3n42BI32GqoM9UbKxCD+81BzG53VpiQ=; b=QPFE8UEloyq5kHcXp8ZycedMCbrmnAg6C95G2TOgYzAuby4C1G/yOUh6jSrnigYsf3 FXs2H1GuJ1svcDXn8W+oMRMMr/vuyo4rRlVJoRo/XNZaFsWfgwC2qixvcxe1oJ0VBsg1 3C1eyP//GX42zsLaRYhfxnsOKvvx+xwip3TgfHs+vuZyXtQQZT2gZ1ao8MS+VG3VOcVA 2B/SFu39iZNa6vzMy6nTLYTJsb+uNEo0g+vaXwMbPewCGAJJMWBHvO3kyR/wZo0Q2Iqt vNDpRbmbWftPfidHzrdVVRxx3SwxptnMcv/bX/O3oQAaHvRJPM9M6vbB6qmnhAUvPBP4 ygHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=0MA+38wA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i68-20020a625447000000b0063b2399c58asi12965259pfb.195.2023.04.17.18.45.11; Mon, 17 Apr 2023 18:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=0MA+38wA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbjDRBoe (ORCPT + 99 others); Mon, 17 Apr 2023 21:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbjDRBn3 (ORCPT ); Mon, 17 Apr 2023 21:43:29 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C64B68688 for ; Mon, 17 Apr 2023 18:42:07 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-54f69fb5cafso190558287b3.12 for ; Mon, 17 Apr 2023 18:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681782127; x=1684374127; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ddXTLGLPlq5L3n42BI32GqoM9UbKxCD+81BzG53VpiQ=; b=0MA+38wAROiLJwnnmkOR/8zmb/14kIavQqPqw5eB3G6C7GmifVtBaTDn3Wsfybkp37 b6dSdIwLTyNCmW3wmimtWhAUVTIK1yom6ecNpdWCmuMN8VINN/r4G1jXgbOY4cu+cZ+a Pt2r2hp2yE4x1rZokntaJd0+V/IAOiTEqK0lvMYUT9NoXy+nusYQTLGzsc6+78Z99LtC SjL6n9ZideGEO833c88L+9rdxIqF491lV1zcvATg2XLJ7T64aoqdeqgUJwGQDDFLOtda 4vQypY8y9YjForGSQpK/s/rOXTF8rdgpZ+X4T737iBV7hJiGed/JtsKQjYrD8ZaDlk5T P0sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681782127; x=1684374127; 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=ddXTLGLPlq5L3n42BI32GqoM9UbKxCD+81BzG53VpiQ=; b=aT9iSMHSKt48K5wvm51t3Ni8Fo+/QOwsmEGpaw7y7jL++DD8Fm1Zv5Pvcn3HEwYgRS kNdfMelb/A13Z6pXzRs1pbb5ntGL+TtI84tLCBXFp3j8Q8N5MCqdw+lmNLun3lGCLCMV mls2g+SMxVkNpA53JctcHkyOyXtB4G8hsxpb9aTCU6Ezv5W5Pa2+ZTRlaSr/brNYPipT hy6ElxOKKl3/itxj9tDNRDTbwFF1o1iwfgYpAXf5j7XgCLmJm+HLP8xbeXohOQlV5N0h 2004FGBEK/k0lHi6oMgrSsVJSCYF+iGgke+wMM3GuRPMfAT6WbSelN71krxHQ+ztkaKs iJWg== X-Gm-Message-State: AAQBX9dH6v0b+aduUItF9xpd0Lo3h3TKSF1J7kDRoCadNBeHwliIdbSz AbM7gxSsbPRwX6RA7pm45n4fgnW2IrE= X-Received: from drosen.mtv.corp.google.com ([2620:15c:211:201:e67a:98b0:942d:86aa]) (user=drosen job=sendgmr) by 2002:a81:4415:0:b0:54f:9718:1d39 with SMTP id r21-20020a814415000000b0054f97181d39mr10593880ywa.0.1681782127537; Mon, 17 Apr 2023 18:42:07 -0700 (PDT) Date: Mon, 17 Apr 2023 18:40:34 -0700 In-Reply-To: <20230418014037.2412394-1-drosen@google.com> Mime-Version: 1.0 References: <20230418014037.2412394-1-drosen@google.com> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog Message-ID: <20230418014037.2412394-35-drosen@google.com> Subject: [RFC PATCH v3 34/37] 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 , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jonathan Corbet , Joanne Koong , Mykola Lysenko , kernel-team@android.com, Daniel Rosenberg Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.40.0.634.g4ca3ef3211-goog