Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2729320rdh; Wed, 27 Sep 2023 10:51:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5RlNIIlnJDoHsONK4gw8KDDxdYp206jsvwYIDTD33dJ9yye4+O48dpfwjFLzlme6SJR4m X-Received: by 2002:a17:902:e889:b0:1c6:33fe:257b with SMTP id w9-20020a170902e88900b001c633fe257bmr2843157plg.19.1695837065693; Wed, 27 Sep 2023 10:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695837065; cv=none; d=google.com; s=arc-20160816; b=PVzajEepINBqv0jay5CwfGXhDraxUdR9ly1mX0ozQQnQn45XAfPgnfQa92WBrKeXr1 Y1delWXrpqH2sa/5WkXxnlb6ELz03rqTXD36H0bKHEG4LE+vvT7uqU0P5EqsX+AcMWLq 1xA2w3BmMS6A8zfRYxruwi6vyeAiLQD36MXk8bOUk/orqr7NEON1Gh2pvyBz7/SQVW7h sR3UcwIYvP/tj8Y5bKuL/luD/ZWPgvqMBh8IOSkpy8UEbX86l5t1Qim3ImS2FDgg+Rni a1wHvUFeg8t6pCrQqhknZ8MI/lJ8xWeXSfRInWMqMrYIdBm+7tcho37xl2J4t4rcYP6h LuoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Q7R44+izV15PlpetL04YRf6tEqOd3u3v63DX/FqhKvw=; fh=HHDaYfG8vvrt/S1473tKuoaIAmt+xEj/AszDt9ShGmQ=; b=Beafm5+t/i3vsy2zIiPqmDhgErgQwLETpNH+Oh4RpuoYqHDq8Sisfry9fVKXy3gbhY s2J83UuXai7BSyiAF9qEbf+sItF7WtEINndAYCM9OycS9bDL1Dd+jGyvZ9M3lV0+rwLD rGlCHCXxTV09Sp98g7GPIssI5QRu73w0+qIRxLvFY+VkcV2HkW4132QPUFx8bvullilv CeG8TUzJm2NWrO9XUsB7z/TXRhVIIaf9jgvHI/5cWYT/Hc5vqpfvMlVZZUlm+6q4+QJo gNjUIEfN5kjm58U7BFO9ZFoBs/Fmd6vXBEZFgqJHSHj28Grqcv4k1u9HekSIbLDkY8GI kYlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=BSixiHM4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e1-20020a17090301c100b001c3976e22f5si12771222plh.515.2023.09.27.10.51.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 10:51:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=BSixiHM4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8A75180AD137; Wed, 27 Sep 2023 01:47:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbjI0IrT (ORCPT + 99 others); Wed, 27 Sep 2023 04:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230262AbjI0IrQ (ORCPT ); Wed, 27 Sep 2023 04:47:16 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0348CB3 for ; Wed, 27 Sep 2023 01:47:12 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99c1c66876aso1345703266b.2 for ; Wed, 27 Sep 2023 01:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1695804430; x=1696409230; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Q7R44+izV15PlpetL04YRf6tEqOd3u3v63DX/FqhKvw=; b=BSixiHM40Hz7zXgVBsquclElSHBWJPjKLKm4PSVZlZUu56huUr+ubBK32UzVHMflA4 fc6RvqojFeDS2hQvqi9tOEfyiDDM5r7HbjJrDYkcudBPVRZAoJ6V6ZmYNExtkRcUqtIP qX8ugJMer4WEzg8E9W2U2A7dT+we3Z20U3wAU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695804430; x=1696409230; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q7R44+izV15PlpetL04YRf6tEqOd3u3v63DX/FqhKvw=; b=HeRqYAAPM/ZhovB6fJaOQ9eTg6Jl7IE919P81xTN7/QlZT4b1Ax9+C1bxNEK4I/yp+ Ggvb+RpfaH6PzGN5cfXk0GHYfnFzjWJ7+z8niUNQhcaiKJhALGfV+NV4bSebfIeo2RsD KrolBW1maUNBlOBrOfWJQTY/wHRWASbk89MAK7pd4s6amYxpRbbubfw0pFIRP3a9HqJ8 FMflCzHF1Ta9xR0yTi9MFcvSon9IU2fsMYMDMiHHBbe/iBqL2pw5YXIfANVpILsg0h5I EJ8XBB/4IaXCA/4sGIceqnSoa82v9qNWHW0o0uKY9hzhJDkANfWQSjNXsqVq2G5G/vEr iL+A== X-Gm-Message-State: AOJu0Yyn21G64aLVoETtLXyteg3sM+p01BTb4RvJxhcNalYaSsH7uS4S yz5Y7hwwjKHlJPbrFWJ7fFriFTwGKiW2snWJ7IMpkg== X-Received: by 2002:a17:907:7e91:b0:9a6:426f:7dfd with SMTP id qb17-20020a1709077e9100b009a6426f7dfdmr1366881ejc.66.1695804430509; Wed, 27 Sep 2023 01:47:10 -0700 (PDT) MIME-Version: 1.0 References: <20230913152238.905247-1-mszeredi@redhat.com> <20230913152238.905247-3-mszeredi@redhat.com> <44631c05-6b8a-42dc-b37e-df6776baa5d4@app.fastmail.com> <20230925-total-debatten-2a1f839fde5a@brauner> <20230925-wahlrecht-zuber-3cdc5a83d345@brauner> In-Reply-To: From: Miklos Szeredi Date: Wed, 27 Sep 2023 10:46:58 +0200 Message-ID: Subject: Re: [RFC PATCH 2/3] add statmnt(2) syscall To: Christian Brauner Cc: Arnd Bergmann , Miklos Szeredi , 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 , Linus Torvalds , Alexander Viro , Christian Brauner , Amir Goldstein Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 01:47:30 -0700 (PDT) On Mon, 25 Sept 2023 at 15:20, Miklos Szeredi wrote: > > On Mon, 25 Sept 2023 at 15:19, Christian Brauner wrote: > > > > > How about passing u64 *? > > > > struct statmnt_req { > > __u64 mnt_id; > > __u64 mask; > > }; > > > > ? > > I'm fine with that as well. So after a bit more thinking: this is okay to make life easier for 32bit archs, but only on the kernel ABI. On the library API the args should *not* be multiplexed, as it's just a pointless complication. This is just an internal implementation detail for the sake of legacy architectures, instead of being good API design. And because it's an internal thingy, my feeling is that this struct could be reused for passing mnt_id to listmount(2) as well, despite the fact that the mask would be unused. But I'm ready to be convinced otherwise... Thanks, Miklos