aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorWei Gao <[email protected]>2025-06-13 15:18:38 +0000
committerJan Kara <[email protected]>2025-06-13 09:38:25 +0000
commita099b09a3342a0b28ea330e405501b5b4d0424b4 (patch)
tree625dadeade164f588826ed83d1a4cdca12ed6110 /net/unix/af_unix.c
parentMerge tag 'net-6.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/net... (diff)
downloadkernel-a099b09a3342a0b28ea330e405501b5b4d0424b4.tar.gz
kernel-a099b09a3342a0b28ea330e405501b5b4d0424b4.zip
ext2: Handle fiemap on empty files to prevent EINVAL
Previously, ext2_fiemap would unconditionally apply "len = min_t(u64, len, i_size_read(inode));", When inode->i_size was 0 (for an empty file), this would reduce the requested len to 0. Passing len = 0 to iomap_fiemap could then result in an -EINVAL error, even for valid queries on empty files. Link: https://github.com/linux-test-project/ltp/issues/1246 Signed-off-by: Wei Gao <[email protected]> Signed-off-by: Jan Kara <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions