Files
linux/fs
Edward Adam Davis cb184dd191 fs: init flags_valid before calling vfs_fileattr_get
syzbot reported a uninit-value bug in [1].

Similar to the "*get" context where the kernel's internal file_kattr
structure is initialized before calling vfs_fileattr_get(), we should
use the same mechanism when using fa.

[1]
BUG: KMSAN: uninit-value in fuse_fileattr_get+0xeb4/0x1450 fs/fuse/ioctl.c:517
 fuse_fileattr_get+0xeb4/0x1450 fs/fuse/ioctl.c:517
 vfs_fileattr_get fs/file_attr.c:94 [inline]
 __do_sys_file_getattr fs/file_attr.c:416 [inline]

Local variable fa.i created at:
 __do_sys_file_getattr fs/file_attr.c:380 [inline]
 __se_sys_file_getattr+0x8c/0xbd0 fs/file_attr.c:372

Reported-by: syzbot+7c31755f2cea07838b0c@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=7c31755f2cea07838b0c
Tested-by: syzbot+7c31755f2cea07838b0c@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Link: https://patch.msgid.link/tencent_B6C4583771D76766D71362A368696EC3B605@qq.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2026-02-14 13:17:43 +01:00
..
2026-01-12 10:55:45 +01:00
2025-11-16 01:35:04 -05:00
2026-01-12 10:55:46 +01:00
2026-01-12 10:55:46 +01:00
2026-01-02 13:43:41 -05:00
2025-11-16 01:35:03 -05:00
2026-01-12 10:55:48 +01:00
2026-01-12 10:55:48 +01:00
2025-11-04 12:36:33 +01:00
2025-11-28 12:42:31 +01:00
2025-09-01 13:08:01 +02:00
2026-01-12 10:55:48 +01:00
2026-01-12 16:52:09 +01:00
2026-01-16 19:21:40 +01:00
2026-01-12 16:52:09 +01:00