Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
3
-
9223372036854775807
Description
"fm_extent_count specifies the number of elements in the fm_extents[] array that can be used to return extents. If fm_extent_count is zero, then the fm_extents[] array is ignored (no extents will be returned), and the fm_mapped_extents count will hold the number of extents needed in fm_extents[] to hold the file’s current mapping."
https://www.kernel.org/doc/html/latest/filesystems/fiemap.html
In practice, depending on the state of the kernel thread stack, EINVAL can be returned to userspace even for simple single stripe files.
Details will follow.
Attachments
Issue Links
- is related to
-
LU-17110 Slab corruption using fiemap ioctl with fm_extent_count==0
-
- Resolved
-
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/52308/
Subject:
LU-16480lov: fiemap improperly handles fm_extent_count=0Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: f8b92476350115e85efe77be8711d25b6a0ec9f7