summaryrefslogtreecommitdiff
path: root/io_uring/splice.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2024-02-02 23:39:20 +0300
committerSasha Levin <sashal@kernel.org>2024-03-27 01:16:26 +0300
commit038cc4a5089b89fec04cb46ba3598dc5db17f6d2 (patch)
treea67610d390c8eee53717e7485c07b8eece9c0b1b /io_uring/splice.h
parentfc6391de33ff894f4acb70a803b846ec9eaf82c7 (diff)
downloadlinux-038cc4a5089b89fec04cb46ba3598dc5db17f6d2.tar.xz
fs: Fix rw_hint validation
[ Upstream commit ec16b147a55bfa14e858234eb7b1a7c8e7cd5021 ] 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 <hch@lst.de> Reviewed-by: Kanchan Joshi <joshi.k@samsung.com> Cc: Jeff Layton <jlayton@kernel.org> Cc: Chuck Lever <chuck.lever@oracle.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Fixes: 5657cb0797c4 ("fs/fcntl: use copy_to/from_user() for u64 types") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20240202203926.2478590-2-bvanassche@acm.org Signed-off-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'io_uring/splice.h')
0 files changed, 0 insertions, 0 deletions