mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Christian Brauner <christian@brauner.io>
Cc: David Howells <dhowells@redhat.com>,
	Marc Dionne <marc.dionne@auristor.com>,
	linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/8] afs: Miscellaneous fixes
Date: Mon, 27 Jul 2026 14:08:16 +0100	[thread overview]
Message-ID: <20260727130827.1100080-1-dhowells@redhat.com> (raw)

Hi Christian,

Can you pick up these miscellaneous AFS fixes, please?  Note that some of
these are derived from Sashiko review of some rxrpc patches[1][2].

 (1) Fix afs_fs_fetch_data() to set call->async.

 (2) Fix afs_fs_fetch_data() to subtract transferred from len instead of
     adding it.

 (3) Fix a UAF when sending a message if the call is completed so quickly
     that the sending code hasn't finished with it when it gets freed.

 (4) Fix missing kunmap in afs_dir_search_bucket().

 (5) Fix afs_edit_dir_remove() to get, not find, block 0.

 (6) Fix double-unmap of directory block.

There are also two fixes to fix the issue behind a work-around in bash that is
now being removed[3][4].

 (7) Allow filesystems with foreign owner IDs to override UID checks.

 (8) Use (7) to fix open(O_CREAT) on an extant AFS file in a sticky dir.

The patches can be found here:

	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=afs-fixes

Thanks,
David

[1] https://sashiko.dev/#/patchset/20260702144919.172295-1-dhowells%40redh
[2] https://sashiko.dev/#/patchset/20260713081022.2186481-1-dhowells%40red
[3] https://groups.google.com/g/gnu.bash.bug/c/6PPTfOgFdL4/m/2AQU-S1N76UJ
[4] Link: https://git.savannah.gnu.org/cgit/bash.git/tree/redir.c?h=bash-5.3-rc1#n733

David Howells (8):
  afs: Fix afs_fs_fetch_data() to set call->async
  afs: Fix afs_fs_fetch_data() to subtract transferred from len
  afs: Fix UAF when sending a message
  afs: Fix missing kunmap in afs_dir_search_bucket()
  afs: Fix afs_edit_dir_remove() to get, not find, block 0
  afs: Fix double-unmap of directory block
  vfs: Allow filesystems with foreign owner IDs to override UID checks
  afs, bash: Fix open(O_CREAT) on an extant AFS file in a sticky dir

 Documentation/filesystems/vfs.rst |  21 ++++
 fs/afs/dir.c                      |   2 +
 fs/afs/dir_edit.c                 |  11 +-
 fs/afs/dir_search.c               |  11 +-
 fs/afs/file.c                     |   2 +
 fs/afs/fsclient.c                 |   5 +-
 fs/afs/inode.c                    |   1 +
 fs/afs/internal.h                 |  14 ++-
 fs/afs/security.c                 |  46 +++++++++
 fs/attr.c                         |  58 ++++++-----
 fs/coredump.c                     |   2 +-
 fs/inode.c                        |  11 +-
 fs/internal.h                     |   1 +
 fs/locks.c                        |   7 +-
 fs/namei.c                        | 161 ++++++++++++++++++++++++------
 fs/remap_range.c                  |  20 ++--
 include/linux/fs.h                |   7 +-
 17 files changed, 290 insertions(+), 90 deletions(-)


             reply	other threads:[~2026-07-27 13:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-27 13:08 David Howells [this message]
2026-07-27 13:08 ` [PATCH 1/8] afs: Fix afs_fs_fetch_data() to set call->async David Howells
2026-07-27 13:08 ` [PATCH 2/8] afs: Fix afs_fs_fetch_data() to subtract transferred from len David Howells
2026-07-27 13:08 ` [PATCH 3/8] afs: Fix UAF when sending a message David Howells
2026-07-27 13:08 ` [PATCH 4/8] afs: Fix missing kunmap in afs_dir_search_bucket() David Howells
2026-07-27 13:08 ` [PATCH 5/8] afs: Fix afs_edit_dir_remove() to get, not find, block 0 David Howells
2026-07-27 13:08 ` [PATCH 6/8] afs: Fix double-unmap of directory block David Howells
2026-07-27 13:08 ` [PATCH 7/8] vfs: Allow filesystems with foreign owner IDs to override UID checks David Howells
2026-07-28  7:43   ` Christian Brauner
2026-07-27 13:08 ` [PATCH 8/8] afs, bash: Fix open(O_CREAT) on an extant AFS file in a sticky dir David Howells
2026-07-27 19:32   ` Marc Dionne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260727130827.1100080-1-dhowells@redhat.com \
    --to=dhowells@redhat.com \
    --cc=christian@brauner.io \
    --cc=linux-afs@lists.infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc.dionne@auristor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®