Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp132136rdb; Mon, 18 Sep 2023 10:06:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEydRYajxtjoWt8grbcRcsH5UZAZ6gPKVuL/N6UR4A/KQjzv5N+eWKb1SkCXElAi39E1lFh X-Received: by 2002:a9d:7f8f:0:b0:6be:e3d8:b9d1 with SMTP id t15-20020a9d7f8f000000b006bee3d8b9d1mr9926152otp.38.1695056802484; Mon, 18 Sep 2023 10:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695056802; cv=none; d=google.com; s=arc-20160816; b=J5J/52u7jaXKxx30NKAte7O5qAOmDAkumBNRFJjhVqhqXqZRqOwv0FpGe/zVMTFkil OcbEGM8DNr9plefQlUHGVhuQjvhtvwWYkGOep2JoQle7rVyTdG1F0WZkWUrMN3NvVaJ3 tgZ6at48Z9XbEJWWXkzZ1eNyglxOutk2O338bMnwc1hno5IJLt8xrTHRRSY8JEemQMYM Ym7tu5GwiBCD3OSm+pIIvOeOzhT2llBMTCrBRCTUQvil/IaPFrVCnIpIblvM8GxlYgVb ycTd1lWifX2ryyKlUJiMm6uoD5rrm+zuLLWGH3VlylLSAKg6x7hfXH9fvayolz9RWn7I dlfw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ThV2mkwBRxtx8fy5IlM26+JdOWODe4KzQo4HTwy9gqo=; fh=5LYck6cAE1LGw5E7gb2lwDjPdj5AxlDeviKjWpHC6vY=; b=CpZuSTyJ0FO0n4RzAiPME3iJZjFiABwTDN6S92V6F3Zty22QZIxlOp8hvG80MT+6BU jLs+5lfnRpla0xr0Uo0t70nkGHBWvfJJ9zeK8sZwjSlQJ+gaUo0D0PixHnCRRD/XGPWN aN3vXU0zYVG1x+iihl1wlG8FokaHt9qVLbyAakdOE0/FxnglDYHb72QvcqBRomzfiD3s gDTp0/vT3rW84YeXTFxnV4KIyevRz1IZRBF3cZ1dU/o3dSbL/wRgj8weYWc2JyKBKEKH TYSCvRATRxoiMkwSrF9TSbwouELL4m4CSjwBReJyd3P+J96dG8l+xN4d3GM4D/v1KpI1 fS+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EBfXDkoA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t8-20020a63eb08000000b005657ba564bdsi8087105pgh.826.2023.09.18.10.06.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:06:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EBfXDkoA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 73A6081444CB; Mon, 18 Sep 2023 09:52:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230449AbjIRQwm (ORCPT + 99 others); Mon, 18 Sep 2023 12:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbjIRQwi (ORCPT ); Mon, 18 Sep 2023 12:52:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EF9C8E; Mon, 18 Sep 2023 09:52:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A407C3277F; Mon, 18 Sep 2023 14:24:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695047100; bh=bg/LX3mqOuFh2MUykLPX8sJt2PS9kAFQ6eTnG58UTJE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EBfXDkoAMRPT7S4+Xj60vP1HfqObIMKvq/wufcj4BTWO4eGFitJ5RfrY9p9ubXjOp lM+FV/NUGTNcWupIJF59Nw8e9NXYH3w8Xm0zAQrk6PaajxkEQT/V/SvLk1qFLGAshP VPzg/ASWwsh/812c5zxB+NYiEZZTkmEHq8rEBcfoF+/aFhplIicJM02o3DeI+b8xMj xTai3E6zHtaqmr9dYgv/+EtCOkvOr8oc+e5gm+2fdeVg/iBBVs+reVSVKn8Svba9n9 I95LoiSutTbHxKW4PF0VJAkJ5bGeD4EP677jrpSDWCf/mDIe1QA97BpDmPTUK7ts9R v8Wb0zTVo9HQQ== Date: Mon, 18 Sep 2023 16:24:55 +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-hierbei-erhielten-ba5ef74a5b52@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 09:52:41 -0700 (PDT) On Mon, Sep 18, 2023 at 04:14:02PM +0200, Miklos Szeredi wrote: > On Mon, Sep 18, 2023 at 3:51 PM Christian Brauner wrote: > > > I really would prefer a properly typed struct and that's what everyone > > was happy with in the session as well. So I would not like to change the > > main parameters. > > I completely agree. Just would like to understand this point: > > struct statmnt *statmnt(u64 mntid, u64 mask, unsigned int flags); > > What's not properly typed about this interface? > > I guess the answer is that it's not a syscall interface, which will > have an added [void *buf, size_t bufsize], while the buffer sizing is > done by a simple libc wrapper. > > Do you think that's a problem? If so, why? Sorry, I think we just talked passed each other. I didn't realize you were talking about a glibc wrapper. I'm not so much concerned with that they can expose this in whathever way they like. But we will have a lot of low-level userspace that will directly use statmount() or not even have glibc like go and other languages. 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.