<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/fs, branch v5.11</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v5.11</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v5.11'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2021-02-13T19:55:29Z</updated>
<entry>
<title>Merge tag 'for-5.11-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux</title>
<updated>2021-02-13T19:55:29Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2021-02-13T19:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e42ee56fe59759023cb252fabb3d6f279fe8cec8'/>
<id>urn:sha1:e42ee56fe59759023cb252fabb3d6f279fe8cec8</id>
<content type='text'>
Pull btrfs fix from David Sterba:
 "A regression fix caused by a refactoring in 5.11.

  A corrupted superblock wouldn't be detected by checksum verification
  due to wrongly placed initialization of the checksum length, thus
  making memcmp always work"

* tag 'for-5.11-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
  btrfs: initialize fs_info::csum_size earlier in open_ctree
</content>
</entry>
<entry>
<title>Merge tag '5.11-rc7-smb3-github' of git://github.com/smfrench/smb3-kernel</title>
<updated>2021-02-12T22:45:39Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2021-02-12T22:45:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7989807dc0c95c4b787698eba10905a5baac42e8'/>
<id>urn:sha1:7989807dc0c95c4b787698eba10905a5baac42e8</id>
<content type='text'>
Pull cifs fixes from Steve French:
 "Four small smb3 fixes to the new mount API (including a particularly
  important one for DFS links).

  These were found in testing this week of additional DFS scenarios, and
  a user testing of an apache container problem"

* tag '5.11-rc7-smb3-github' of git://github.com/smfrench/smb3-kernel:
  cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb-&gt;prepath.
  cifs: In the new mount api we get the full devname as source=
  cifs: do not disable noperm if multiuser mount option is not provided
  cifs: fix dfs-links
</content>
</entry>
<entry>
<title>Merge tag 'io_uring-5.11-2021-02-12' of git://git.kernel.dk/linux-block</title>
<updated>2021-02-12T19:48:02Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2021-02-12T19:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c6d8570e4d642a0c0bfbe7362ffa1b1433c72db1'/>
<id>urn:sha1:c6d8570e4d642a0c0bfbe7362ffa1b1433c72db1</id>
<content type='text'>
Pull io_uring fix from Jens Axboe:
 "Revert of a patch from this release that caused a regression"

* tag 'io_uring-5.11-2021-02-12' of git://git.kernel.dk/linux-block:
  Revert "io_uring: don't take fs for recvmsg/sendmsg"
</content>
</entry>
<entry>
<title>btrfs: initialize fs_info::csum_size earlier in open_ctree</title>
<updated>2021-02-12T13:48:24Z</updated>
<author>
<name>Su Yue</name>
<email>l@damenly.su</email>
</author>
<published>2021-02-11T08:38:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=83c68bbcb6ac2dbbcaf12e2281a29a9f73b97d0f'/>
<id>urn:sha1:83c68bbcb6ac2dbbcaf12e2281a29a9f73b97d0f</id>
<content type='text'>
User reported that btrfs-progs misc-tests/028-superblock-recover fails:

      [TEST/misc]   028-superblock-recover
  unexpected success: mounted fs with corrupted superblock
  test failed for case 028-superblock-recover

The test case expects that a broken image with bad superblock will be
rejected to be mounted. However, the test image just passed csum check
of superblock and was successfully mounted.

Commit 55fc29bed8dd ("btrfs: use cached value of fs_info::csum_size
everywhere") replaces all calls to btrfs_super_csum_size by
fs_info::csum_size. The calls include the place where fs_info-&gt;csum_size
is not initialized. So btrfs_check_super_csum() passes because memcmp()
with len 0 always returns 0.

Fix it by caching csum size in btrfs_fs_info::csum_size once we know the
csum type in superblock is valid in open_ctree().

Link: https://github.com/kdave/btrfs-progs/issues/250
Fixes: 55fc29bed8dd ("btrfs: use cached value of fs_info::csum_size everywhere")
Signed-off-by: Su Yue &lt;l@damenly.su&gt;
Reviewed-by: David Sterba &lt;dsterba@suse.com&gt;
Signed-off-by: David Sterba &lt;dsterba@suse.com&gt;
</content>
</entry>
<entry>
<title>cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb-&gt;prepath.</title>
<updated>2021-02-11T17:08:32Z</updated>
<author>
<name>Shyam Prasad N</name>
<email>sprasad@microsoft.com</email>
</author>
<published>2021-02-11T11:26:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a738c93fb1c17e386a09304b517b1c6b2a6a5a8b'/>
<id>urn:sha1:a738c93fb1c17e386a09304b517b1c6b2a6a5a8b</id>
<content type='text'>
While debugging another issue today, Steve and I noticed that if a
subdir for a file share is already mounted on the client, any new
mount of any other subdir (or the file share root) of the same share
results in sharing the cifs superblock, which e.g. can result in
incorrect device name.

While setting prefix path for the root of a cifs_sb,
CIFS_MOUNT_USE_PREFIX_PATH flag should also be set.
Without it, prepath is not even considered in some places,
and output of "mount" and various /proc/&lt;&gt;/*mount* related
options can be missing part of the device name.

Signed-off-by: Shyam Prasad N &lt;sprasad@microsoft.com&gt;
Reviewed-by: Aurelien Aptel &lt;aaptel@suse.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>cifs: In the new mount api we get the full devname as source=</title>
<updated>2021-02-11T16:58:08Z</updated>
<author>
<name>Ronnie Sahlberg</name>
<email>lsahlber@redhat.com</email>
</author>
<published>2021-02-11T06:06:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=af1a3d2ba9543e99d78914d8fb88b61d0531d9a1'/>
<id>urn:sha1:af1a3d2ba9543e99d78914d8fb88b61d0531d9a1</id>
<content type='text'>
so we no longer need to handle or parse the UNC= and prefixpath=
options that mount.cifs are generating.

This also fixes a bug in the mount command option where the devname
would be truncated into just //server/share because we were looking
at the truncated UNC value and not the full path.

I.e.  in the mount command output the devive //server/share/path
would show up as just //server/share

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Reviewed-by: Shyam Prasad N &lt;nspmangalore@gmail.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>Revert "io_uring: don't take fs for recvmsg/sendmsg"</title>
<updated>2021-02-10T19:37:58Z</updated>
<author>
<name>Jens Axboe</name>
<email>axboe@kernel.dk</email>
</author>
<published>2021-02-10T19:37:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=92c75f7594d5060a4cb240f0e987a802f8486b11'/>
<id>urn:sha1:92c75f7594d5060a4cb240f0e987a802f8486b11</id>
<content type='text'>
This reverts commit 10cad2c40dcb04bb46b2bf399e00ca5ea93d36b0.

Petr reports that with this commit in place, io_uring fails the chroot
test (CVE-202-29373). We do need to retain -&gt;fs for send/recvmsg, so
revert this commit.

Reported-by: Petr Vorel &lt;pvorel@suse.cz&gt;
Signed-off-by: Jens Axboe &lt;axboe@kernel.dk&gt;
</content>
</entry>
<entry>
<title>nilfs2: make splice write available again</title>
<updated>2021-02-10T19:19:58Z</updated>
<author>
<name>Joachim Henke</name>
<email>joachim.henke@t-systems.com</email>
</author>
<published>2021-02-09T21:42:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a35d8f016e0b68634035217d06d1c53863456b50'/>
<id>urn:sha1:a35d8f016e0b68634035217d06d1c53863456b50</id>
<content type='text'>
Since 5.10, splice() or sendfile() to NILFS2 return EINVAL.  This was
caused by commit 36e2c7421f02 ("fs: don't allow splice read/write
without explicit ops").

This patch initializes the splice_write field in file_operations, like
most file systems do, to restore the functionality.

Link: https://lkml.kernel.org/r/1612784101-14353-1-git-send-email-konishi.ryusuke@gmail.com
Signed-off-by: Joachim Henke &lt;joachim.henke@t-systems.com&gt;
Signed-off-by: Ryusuke Konishi &lt;konishi.ryusuke@gmail.com&gt;
Tested-by: Ryusuke Konishi &lt;konishi.ryusuke@gmail.com&gt;
Cc: &lt;stable@vger.kernel.org&gt;	[5.10+]
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>cifs: do not disable noperm if multiuser mount option is not provided</title>
<updated>2021-02-10T02:47:05Z</updated>
<author>
<name>Ronnie Sahlberg</name>
<email>lsahlber@redhat.com</email>
</author>
<published>2021-02-10T01:55:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a0f85e38a3c23a334d9ea111cfa4fcfa4b3f9b64'/>
<id>urn:sha1:a0f85e38a3c23a334d9ea111cfa4fcfa4b3f9b64</id>
<content type='text'>
Fixes small regression in implementation of new mount API.

Signed-off-by: Ronnie Sahlberg &lt;lsahlber@redhat.com&gt;
Reported-by: Hyunchul Lee &lt;hyc.lee@gmail.com&gt;
Tested-by: Hyunchul Lee &lt;hyc.lee@gmail.com&gt;
Signed-off-by: Steve French &lt;stfrench@microsoft.com&gt;
</content>
</entry>
<entry>
<title>tmpfs: disallow CONFIG_TMPFS_INODE64 on alpha</title>
<updated>2021-02-10T01:26:44Z</updated>
<author>
<name>Seth Forshee</name>
<email>seth.forshee@canonical.com</email>
</author>
<published>2021-02-09T21:42:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ad69c389ec110ea54f8b0c0884b255340ef1c736'/>
<id>urn:sha1:ad69c389ec110ea54f8b0c0884b255340ef1c736</id>
<content type='text'>
As with s390, alpha is a 64-bit architecture with a 32-bit ino_t.  With
CONFIG_TMPFS_INODE64=y tmpfs mounts will get 64-bit inode numbers and
display "inode64" in the mount options, whereas passing "inode64" in the
mount options will fail.  This leads to erroneous behaviours such as
this:

  # mkdir mnt
  # mount -t tmpfs nodev mnt
  # mount -o remount,rw mnt
  mount: /home/ubuntu/mnt: mount point not mounted or bad option.

Prevent CONFIG_TMPFS_INODE64 from being selected on alpha.

Link: https://lkml.kernel.org/r/20210208215726.608197-1-seth.forshee@canonical.com
Fixes: ea3271f7196c ("tmpfs: support 64-bit inums per-sb")
Signed-off-by: Seth Forshee &lt;seth.forshee@canonical.com&gt;
Acked-by: Hugh Dickins &lt;hughd@google.com&gt;
Cc: Chris Down &lt;chris@chrisdown.name&gt;
Cc: Amir Goldstein &lt;amir73il@gmail.com&gt;
Cc: Richard Henderson &lt;rth@twiddle.net&gt;
Cc: Ivan Kokshaysky &lt;ink@jurassic.park.msu.ru&gt;
Cc: Matt Turner &lt;mattst88@gmail.com&gt;
Cc: &lt;stable@vger.kernel.org&gt;	[5.9+]
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
