When fat_encode_fh_nostale() encodes file handle without a parent it stores only first 10 bytes of the file handle. However the length of the file handle must be a multiple of 4 so the file handle is actually 12 bytes long and the last two bytes remain uninitialized. This is not great at we potentially leak uninitialized information with the handle to userspace. Properly initialize the full handle length. 社区有patch已经解决 fat: fix uninitialized field in nostale filehandles commit a276c595c3a629170b0f052a3724f755d7c6adc6 Reference:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=a276c595c3a629170b0f052a3724f755d7c6adc6 git cherry-pick -s a276c595c(with stable-v5.10.215 repo added)
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3089
(In reply to 小龙 from comment #1) > The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3089 merged