Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp79252rdb; Mon, 18 Sep 2023 08:41:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHA0UFeLKrA2Q3WpJaB4h4y556d9quf81fVi9qb2/DXt1BpGhI9neDWc/JKJwGB9WaVGNgK X-Received: by 2002:a17:90a:b307:b0:274:6695:e889 with SMTP id d7-20020a17090ab30700b002746695e889mr8729064pjr.41.1695051701596; Mon, 18 Sep 2023 08:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695051701; cv=none; d=google.com; s=arc-20160816; b=MBHOSWw9hcDhO8sIC7gEDUQotlJUwpalaq77PEOEg93FnZMkF3FxbaJ7gp+mxGN3f/ wglRtbMuOr7ChWyeWf7OJ2Xr7JA2mNTRDrIrXcMld7eZnT0kXwUye16lwSF/mUwobmph wdbMngF8tu4sfx2fBHdOZc0HTlFoDujbtga33Nkm8DhbhhRjf53dIOyqSylvbu4L1aRx I03Pbj5xg+0Ntanne57MowYGGUtRcsX5IpiUvENTEFCQT0JTanaJQgycJ1yTP1CS9wO1 By8Aw6kV8gpbKMq3fimSOQQXg2km3pJp0JHWoTF+PFTvB/Ja/mROl+uzmBQLDeGQPaVo 8LyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z7U21aZwGUpcJN61VFySxEYF3gKwRMdQhgF0zbXqbdQ=; fh=mExkudcMPTjZhP4y4VF5JUI20PV8Pi6DJ9iDAAB7gJc=; b=uIh7N2EDpgNHzZfAkknwdaUXntfQEwEj2Fc37g7xHEUnuk6prGeNh3gxcwjfuYTUNP QvWBOEL4bbdlTcEt3+3TGeqSh7UzduYX6492shrifodO6tGJUtmO7TKfO2fliPJEm5JN TnmVb6+7JUNnNcxGUaxuMDY7WhUSVBHHkE16cpINrqv+BF8snU+i8lZx4Uk7yTX7exuO NjPHSfYgfOg430wI6LebPMHAKer3upP8XcfRQT88+cW+q2p5YfMKmKNIiYghO2r1Ay+E HHHMwRA0dkr2QcIQC/tfoCoByNmYizRzEQaqPThFA4BJHZ6lNxnTzK1X+QYkTqIjraph TjgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nzz584oh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id g13-20020a65594d000000b0057759a5b7c6si8152581pgu.62.2023.09.18.08.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:41:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nzz584oh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CCBDC83F4249; Mon, 18 Sep 2023 08:33:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229560AbjIRPcm (ORCPT + 99 others); Mon, 18 Sep 2023 11:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjIRPcH (ORCPT ); Mon, 18 Sep 2023 11:32:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8395186; Mon, 18 Sep 2023 08:30:16 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE1A7C3278B; Mon, 18 Sep 2023 14:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695048054; bh=ZeWZ+8dS+EZG0y8HJDVlPWd6URqnrUZDMlX7eqHI0iU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nzz584ohm3yWGjyuwth376D1n4jxucAvA/eqA5OK9R5JJse0f+NCeZ2dQ4xzk0kby kdIZ2soMrCjPX7QY5qTSkTctD5TxyyviKL6rNCbKutMSTBFpxCoMRGfTdVs7P0ooiL OPmrB7xdrhLvnKSWKAwAs8+CxFoL/DmMlXTUcfgonosXJ+unXYImxcXUkNAf9WEltm OzhBf2AfUdIfWp4jdd1ppn+vGSegsWSD+Pq8FoU82zMwqU84ggXTn1ipXAaN34gDkp PVPVHS/mqCQR9CDl8c+v2yexwYlxg71zG2aSibegy+EovI0IL+VLDl0mskBOYMGykg dJjK1fr7tcCxg== Date: Mon, 18 Sep 2023 16:40:43 +0200 From: Christian Brauner To: Miklos Szeredi Cc: Miklos Szeredi , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-security-module@vger.kernel.org, Karel Zak , Ian Kent , David Howells , Al Viro , Christian Brauner , Amir Goldstein Subject: Re: [RFC PATCH 2/3] add statmnt(2) syscall Message-ID: <20230918-stuhl-spannend-9904d4addc93@brauner> References: <20230913152238.905247-1-mszeredi@redhat.com> <20230913152238.905247-3-mszeredi@redhat.com> <20230914-salzig-manifest-f6c3adb1b7b4@brauner> <20230914-lockmittel-verknallen-d1a18d76ba44@brauner> <20230918-grafik-zutreffen-995b321017ae@brauner> <20230918-hierbei-erhielten-ba5ef74a5b52@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:33:09 -0700 (PDT) On Mon, Sep 18, 2023 at 04:32:30PM +0200, Miklos Szeredi wrote: > On Mon, 18 Sept 2023 at 16:25, Christian Brauner wrote: > > > The system call should please have a proper struct like you had in your > > first proposal. This is what I'm concerned about: > > > > int statmount(u64 mnt_id, > > struct statmnt __user *st, > > size_t size, > > unsigned int flags) > > > > instead of taking an void pointer. > > So you are not concerned about having ascii strings returned by the > syscall? I thought that was the main complaint. I'm not following. The original proposals were only returning strings even for basic binary data such as mount flags, propagation options, and so on and we're using the xattr interface for any type of information. What we're talking about here is a nicely typed struct which returns two paths @mnt_root and @mnt_point which can both be represented as u64 pointers with length parameters like we do in other binary structs such as bpf and clone3 and a few others. That is a compromise I can live with. I'm really trying to find as much common ground here as we can.