From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B22C3CD5BAB for ; Tue, 19 Sep 2023 12:41:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbjISMln (ORCPT ); Tue, 19 Sep 2023 08:41:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230021AbjISMlm (ORCPT ); Tue, 19 Sep 2023 08:41:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46CF099; Tue, 19 Sep 2023 05:41:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D78A9C433C8; Tue, 19 Sep 2023 12:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695127296; bh=sdNgLMHUaM9EotsLPKRMXdZdUQrg70sPmYa/XAc0bSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ftGqKQL4Xpl9ksEbF9kVIdFF6MC45/9W9MV9ZLGrEGLN3RbD12jnPRc54rGSxjK63 GNAsWaV+cP6dWUHXZrqwbuhZpsxpPpURNCVhH1DHSKgyNpjCFjUXoI7GwmhaQUbsn5 eg3PLHExudRGbYamTZSzZ56fxe8gEIVXloT8armL49S30NLIcooICXsWKt/IJDiBdJ 6z4OSXV1TUgouaw7mq+dEZhu2uL9nuj1xRffJd7ZkbChdnqQMrHqJHCgPnsHbDUK9d 54+4zvEayOJfLjh0Kdsxv6R2OIlVHmWHHT1lk3U7wKkA0gbvSLBO5Ot8hKZyQmVI8P t8TC7i1SN/eWQ== Date: Tue, 19 Sep 2023 14:41:25 +0200 From: Christian Brauner To: Miklos Szeredi Cc: Matthew House , 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: <20230919-hackordnung-asketisch-331907800aa0@brauner> References: <20230918-hierbei-erhielten-ba5ef74a5b52@brauner> <20230918-stuhl-spannend-9904d4addc93@brauner> <20230918-bestialisch-brutkasten-1fb34abdc33c@brauner> <20230919003800.93141-1-mattlloydhouse@gmail.com> <20230919-abfedern-halfen-c12583ff93ac@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org > > with __u32 size for mnt_root and mnt_point > > Unnecessary if the strings are nul terminated. All ok by me so far but how does the kernel know the size of the buffer to copy into? Wouldn't it be better to allow userspace to specify that? I'm probably just missing something but I better ask.