summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2022-04-15 13:53:56 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2023-06-07 17:49:20 +0200
commit3066ff93476c35679cb07a97cce37d9bb07632ff (patch)
treeb3d7e40fe90a4f71a63b2b5c43a89b8c45dd05c7 /security
parent1c3610d30e5c15f4db7eb8465e311b582aa50ebe (diff)
downloadlinux-3066ff93476c35679cb07a97cce37d9bb07632ff.tar.gz
linux-3066ff93476c35679cb07a97cce37d9bb07632ff.tar.bz2
linux-3066ff93476c35679cb07a97cce37d9bb07632ff.zip
fuse: Apply flags2 only when userspace set the FUSE_INIT_EXT
This is just a safety precaution to avoid checking flags on memory that was initialized on the user space side. libfuse zeroes struct fuse_init_out outarg, but this is not guranteed to be done in all implementations. Better is to act on flags and to only apply flags2 when FUSE_INIT_EXT is set. There is a risk with this change, though - it might break existing user space libraries, which are already using flags2 without setting FUSE_INIT_EXT. The corresponding libfuse patch is here https://github.com/libfuse/libfuse/pull/662 Signed-off-by: Bernd Schubert <bschubert@ddn.com> Fixes: 53db28933e95 ("fuse: extend init flags") Cc: <stable@vger.kernel.org> # v5.17 Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions