Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1224622rwd; Wed, 7 Jun 2023 13:00:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ43OtGOSvM0scMSm4lBIsKcyCPfOyPWV6K9FELsZMgS0hXuR19d4CYP2pqt3g/gIrxcObBr X-Received: by 2002:a17:90a:34c:b0:259:a7df:f6f8 with SMTP id 12-20020a17090a034c00b00259a7dff6f8mr2426954pjf.24.1686168057748; Wed, 07 Jun 2023 13:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686168057; cv=none; d=google.com; s=arc-20160816; b=b5XtV3nIg9fCw0OYcOYXY9RQAo2oT4CKCQRwm5LoVWWC/18I3K1lxwA4mMZisV5s1i DXQKY+lWG8KeBzqhNIrqVJxY9O0WNyBdz1WXwAIjA7XZy0nVEj1Ok8fM1r3nh76rNA7X F4oPPz1tbrwq33R3YwlLuq3j2fdvun8AM4kX/qSBeNMtZVGd8oozvLuNQPNnkcwMA5pS 8RM63zH8RhA0aNeX9LjEnre/PzT7JTwqrAQ+w3BpK1NHW6OQ8ERcsA/fTYSxix1K6t9q sVAJQO9RX5ulNMwrp3mG9Lsgq9QDozLZBxwqzSYHyoxl9/QWTtcox3ZI4AL4lZEwfI5D ow0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vIG2O4UADWNm89pcv+Gf2yFS+8hDA4wlDgZVkElvTLU=; b=YiAzeGQLJuk2RrBBhKw3vrm9MJZYebC2VN952zwAbr3NpAYAOQ9Xfk+dMXDVBR/nGc B9+xzCwU+LNkJO0Sqbz0Qt94Y/QwE89Jaf01tuO6iam/jK8LCVwg5s6fq7P3ohPiK9ui iuy4rAR6V3SMfgcGUtxa/Gs+geGoHmUoZf3+m7g/KBG2Uv+SFexDLbgSaeOrVaN6oRi4 9dDX93VFby8zHU++NgM1ODJuFOoKDxkAxaRO+ceSAUNpvM0urAHW+Sr4ZwkNv6t7S68y l4fB/C1tbVK8tdaLPf3xeI+od3JCOqPac/betGv96j0SrFc6fFHSlQJ+hn4pRORJDQ88 05mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="Mz/NBg0w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a17090a2e8c00b002590f26818asi1618024pjd.0.2023.06.07.13.00.39; Wed, 07 Jun 2023 13:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="Mz/NBg0w"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231585AbjFGTrS (ORCPT + 99 others); Wed, 7 Jun 2023 15:47:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231827AbjFGTrM (ORCPT ); Wed, 7 Jun 2023 15:47:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F34F2102; Wed, 7 Jun 2023 12:47:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AA86364337; Wed, 7 Jun 2023 19:47:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22F2CC4339B; Wed, 7 Jun 2023 19:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686167225; bh=75h7WJz25lMPAMfQcgH7F+k6bNvFGYHYbc1gBOEj+p8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mz/NBg0wNHHi2pQoYMUS9RwNafR0DA+zLFXI4QZiZA3SenqacejK7wGVJ9lsYN9rq Q59sz/eSg9JOYqDLkOQOWfZPfLKLta8ySq4iljG/Au8wJZ8f6ZEp9QmzZlkwML0Cf3 kMXsV0TCPTRYqpQ/Uxvu2YzB5wQrwakRd0f3gLUiMbZBwgUrWFx23iGxSlpW6fhUmB GWK2tgv9RkkCSOSZbjMcrNW0tSRL0Y2OIQjhkGIFALsG7jTnWYH9pZepH8PWi3xxrw iiP54gvwt8iAm09ZpkxKlhZzsPxpPOnTA6bhDunThfeW1GL2adjQbgByu4+3nZXElx MbAiCRMytsOgQ== From: Christian Brauner To: =?utf-8?q?Thomas_Wei=C3=9Fschuh_=3Clinux=40weissschuh=2Enet=3E?=@vger.kernel.org Cc: Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , Karel Zak , stable@vger.kernel.org, Alexander Viro Subject: Re: [PATCH] fs: avoid empty option when generating legacy mount string Date: Wed, 7 Jun 2023 21:46:48 +0200 Message-Id: <20230607-nussbaum-erleben-33b0998d9aa0@brauner> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230607-fs-empty-option-v1-1-20c8dbf4671b@weissschuh.net> References: <20230607-fs-empty-option-v1-1-20c8dbf4671b@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1037; i=brauner@kernel.org; h=from:subject:message-id; bh=75h7WJz25lMPAMfQcgH7F+k6bNvFGYHYbc1gBOEj+p8=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaQ03Fty98uBz277JlX2TOCLfy3JMT979vrvzeYL1FzsxNuD zj7731HKwiDGxSArpsji0G4SLrecp2KzUaYGzBxWJpAhDFycAjARnxuMDJMDmfqWTuD4subfR7b4S/ OY+K5eY7R6V3O6gvUtI1fuU2dGhn1Ks0/Z2av/PK32Yu3m8sVXbrd8lzsi0pHbdTzjr/yUw+wA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Wed, 07 Jun 2023 19:28:48 +0200, Thomas Weißschuh wrote: > As each option string fragment is always prepended with a comma it would > happen that the whole string always starts with a comma. > This could be interpreted by filesystem drivers as an empty option and > may produce errors. > > For example the NTFS driver from ntfs.ko behaves like this and fails when > mounted via the new API. > > [...] Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] fs: avoid empty option when generating legacy mount string https://git.kernel.org/vfs/vfs/c/de3824801c82