diff options
| author | Alessandro Zanni <[email protected]> | 2024-10-17 12:05:51 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-10-17 13:33:43 +0000 |
| commit | 15f34347481648a567db67fb473c23befb796af5 (patch) | |
| tree | f2d10d4b9f9f1c67abbba38bb53381c188ee5028 /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | fs: don't try and remove empty rbtree node (diff) | |
| download | kernel-15f34347481648a567db67fb473c23befb796af5.tar.gz kernel-15f34347481648a567db67fb473c23befb796af5.zip | |
fs: Fix uninitialized value issue in from_kuid and from_kgid
ocfs2_setattr() uses attr->ia_mode, attr->ia_uid and attr->ia_gid in
a trace point even though ATTR_MODE, ATTR_UID and ATTR_GID aren't set.
Initialize all fields of newattrs to avoid uninitialized variables, by
checking if ATTR_MODE, ATTR_UID, ATTR_GID are initialized, otherwise 0.
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=6c55f725d1bdc8c52058
Signed-off-by: Alessandro Zanni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
