diff options
| author | Bart Van Assche <[email protected]> | 2024-02-02 20:39:20 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-02-06 13:30:47 +0000 |
| commit | ec16b147a55bfa14e858234eb7b1a7c8e7cd5021 (patch) | |
| tree | a292aa472d2281d1f56d249e91a4e550acaa9758 /fs/btrfs/dev-replace.c | |
| parent | Linux 6.8-rc1 (diff) | |
| download | kernel-ec16b147a55bfa14e858234eb7b1a7c8e7cd5021.tar.gz kernel-ec16b147a55bfa14e858234eb7b1a7c8e7cd5021.zip | |
fs: Fix rw_hint validation
Reject values that are valid rw_hints after truncation but not before
truncation by passing an untruncated value to rw_hint_valid().
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Kanchan Joshi <[email protected]>
Cc: Jeff Layton <[email protected]>
Cc: Chuck Lever <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Fixes: 5657cb0797c4 ("fs/fcntl: use copy_to/from_user() for u64 types")
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
