Re: [f2fs-dev] [PATCH] f2fs: limit recovery filename logging to stored length

Chao Yu via Linux-f2fs-devel <[email protected]> Mon, 3 Aug 2026 11:12:04 +0800
Newsgroups net.sourceforge.lists.linux-f2fs-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 6/30/26 16:23, Wenjie Qi wrote:
> 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: [email protected]
> Assisted-by: Codex:gpt-5.5
> Signed-off-by: Wenjie Qi <[email protected]>

Reviewed-by: Chao Yu <[email protected]>

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel