Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp335090rwd; Thu, 8 Jun 2023 01:03:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dTLtzemn/XTwA3WEac3rw8uecWG8qGS+mj7wDDDBuZ3Jyd1pVb4X6oA4LwlbwiUgs4yGs X-Received: by 2002:a05:6a00:23d6:b0:662:5a84:be2a with SMTP id g22-20020a056a0023d600b006625a84be2amr2677926pfc.31.1686211437182; Thu, 08 Jun 2023 01:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686211437; cv=none; d=google.com; s=arc-20160816; b=TRI9PBevlXdSNVxHWbX4SrEXroKVKWOZeH0cEv7yEP/DrlPtDFruHNVLqADDxgnzbi gEwodeI3Kli+U5BXAspSeaurXHfRODNfAL8Y5J300Ai09geErOBLEtBCChYZAgPX+Koi hpdlN0pGXuVj3sM6NRdd0KR9IVwuQli2DY9KTeWKGCNgZYbkF8GMdL4tAEYnsTJohL2z +Efk/Rot8QgJwvz9FVcVPuSeuuYBUb9kGF6g28L80TD1/7s3rVk8qzPf7BjgN3Rp7Mby NeYSL/hRIeHRtBwGQ/X4nYzNAIUj4y8GKb1cFGxd+8wElTPgYM5q9b6e3AnT1O0UYz0b o/kA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BkAFr4KBu8NZFIhIs/05bT2l0XLsvPzi+bZUOZK+WIM=; b=BgNoT5v3zSw86VgWRDzD0bRZcDmQbSM684ElonPtETG5QzWcrtgkwEWsEHCIQtwaFS NQW1RzsDEmS4LZLEeoFzWpaYThp67QqbAn2UcR/pGpfEJLdSkPZ+gxXHS+sDfYKTLw2R 3zSotaGRp9pQpUojesUBoL2vuJJpnboFDoHOei3+F5wQoCMo6bmhuD/0veROrhrlBrvK Zd7OARqoV7NoKwNL7KS4WA52qpJU6sE2SGiMlWlc7NMMCcIlG2KdyTnU2uPQCY4NRtyH RT7Gm/sklesOwAuM1Ls39NWWx0K0weeqN2DgxN4Q1U2EJy+hvlK0l6fxftSyGkIIbXDM ZkBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HUb4L4RV; 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 z3-20020aa79483000000b0063b85b18764si455660pfk.219.2023.06.08.01.03.40; Thu, 08 Jun 2023 01:03: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=pass header.i=@kernel.org header.s=k20201202 header.b=HUb4L4RV; 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 S235439AbjFHHeX (ORCPT + 99 others); Thu, 8 Jun 2023 03:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjFHHeT (ORCPT ); Thu, 8 Jun 2023 03:34:19 -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 32755E6C; Thu, 8 Jun 2023 00:34:18 -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 BC15A64977; Thu, 8 Jun 2023 07:34:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 720AFC4339B; Thu, 8 Jun 2023 07:34:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686209657; bh=hj7i8hTygB8MxIuZCk3nWi7YtmKA5+Jz5129M0m2SeM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HUb4L4RV1pITd/cd8B+A+VOd1i4OmGGE3uzy0jZkmnThBRoaanecwIhgiT7x9BLF+ NBYu2Kssj1Evx9hGaKZm/akYBRdj4BaM2EhzNppDkm7HQHsYegm54fPtKCnNRYgaRs fV9+YKhQfrmM4cjc3JuNfo23IooMymkTkDK9+h7tRppODnZY7CUhUu1gEhIyWKr1de qnVav9TYfLTJunqL8qXvMtruMQIjLxteO62owDHP+jMCgDR2q8UuLQ4x7OXgIE3N8i TGySpRSe45bro8dU6GiweaNsy2SlVd+QrU2V+yF8bCwAT2Puz0BG9s8TRtr0QAQeAE HQYyPrGFv/fyg== Date: Thu, 8 Jun 2023 09:34:12 +0200 From: Christian Brauner To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= Cc: Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , Karel Zak , stable@vger.kernel.org Subject: Re: [PATCH v2] fs: avoid empty option when generating legacy mount string Message-ID: <20230608-holprig-deswegen-4c3b31a71fc3@brauner> References: <20230607-fs-empty-option-v2-1-ffd0cba3bddb@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230607-fs-empty-option-v2-1-ffd0cba3bddb@weissschuh.net> 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, Jun 07, 2023 at 07:39:09PM +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. > > Link: https://github.com/util-linux/util-linux/issues/2298 > Fixes: 3e1aeb00e6d1 ("vfs: Implement a filesystem superblock creation/configuration context") > Cc: stable@vger.kernel.org > Signed-off-by: Thomas Weißschuh > --- Applied a fixed up version of v1 to 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/36851649d3f6 yesterday.