aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorTrond Myklebust <[email protected]>2024-09-13 20:04:18 +0000
committerChristian Brauner <[email protected]>2024-10-02 05:52:12 +0000
commit9d926f10b7ff4300a5dc36ecc52d061911d027d8 (patch)
treeebad93161c3946f29a55054347da3091ce60a667 /rust/helpers/security.c
parentMerge patch series "Introduce tracepoint for hugetlbfs" (diff)
downloadkernel-9d926f10b7ff4300a5dc36ecc52d061911d027d8.tar.gz
kernel-9d926f10b7ff4300a5dc36ecc52d061911d027d8.zip
filemap: filemap_read() should check that the offset is positive or zero
We do check that the read offset is less than the filesystem limit, however for good measure we should also check that it is positive or zero, and return EINVAL if that is not the case. Signed-off-by: Trond Myklebust <[email protected]> Link: https://lore.kernel.org/r/482ee0b8a30b62324adb9f7c551a99926f037393.1726257832.git.trond.myklebust@hammerspace.com Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions