From: Christian Brauner <brauner@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christian Brauner <brauner@kernel.org>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] cred
Date: Sat, 18 Jan 2025 14:03:33 +0100 [thread overview]
Message-ID: <20250118-kernel-cred-bfe8c6c428d4@brauner> (raw)
Hey Linus,
/* Summary */
For the v6.13 cycle we switched overlayfs to a variant of
override_creds() that doesn't take an extra reference. To this end the
{override,revert}_creds_light() helpers were introduced.
This series generalizes the idea behind {override,revert}_creds_light()
to the {override,revert}_creds() helpers. Afterwards overriding and
reverting credentials is reference count free unless the caller
explicitly takes a reference. All caller's have been appropriately ported.
/* Testing */
gcc version 14.2.0 (Debian 14.2.0-6)
Debian clang version 16.0.6 (27+b1)
No build failures or warnings were observed.
/* Conflicts */
Merge conflicts with mainline
=============================
No known conflicts.
Merge conflicts with other trees
================================
[1] linux-next: manual merge of the vfs-brauner tree with the nfs-anna tree
https://lore.kernel.org/linux-next/20250109084503.1e046ef7@canb.auug.org.au
The following changes since commit 40384c840ea1944d7c5a392e8975ed088ecf0b37:
Linux 6.13-rc1 (2024-12-01 14:28:56 -0800)
are available in the Git repository at:
git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/kernel-6.14-rc1.cred
for you to fetch changes up to a6babf4cbeaaa1c97a205382cdc958571f668ea8:
cred: fold get_new_cred_many() into get_cred_many() (2024-12-02 11:25:15 +0100)
Please consider pulling these changes from the signed kernel-6.14-rc1.cred tag.
Thanks!
Christian
----------------------------------------------------------------
kernel-6.14-rc1.cred
----------------------------------------------------------------
Christian Brauner (31):
tree-wide: s/override_creds()/override_creds_light(get_new_cred())/g
cred: return old creds from revert_creds_light()
tree-wide: s/revert_creds()/put_cred(revert_creds_light())/g
cred: remove old {override,revert}_creds() helpers
tree-wide: s/override_creds_light()/override_creds()/g
tree-wide: s/revert_creds_light()/revert_creds()/g
firmware: avoid pointless reference count bump
sev-dev: avoid pointless cred reference count bump
target_core_configfs: avoid pointless cred reference count bump
aio: avoid pointless cred reference count bump
binfmt_misc: avoid pointless cred reference count bump
coredump: avoid pointless cred reference count bump
nfs/localio: avoid pointless cred reference count bumps
nfs/nfs4idmap: avoid pointless reference count bump
nfs/nfs4recover: avoid pointless cred reference count bump
nfsfh: avoid pointless cred reference count bump
open: avoid pointless cred reference count bump
ovl: avoid pointless cred reference count bump
cifs: avoid pointless cred reference count bump
cifs: avoid pointless cred reference count bump
smb: avoid pointless cred reference count bump
io_uring: avoid pointless cred reference count bump
acct: avoid pointless reference count bump
cgroup: avoid pointless cred reference count bump
trace: avoid pointless cred reference count bump
dns_resolver: avoid pointless cred reference count bump
cachefiles: avoid pointless cred reference count bump
nfsd: avoid pointless cred reference count bump
cred: remove unused get_new_cred()
Merge patch series "cred: rework {override,revert}_creds()"
cred: fold get_new_cred_many() into get_cred_many()
Documentation/security/credentials.rst | 5 ----
drivers/crypto/ccp/sev-dev.c | 2 +-
fs/backing-file.c | 20 +++++++-------
fs/nfsd/auth.c | 3 +-
fs/nfsd/filecache.c | 2 +-
fs/nfsd/nfs4recover.c | 3 +-
fs/nfsd/nfsfh.c | 1 -
fs/open.c | 11 ++------
fs/overlayfs/dir.c | 4 +--
fs/overlayfs/util.c | 4 +--
fs/smb/server/smb_common.c | 10 ++-----
include/linux/cred.h | 43 +++++------------------------
kernel/cred.c | 50 ----------------------------------
13 files changed, 29 insertions(+), 129 deletions(-)
next reply other threads:[~2025-01-18 13:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-18 13:03 Christian Brauner [this message]
2025-01-20 18:59 ` [GIT PULL] cred pr-tracker-bot
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=20250118-kernel-cred-bfe8c6c428d4@brauner \
--to=brauner@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.