mbox series

[0/4,for,6.1,stable]

Message ID cover.1706377319.git.fdmanana@suse.com (mailing list archive)
Headers show
Series [1/4,for,6.1,stable] btrfs: fix infinite directory reads | expand

Message

Filipe Manana Jan. 27, 2024, 5:56 p.m. UTC
From: Filipe Manana <fdmanana@suse.com>

Here follows the backport of some directory related fixes for the stable
6.1 tree. I tested these on top of 6.1.75.

These were recently requested by a user for 5.15 stable:

   https://lore.kernel.org/linux-btrfs/20240124225522.GA2614102@lxhi-087/

This request is to backport the same patches to 6.1, while the request
for 5.15 stabe is at:

   https://lore.kernel.org/linux-btrfs/cover.1706183427.git.fdmanana@suse.com/

Filipe Manana (4):
  btrfs: fix infinite directory reads
  btrfs: set last dir index to the current last index when opening dir
  btrfs: refresh dir last index during a rewinddir(3) call
  btrfs: fix race between reading a directory and adding entries to it

 fs/btrfs/ctree.h         |   1 +
 fs/btrfs/delayed-inode.c |   5 +-
 fs/btrfs/delayed-inode.h |   1 +
 fs/btrfs/inode.c         | 150 +++++++++++++++++++++++++--------------
 4 files changed, 102 insertions(+), 55 deletions(-)