diff options
| author | Yichong Chen <chenyichong@uniontech.com> | 2026-08-07 18:00:53 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-10-01 14:48:25 +0200 |
| commit | 5ec78be9552035e1e71de218f968c03c44181bf0 (patch) | |
| tree | f74aaea4dba5bb6f3e24cf655a2da0074bd37fd9 /tools/perf/scripts/python | |
| parent | 98421ba5925fd95db714727f7ae82e87e571979b (diff) | |
debugfs: make debugfs_create_str() read-only
debugfs_create_str() supports replacing the backing string from userspace.
Concurrent writers can race and free the same old string twice.
All writable in-tree users have been converted to local file operations.
Remove the generic write support from debugfs_create_str(), and refuse to
create a file when the caller passes write permission bits.
This makes unsupported writable use visible instead of silently creating a
file with different permissions.
Fixes: 86b5488121db ("debugfs: Add write support to debugfs_create_str()")
Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
Link: https://patch.msgid.link/20260807100053.1089834-4-chenyichong@uniontech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
