Go to file
Jose Ignacio Tornos Martinez 615def7e82 saner replacement for debugfs_rename()
JIRA: https://issues.redhat.com/browse/RHEL-87378

commit f7862dfef6612b87b2ad8352c4d73886f09456d6
Author: Al Viro <viro@zeniv.linux.org.uk>
Date:   Sun Jan 12 08:07:05 2025 +0000

    saner replacement for debugfs_rename()
    
    Existing primitive has several problems:
            1) calling conventions are clumsy - it returns a dentry reference
    that is either identical to its second argument or is an ERR_PTR(-E...);
    in both cases no refcount changes happen.  Inconvenient for users and
    bug-prone; it would be better to have it return 0 on success and -E... on
    failure.
            2) it allows cross-directory moves; however, no such caller have
    ever materialized and considering the way debugfs is used, it's unlikely
    to happen in the future.  What's more, any such caller would have fun
    issues to deal with wrt interplay with recursive removal.  It also makes
    the calling conventions clumsier...
            3) tautological rename fails; the callers have no race-free way
    to deal with that.
            4) new name must have been formed by the caller; quite a few
    callers have it done by sprintf/kasprintf/etc., ending up with considerable
    boilerplate.
    
    Proposed replacement: int debugfs_change_name(dentry, fmt, ...).  All callers
    convert to that easily, and it's simpler internally.
    
    IMO debugfs_rename() should go; if we ever get a real-world use case for
    cross-directory moves in debugfs, we can always look into the right way
    to handle that.
    
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Link: https://lore.kernel.org/r/20250112080705.141166-21-viro@zeniv.linux.org.uk
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2025-06-02 13:41:52 +02:00
Documentation saner replacement for debugfs_rename() 2025-06-02 13:41:52 +02:00
LICENSES
arch Merge: CVE-2024-53135: KVM: VMX: Bury Intel PT virtualization (guest/host mode) behind CONFIG_BROKEN 2025-05-28 07:26:56 +02:00
block
certs
crypto
drivers saner replacement for debugfs_rename() 2025-06-02 13:41:52 +02:00
fs saner replacement for debugfs_rename() 2025-06-02 13:41:52 +02:00
include saner replacement for debugfs_rename() 2025-06-02 13:41:52 +02:00
init Merge: cgroup: Backport upstream cgroup commits up to v6.12 2025-05-26 10:33:48 +02:00
io_uring Merge: CVE-2025-21863: io_uring: prevent opcode speculation 2025-05-21 18:34:45 -03:00
ipc
kernel Merge: smp: Fix soft lockup problem in hard lockup test 2025-05-28 07:26:35 +02:00
lib lib: packing: catch kunit_kzalloc() failure in the pack() test 2025-05-27 08:59:39 +02:00
mm saner replacement for debugfs_rename() 2025-06-02 13:41:52 +02:00
net saner replacement for debugfs_rename() 2025-06-02 13:41:52 +02:00
redhat [redhat] kernel-5.14.0-590.el9 2025-05-30 12:36:50 +02:00
samples
scripts lib: packing: add pack_fields() and unpack_fields() 2025-05-27 08:59:39 +02:00
security Merge: CVE-2024-50301: security/keys: fix slab-out-of-bounds in key_task_permission 2025-05-21 18:34:49 -03:00
sound ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S16 2025-05-13 16:53:21 +02:00
tools Merge: perf test: Update event_groups test to use instructions 2025-05-30 09:44:01 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS Merge: CNB97: lib: packing: introduce and use (un)pack_fields 2025-05-30 09:43:56 +02:00
Makefile lib: packing: add pack_fields() and unpack_fields() 2025-05-27 08:59:39 +02:00
Makefile.rhelver [redhat] kernel-5.14.0-590.el9 2025-05-30 12:36:50 +02:00
README
makefile

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.