diff options
| author | Christoph Hellwig <[email protected]> | 2025-04-17 06:40:42 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-04-17 08:14:34 +0000 |
| commit | 777d0961ff95b26d5887fdae69900374364976f3 (patch) | |
| tree | b3d1ff96fc48854ac0c481b156b8383a26da7f3e /rust/helpers/platform.c | |
| parent | netfs: Mark __nonstring lookup tables (diff) | |
| download | kernel-777d0961ff95b26d5887fdae69900374364976f3.tar.gz kernel-777d0961ff95b26d5887fdae69900374364976f3.zip | |
fs: move the bdex_statx call to vfs_getattr_nosec
Currently bdex_statx is only called from the very high-level
vfs_statx_path function, and thus bypassing it for in-kernel calls
to vfs_getattr or vfs_getattr_nosec.
This breaks querying the block ѕize of the underlying device in the
loop driver and also is a pitfall for any other new kernel caller.
Move the call into the lowest level helper to ensure all callers get
the right results.
Fixes: 2d985f8c6b91 ("vfs: support STATX_DIOALIGN on block devices")
Fixes: f4774e92aab8 ("loop: take the file system minimum dio alignment into account")
Reported-by: "Darrick J. Wong" <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
