Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1368342rdh; Mon, 25 Sep 2023 10:29:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFr2j++VwusfHP72nz6ck68LsQGnkGwYSRIyMPfE3SeVHgno0X0B5vYQrtYotXXdbi+KX3A X-Received: by 2002:a05:6808:14d4:b0:3ad:f535:7e9a with SMTP id f20-20020a05680814d400b003adf5357e9amr7839906oiw.5.1695662995421; Mon, 25 Sep 2023 10:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695662995; cv=none; d=google.com; s=arc-20160816; b=N66tHqGpy4id/u5+DDq+wqOyKS3squpdqGK7BwIncG+0ZucPjttV0kLhKbUW13+Cya Jix79/yCH8x5zp0/4QdDUc2WWD10LA9+YFk0iFQYQ7PW5zteSvUPV+YkOGQG2CTNVAJ5 1JuIYOCLvvgwvFbJr//z2qN+RMDvR/t5g+DKkBvB0VsujJq0mgJ5NOjIDKWf7kWcjJQ9 Pgrax/9J9Xi7OD4sAsI19VZ88FmBgy4JJ98Z7CBgSS33O6dN4ZNE5xcxum6lgUkS+iVT mGHUZijqqlxSkj99GkwC1wGfVYI2o8VW6vj0rEUh1nPArKSPLl55YhgFtPB/VG69kTs1 XKdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=GURwEQjHVcDB6mdGxNVBiDVcooHojwDOtnH43Ifl4O0=; fh=VPv8m6JW3gLy8ggZtbfP9uOPUQHKaCmEfbQBQ/nt/JM=; b=KAbw5L2MJFLmXQq7T7NS2qC/Sy5ncq+BlI3t0EofX1Xa/2pZMzAAhoaPvu7QfLzPgT 3A9/tg+NjL4oqnoh5zD89JiZnrC7u0TtFyCD6poIw3I3nhqEm1V15PoCOfkIbBKylXDs kuSYbBp6RBHii7UfydEI8ScwKg6mGou2dXKwrGkLl9uPkd7CbR5x3WNEveMB1Ni6xyhJ 1XSCf1RGxZ5gAOkEW3zr62t6/yTMvc4OXyCN87ekFsZ4CfoP+Yk08poBjHBhkcTb1RoW 3AxlOK5/l3ozzOKfZsd6JfbD3YDwAe9RLUz+QJOZKV8GLsR4/vmWb4hTHCsabv57FGQZ ZkMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=E0GtQRrG; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=R8tclYI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v70-20020a638949000000b0056cab36f3e1si10683869pgd.221.2023.09.25.10.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 10:29:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=E0GtQRrG; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=R8tclYI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D410D80BBC65; Mon, 25 Sep 2023 05:58:05 -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 S230448AbjIYM57 (ORCPT + 99 others); Mon, 25 Sep 2023 08:57:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230120AbjIYM56 (ORCPT ); Mon, 25 Sep 2023 08:57:58 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4980B10A; Mon, 25 Sep 2023 05:57:52 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B555B5C2725; Mon, 25 Sep 2023 08:57:51 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Mon, 25 Sep 2023 08:57:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1695646671; x=1695733071; bh=GU RwEQjHVcDB6mdGxNVBiDVcooHojwDOtnH43Ifl4O0=; b=E0GtQRrGZ4xYAllJad I+DxPM0CKNc/UPWHvTvQihcdjR7FYSkLepOWzMuGdug/oP/H4ls008ugct6FSzYh wt1OgUEMIO0si9Ep/acl8Z4udTnm1Jp7mW8Yq8TnuCE+5morI7ZxVDG8xjR33ceF jhO1c32TKYnGJPDptO+cCKNcq6D2K1PXrrudu6rMnShE89vkcrq3Nb9e+/36s77m bEwelchxNEG76wfYMWWplmPUJPmdwEVx82EJd52J41bwUOGwzIc0yh0kKzRlWf7A jZIx+sdkC68IbCDk2pA2oaiJ+Xgo2vFVt0lzBtaR+My2OG5r7ENeC8/nqhdhHTXJ 3W0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695646671; x=1695733071; bh=GURwEQjHVcDB6 mdGxNVBiDVcooHojwDOtnH43Ifl4O0=; b=R8tclYI2FqII62SdxIlbAvuaduWu6 FEr6D3l9H9B6wgDzSK7i6qAiui6UCmZG8OkUs58DsRP7UWxp55/9P//JX/8WEwDy bp1QnJf0sE6nopvJN+5RT1ykH6aeddglXaZ0H5qT/LjYA6R2j8ctoF6/zeO0aLoC brKtXXN/rPKd1n9lLIS/o/kRT3m7qgsjZRdzL+masZAJlI245MTPdvH8BD/5cBlw QEf4cUVfC8GQCTZ0YolVzsEKDDbdDW3b0PWrB618niRRUg/QMB1kvgmkt6gxINZ0 Upg3ZUmV6tTpNJhaPJsg6NBwsabqu9FrlwCMW4ZvHGRK2UhkpJ/Cv8Xmw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelgedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 498C3B6008D; Mon, 25 Sep 2023 08:57:51 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-761-gece9e40c48-fm-20230913.001-gece9e40c MIME-Version: 1.0 Message-Id: <44631c05-6b8a-42dc-b37e-df6776baa5d4@app.fastmail.com> In-Reply-To: <20230913152238.905247-3-mszeredi@redhat.com> References: <20230913152238.905247-1-mszeredi@redhat.com> <20230913152238.905247-3-mszeredi@redhat.com> Date: Mon, 25 Sep 2023 14:57:31 +0200 From: "Arnd Bergmann" To: "Miklos Szeredi" , linux-fsdevel@vger.kernel.org Cc: 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" Subject: Re: [RFC PATCH 2/3] add statmnt(2) syscall Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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, 25 Sep 2023 05:58:06 -0700 (PDT) On Wed, Sep 13, 2023, at 17:22, Miklos Szeredi wrote: > asmlinkage long sys_fstatfs64(unsigned int fd, size_t sz, > struct statfs64 __user *buf); > +asmlinkage long sys_statmnt(u64 mnt_id, u64 mask, > + struct statmnt __user *buf, size_t bufsize, > + unsigned int flags); This definition is problematic on 32-bit architectures for two reasons: - 64-bit register arguments are passed in pairs of registers on two architectures, so anything passing those needs to have a separate entry point for compat syscalls on 64-bit architectures. I would suggest also using the same one on 32-bit ones, so you don't rely on the compiler splitting up the long arguments into pairs. - There is a limit of six argument registers for system call entry points, but with two pairs and three single registers you end up with seven of them. The listmnt syscall in patch 3 also has the first problem, but not the second. Arnd