Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp417300rbb; Fri, 26 Apr 2024 07:59:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUDU9EuAt2deKZl9xmWZmAUZw8ZDWEPTEm96ueo5eGsBFWMlNbZ1k5aVRKYkiIF8LjfufcsytnGX2uarL+5o31aPAYSdvPfubLVBYV+Q== X-Google-Smtp-Source: AGHT+IFcjHdRAw8UaAUiTaN57HJOKlD/OL3B2enfQmRBU+hy2P1dFtEz+8LbIUELzyS0VU8ek3e7 X-Received: by 2002:a05:6902:230e:b0:de4:5cea:87d4 with SMTP id do14-20020a056902230e00b00de45cea87d4mr3855558ybb.16.1714143596341; Fri, 26 Apr 2024 07:59:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714143596; cv=pass; d=google.com; s=arc-20160816; b=WWrTjKH4CBHJ9o2WqxzZMkHve5zS2Sz9Wx0W7mfzfoDZZEjdx+ddrqkpIOl/C1AG/a qF8jw6otNxIFU97wxOTqBhVoPFqXgTfvYb4n1R3LjB/hgew7v9zv7bhkWDyEt3t4+HMl 3O4V74wGRWAlEEVWKQE5kF5KH5EQrXalYsslc0bfz+18EiRX90K7gXU+IbsPkBzXA+fV Cyf0I1poT+mBwqXh4M3tlwn9cc3Scket4as05GbtPw88jKcfXLMTMWhNzBbylslH8wBD qknKzTv6Oem9/XMPDA6ilmnSS51vHltfg0cpJ9//PAGZzYMZO3+9CrQ8BMRmgYHdQFkD sV9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=245IicF90IxMUYdPhtkQt6Bm7xY1BD+qUVuQYRRulDc=; fh=qDZ+YnS9HJbCVOaeWFr2FnYZt7eE+vt5IJIDIlhBdxU=; b=fHpOD5liQQwzjkn+9ESh1GjXUfe2yH5N8Snub17De2DiHdGqjisXNXn+Jeac0dykjr hMZ4kDECLBfgLwoN9pJk3+Lv/vlFQNJBO8kwufrlLIScF5fAoeah1ixE3w/RXJtQlbMN v9fZ99JPVCAQ+xGmveCWvXc/s88h4WpnSpBg5RoesVykRFn9Mn8TqcytQmfZjpwDRaB4 v4sHd/wM49cMhDgt1Esr3x6ZF2jC5dbmYdGuENnbw93rgZHd1KjDlDosQXfucqH3nBub gcrVJjibIaRHjLNAtzXCNKYsRWIvscrOUwE2CBiLagPLRdyoaKsIMs1mP0kop22qBawA ValQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQt5VTpP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id eh23-20020a05622a579700b004369224c9dfsi18179533qtb.528.2024.04.26.07.59.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 07:59:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQt5VTpP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160199-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0A2571C234FF for ; Fri, 26 Apr 2024 14:59:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB1AB148FE0; Fri, 26 Apr 2024 14:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jQt5VTpP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D30362E639; Fri, 26 Apr 2024 14:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714143580; cv=none; b=hxlvMnz7Hy5YNRF6APpqEtrMXgdaJMkwOCHIgvff4jDcRAcV95h+KwofAncOX7ZnKd6ftkBxgNx27kHijU2zu+pxPF9lvAI8yDLd/3nKK4XL3Fjwy4XK/bawuba2/dCoDbvx3yzTfIz1xQ0jIZxAHnRUes+FR0i4q+UbwcV/lzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714143580; c=relaxed/simple; bh=8sTdnzFkV/UWVm3qk79tjYUivdn/wHW1DtbpmUNARIo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KAlW1Vo3RYALh/+Kj921biwQE+v9d0/GtNRegKmkgufmJm7SRTRXKMjYhesyt58yIMtb+7IFuzTLWNH3Q5eMuV0qDdXreybe9jeqtBddcKPfw+zz+WLDrab+g4tL7q1joLe6QTIpMdmobfPUzcNWNVKvXXOOa6OWxcNz9eAJtY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jQt5VTpP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B9BFC113CD; Fri, 26 Apr 2024 14:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714143580; bh=8sTdnzFkV/UWVm3qk79tjYUivdn/wHW1DtbpmUNARIo=; h=From:To:Cc:Subject:Date:From; b=jQt5VTpPsVrPGuGuX9i2Z8ZK9TiOWI6suA8uiqjSR4bcRLz7QgEatzXAKMOW4bDlF 1aOK250ag+vxhe/+Ad8nHXXzu4Bh9Gk8I6w+FpD+kCSMOSLQpP6UGmQGoyRCa9w0FY Eyx5r8i/OONqd42XPGwXZPx9V4Cr99FA+xaW/vmpMIXPWksaO2g9YyN/NYUUtG/9rL AlYAUDq3QOC4DtQFVouW8BZtTUveGT3QumPZHkSjn+CbPEnWqY7JctUxsGr3V556j7 NOM2jAF8DBj/P5ayocZ8u3ZVKpXOH95IQZCdbQdlzACULtGdPRHyC34kM4Jy+AtG0G CtPm6pTrlMvfQ== From: Christian Brauner To: Linus Torvalds Cc: Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] vfs fixes Date: Fri, 26 Apr 2024 16:59:29 +0200 Message-ID: <20240426-vfs-fixes-20b3a0dd3821@brauner> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3008; i=brauner@kernel.org; h=from:subject:message-id; bh=8sTdnzFkV/UWVm3qk79tjYUivdn/wHW1DtbpmUNARIo=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaRpHwyeWnPTQV9w8aR32//1rljsV2KTF/5XetP3j998P kpWs7wO7ihlYRDjYpAVU2RxaDcJl1vOU7HZKFMDZg4rE8gQBi5OAZhI4y2G/wFz5/peZCtw2X5L jLF5ZaTAFoaWhAzVl49ePZZomqKZc52RYcvc0M/fe7qMxGWnSKQ1eBs+qG640es9bx9XK0fsipl tPAA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hey Linus, /* Summary */ This contains a few small fixes for this merge window and the attempt to handle the ntfs removal regression that was reported a little while ago: * After the removal of the legacy ntfs driver we received reports about regressions for some people that do mount "ntfs" explicitly and expect the driver to be available. Since ntfs3 is a drop-in for legacy ntfs we alias legacy ntfs to ntfs3 just like ext3 is aliased to ext4. We also enforce legacy ntfs is always mounted read-only and give it custom file operations to ensure that ioctl()'s can't be abused to perform write operations. * Fix an unbalanced module_get() in bdev_open(). * Two smaller fixes for the netfs work done earlier in this cycle. * Fix the errno returned from the new FS_IOC_GETUUID and FS_IOC_GETFSSYSFSPATH ioctls. Both commands just pull information out of the superblock so there's no need to call into the actual ioctl handlers. So instead of returning ENOIOCTLCMD to indicate to fallback we just return ENOTTY directly avoiding that indirection. /* Testing */ clang: Debian clang version 16.0.6 (19) gcc: (Debian 13.2.0-7) 13.2.0 All patches are based on v6.9-rc3. No build failures or warnings were observed. /* Conflicts */ No known conflicts. The following changes since commit fec50db7033ea478773b159e0e2efb135270e3b7: Linux 6.9-rc3 (2024-04-07 13:22:46 -0700) are available in the Git repository at: git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.9-rc6.fixes for you to fetch changes up to c97f59e276d4e93480f29a70accbd0d7273cf3f5: netfs: Fix the pre-flush when appending to a file in writethrough mode (2024-04-26 14:56:18 +0200) Please consider pulling these changes from the signed vfs-6.9-rc6.fixes tag. Thanks! Christian ---------------------------------------------------------------- vfs-6.9-rc6.fixes ---------------------------------------------------------------- Christian Brauner (3): ntfs3: serve as alias for the legacy ntfs driver ntfs3: enforce read-only when used as legacy ntfs driver ntfs3: add legacy ntfs file operations David Howells (2): netfs: Fix writethrough-mode error handling netfs: Fix the pre-flush when appending to a file in writethrough mode Günther Noack (1): fs: Return ENOTTY directly if FS_IOC_GETUUID or FS_IOC_GETFSSYSFSPATH fail Yu Kuai (1): block: fix module reference leakage from bdev_open_by_dev error path block/bdev.c | 2 +- fs/ioctl.c | 4 +-- fs/netfs/buffered_write.c | 23 +++++++++-------- fs/ntfs3/Kconfig | 9 +++++++ fs/ntfs3/dir.c | 7 +++++ fs/ntfs3/file.c | 8 ++++++ fs/ntfs3/inode.c | 20 ++++++++++++--- fs/ntfs3/ntfs_fs.h | 4 +++ fs/ntfs3/super.c | 65 ++++++++++++++++++++++++++++++++++++++++++++--- 9 files changed, 121 insertions(+), 21 deletions(-)