Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp79127rdb; Mon, 18 Sep 2023 08:41:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0QuJQIGxWuM3q2eHwk2yTQTx5y8jT8h8oU2J2M1kr0MpquoyoeVn8SZWo2miNtDVLX11t X-Received: by 2002:a17:903:190:b0:1bb:55be:e198 with SMTP id z16-20020a170903019000b001bb55bee198mr68361plg.0.1695051688565; Mon, 18 Sep 2023 08:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695051688; cv=none; d=google.com; s=arc-20160816; b=c5PKVMu5ySSWwyCW/Cbtk7S7KcSyiCKwA3yz0FmKy60kkmxsgpMv6M1P+jvl7I1wWL TGGHR4j2gutliilBD3rNRbRx5ide5zFifTlFlrCfr38x9ftZjg61G7183kNN/Uy3vUYv d2/ME/ZP6f2+aYGvfJ0bK9fn+h6Dut8soX3LHGG3KAuBdc4YHUZP3dx15LmOlP3R+C1B hNmaY8R0FjZ/1pRX5TxizBIAFsvzNG0z7I4/Piw3BJLKOu7tSI14L5mqO/SppK3b7dQ8 7AXyzQMMcfthDbdE1B6a/wLUOdUkJDuUWRmAMI8nht3tFirPjFKza0Z0St5b8a4gFleG P10A== 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=uMmILAyk5z/DTo0jY4W+RqzXyJuhUSnM7yv9lwlojQY=; fh=mExkudcMPTjZhP4y4VF5JUI20PV8Pi6DJ9iDAAB7gJc=; b=O5qto/yvYZQkIg1iGmV70N58hS9DwQl25VY55SabQBJdVaYbXf8eNG4iDev7nFKYQP GexttwaEeuRNysHSSoLJbqcq/eLox5jhgw2PLwk2tm4EAtlsSqaTZF+ATBb1Tn9/QaDB PIrUS+pTcQ99slKjb8MHFkc4FFb7feeDuCcZMOAML2dxMkWXWGhKd9bu3Y/tQvqHYraY ngewPx7bz5bpmilD43x0awqOD05DPN4GwOpQy7buEzWZB0/EUiYvlTgMtZGkYVryy3qH Cl4zSPNH9gmdwCspQNQfolwV1fNp2FPxK9EGiamr1zDL0UaRF3SuRh/3S3aaYiOIe0Wo eyaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AfYUdDD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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. [23.128.96.34]) by mx.google.com with ESMTPS id j17-20020a170902da9100b001bde0ef9cb6si8602023plx.352.2023.09.18.08.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:41:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AfYUdDD9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 D3706827A0B1; Mon, 18 Sep 2023 08:32:41 -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 S229505AbjIRPcJ (ORCPT + 99 others); Mon, 18 Sep 2023 11:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjIRPbw (ORCPT ); Mon, 18 Sep 2023 11:31:52 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 634A62D64; Mon, 18 Sep 2023 08:30:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E44CC116A6; Mon, 18 Sep 2023 15:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695050546; bh=Jy81jZ+Pg9L8j4zgKk95bii6/t3Wa+sejLO3X5izIQQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AfYUdDD9s5k0zOMqYJk1cs4VUf+bhsU6YSfeQzPC5IWDI1JEtk1KhAX0qCwjbeod+ 9PSgK+jKcmA+0SWVJGmjc7MLI3jOy4IZZPILqRC4qxbmSqlrTlPTFArUkEmmKA3u4m Ai/6ZdP0QpzZmgN/zra7pQqij+CquNG1+4jPyrunwtd1CEHSWYBuvr8W/OP3kodFoF CZqwJxD+BA9av3Plub+f9noTCXflPGAh/ehP/HTcqlNTpCrkZQ/M2Klgry7PnQUUfj hJ2ZsoPwfhTKLK7hp8CPfkrSpPPuvbQsdR1+knQ1jVg6zYS3hbxhpNHdzyuG5UCey3 PAFyK+1S+PQqA== Date: Mon, 18 Sep 2023 17:22:20 +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-bestialisch-brutkasten-1fb34abdc33c@brauner> References: <20230914-salzig-manifest-f6c3adb1b7b4@brauner> <20230914-lockmittel-verknallen-d1a18d76ba44@brauner> <20230918-grafik-zutreffen-995b321017ae@brauner> <20230918-hierbei-erhielten-ba5ef74a5b52@brauner> <20230918-stuhl-spannend-9904d4addc93@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:32:42 -0700 (PDT) > So to be clear about your proposal: .mnt_root and .mountpoint are > initialized by the caller to buffers that the kernel can copy paths > into? Yeah, u64 pointer to a buffer and a size (see e.g., @set_tid and @set_tid_size for struct clone_args, @log_buf and @log_size and other args in there). > > If there's an overflow (one of the buffers was too small) the syscall > returns -EOVERFLOW? Yeah, I mean we have to make some things their problem. To me that is an acceptable compromise.