summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2025-01-30 13:15:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 11:36:57 +0100
commitc3787a4fae66e710543137b4b1b073cb2bff3bca (patch)
treea79d967eae227408238c8da5c512d32619c7c063 /arch/mips
parent7b54150b588b35e9904c7fe4300f2fb9f3bb122c (diff)
downloadlinux-c3787a4fae66e710543137b4b1b073cb2bff3bca.tar.gz
linux-c3787a4fae66e710543137b4b1b073cb2bff3bca.tar.bz2
linux-c3787a4fae66e710543137b4b1b073cb2bff3bca.zip
statmount: let unset strings be empty
commit e52e97f09fb66fd868260d05bd6b74a9a3db39ee upstream. Just like it's normal for unset values to be zero, unset strings should be empty instead of containing random values. It seems to be a typical mistake that the mask returned by statmount is not checked, which can result in various bugs. With this fix, these bugs are prevented, since it is highly likely that userspace would just want to turn the missing mask case into an empty string anyway (most of the recently found cases are of this type). Link: https://lore.kernel.org/all/CAJfpegsVCPfCn2DpM8iiYSS5DpMsLB8QBUCHecoj6s0Vxf4jzg@mail.gmail.com/ Fixes: 68385d77c05b ("statmount: simplify string option retrieval") Fixes: 46eae99ef733 ("add statmount(2) syscall") Cc: stable@vger.kernel.org # v6.8 Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Link: https://lore.kernel.org/r/20250130121500.113446-1-mszeredi@redhat.com Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions