Files
linux-stable-mirror/include/uapi/linux
Qu WenruoandGreg Kroah-Hartman 52e02f26d0 btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
commit 173431b274 upstream.

Add extra sanity check for btrfs_ioctl_defrag_range_args::flags.

This is not really to enhance fuzzing tests, but as a preparation for
future expansion on btrfs_ioctl_defrag_range_args.

In the future we're going to add new members, allowing more fine tuning
for btrfs defrag.  Without the -ENONOTSUPP error, there would be no way
to detect if the kernel supports those new defrag features.

CC: stable@vger.kernel.org # 4.14+
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-31 16:17:07 -08:00
..
2022-09-15 09:08:09 +02:00
2022-08-11 10:31:19 -07:00
2022-08-23 14:54:54 -05:00
2022-09-24 07:00:00 +02:00
2023-11-02 09:35:28 +01:00
2022-09-20 09:13:38 +02:00
2022-09-29 18:43:04 +02:00
2022-09-07 16:46:03 +02:00
2022-09-20 09:13:38 +02:00
2023-09-13 09:42:53 +02:00
2022-09-27 17:29:09 -07:00
2022-08-11 04:31:15 -04:00