diff options
| author | 2026-06-30 16:23:30 +0800 | |
|---|---|---|
| committer | 2026-08-03 23:41:19 +0000 | |
| commit | 01027b2fcb74dade59fb833b51023f6593b6a9a2 (patch) | |
| tree | b010ceb3da8aaa8e50499cf1c1548dde20e2ce84 /tools/lib/python/kdoc/python_version.py | |
| parent | f2fs: validate MOVE_RANGE destination size (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/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
