diff options
| author | Wenjie Qi <qwjhust@gmail.com> | 2026-06-30 16:23:30 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-08-03 23:41:19 +0000 |
| commit | 01027b2fcb74dade59fb833b51023f6593b6a9a2 (patch) | |
| tree | b010ceb3da8aaa8e50499cf1c1548dde20e2ce84 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | e533889fc26aea0cd83c90327063f272061dd820 (diff) | |
f2fs: limit recovery filename logging to stored length
F2FS stores recovery filenames as a length plus a fixed-size i_name
buffer. The buffer is not NUL-terminated, but recover_inode() and
recover_dentry() print it with %s.
For a 255-byte filename, recovery logging can read past i_name into the
following raw inode fields.
Print the name with a precision bounded by i_namelen and F2FS_NAME_LEN.
Fixes: f356fe0cba0e ("f2fs: add debug msgs in the recovery routine")
Cc: stable@kernel.org
Assisted-by: Codex:gpt-5.5
Signed-off-by: Wenjie Qi <qiwenjie@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
