]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: use common eb range validation in read_extent_buffer_to_user_nofault()
authorDavid Sterba <dsterba@suse.com>
Tue, 6 Jan 2026 16:20:28 +0000 (17:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:56:07 +0000 (18:56 +0200)
commit463626a2eccffc8945c73bc9361367ae4d8779a7
tree6940c99b924aab8cda185be44e55640a89adecfc
parentb8aa337121ddfb050199ecda57b0654d5e3d91e9
btrfs: use common eb range validation in read_extent_buffer_to_user_nofault()

The extent buffer access is checked in other helpers by
check_eb_range(), which validates the requested start, length against
the extent buffer. While this almost never fails we should still handle
it as an error and not just warn.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c