aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mpow.c
diff options
context:
space:
mode:
authorZhen Ni <[email protected]>2025-10-13 11:41:51 +0000
committerChristian Brauner <[email protected]>2025-10-21 12:21:46 +0000
commit0778ac7df5137d5041783fadfc201f8fd55a1d9b (patch)
tree47ec20417891f33ba573e69a5961767c0a75a7b9 /lib/mpi/mpi-mpow.c
parentMerge tag 'f2fs-fix-6.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
downloadkernel-0778ac7df5137d5041783fadfc201f8fd55a1d9b.tar.gz
kernel-0778ac7df5137d5041783fadfc201f8fd55a1d9b.zip
fs: Fix uninitialized 'offp' in statmount_string()
In statmount_string(), most flags assign an output offset pointer (offp) which is later updated with the string offset. However, the STATMOUNT_MNT_UIDMAP and STATMOUNT_MNT_GIDMAP cases directly set the struct fields instead of using offp. This leaves offp uninitialized, leading to a possible uninitialized dereference when *offp is updated. Fix it by assigning offp for UIDMAP and GIDMAP as well, keeping the code path consistent. Fixes: 37c4a9590e1e ("statmount: allow to retrieve idmappings") Fixes: e52e97f09fb6 ("statmount: let unset strings be empty") Cc: [email protected] Signed-off-by: Zhen Ni <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mpow.c')
0 files changed, 0 insertions, 0 deletions