Files
kernel_samsung_a71/include/uapi/linux
Qu Wenruo 7b51f7d400 btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
commit 173431b274a9a54fc10b273b46e67f46bcf62d2e 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>
(cherry picked from commit f084057282bc5f45e5f50a4b226244a30666422d)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-03-08 08:21:29 +00:00
..
2020-06-11 09:22:58 +02:00
2017-08-31 17:32:38 -04:00
2017-12-05 11:26:34 +01:00
2023-11-08 11:21:06 +01:00
2021-04-16 11:57:51 +02:00
2023-06-21 15:38:58 +02:00
2020-10-29 09:07:14 +01:00
2018-02-16 20:22:54 +01:00
2023-09-23 10:46:58 +02:00
2017-08-04 10:30:27 +02:00