Ben Hutchings
9bc1f1791d
Revert "loop: Remove sector_t truncation checks"
...
This reverts commit f92a3b0d00 , which
was commit 083a6a5078 upstream. In 4.19
there is still an option to use 32-bit sector_t on 32-bit
architectures, so we need to keep checking for truncation.
Since loop_set_status() was refactored by subsequent patches, this
reintroduces its truncation check in loop_set_status_from_info()
instead.
I tested that the loop ioctl operations have the expected behaviour on
x86_64, x86_32 with CONFIG_LBDAF=y, and (the special case) x86_32 with
CONFIG_LBDAF=n.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2024-05-02 16:17:14 +02:00
..
2024-03-26 18:22:35 -04:00
2023-09-23 10:48:09 +02:00
2024-02-23 08:12:57 +01:00
2024-04-13 12:50:14 +02:00
2024-02-23 08:12:53 +01:00
2024-04-13 12:50:05 +02:00
2024-05-02 16:17:14 +02:00
2024-04-13 12:50:17 +02:00
2024-03-26 18:22:35 -04:00
2024-02-23 08:12:40 +01:00
2024-04-13 12:50:05 +02:00
2023-11-28 16:46:31 +00:00
2023-12-08 08:43:26 +01:00
2023-10-25 11:16:26 +02:00
2024-04-13 12:50:04 +02:00
2023-09-23 10:48:10 +02:00
2024-05-02 16:17:14 +02:00
2023-08-30 16:31:56 +02:00
2024-01-25 14:33:31 -08:00
2023-08-11 11:45:12 +02:00
2024-03-26 18:22:33 -04:00
2024-04-13 12:50:10 +02:00
2023-09-23 10:47:57 +02:00
2024-03-06 14:35:23 +00:00
2024-05-02 16:17:12 +02:00
2024-05-02 16:17:14 +02:00
2023-06-28 10:15:28 +02:00
2024-04-13 12:50:06 +02:00
2024-01-25 14:33:31 -08:00
2024-05-02 16:17:14 +02:00
2023-08-11 11:45:01 +02:00
2024-01-08 11:27:35 +01:00
2024-05-02 16:17:09 +02:00
2024-04-13 12:50:15 +02:00
2024-03-26 18:22:35 -04:00
2024-05-02 16:17:13 +02:00
2023-08-16 18:13:00 +02:00
2024-02-23 08:12:50 +01:00
2023-08-11 11:45:13 +02:00
2023-11-28 16:46:35 +00:00
2024-04-13 12:50:06 +02:00
2024-04-13 12:50:15 +02:00
2023-08-11 11:45:06 +02:00
2024-03-26 18:22:40 -04:00
2024-04-13 12:50:17 +02:00
2024-04-13 12:50:06 +02:00
2024-05-02 16:17:13 +02:00
2024-05-02 16:17:13 +02:00
2024-05-02 16:17:11 +02:00
2023-09-23 10:48:10 +02:00
2023-11-20 10:29:18 +01:00
2023-10-10 21:44:59 +02:00
2023-11-08 11:22:16 +01:00
2024-01-25 14:33:36 -08:00
2023-10-10 21:44:58 +02:00
2023-12-13 17:42:19 +01:00
2024-04-13 12:50:06 +02:00
2023-11-20 10:29:20 +01:00
2024-02-23 08:12:53 +01:00
2024-01-08 11:27:34 +01:00
2023-12-20 15:38:02 +01:00
2024-02-23 08:12:44 +01:00
2024-03-06 14:35:23 +00:00
2023-11-28 16:46:33 +00:00
2023-11-20 10:29:20 +01:00
2024-03-01 13:06:09 +01:00
2024-01-25 14:33:30 -08:00
2024-02-23 08:12:40 +01:00
2024-03-26 18:22:42 -04:00
2024-04-13 12:50:07 +02:00
2024-04-13 12:50:15 +02:00
2024-04-13 12:50:06 +02:00
2024-04-13 12:50:07 +02:00
2024-03-26 18:22:43 -04:00
2023-08-11 11:45:01 +02:00
2024-05-02 16:17:10 +02:00
2024-03-01 13:06:09 +01:00
2023-11-20 10:29:17 +01:00
2024-05-02 16:17:12 +02:00
2024-01-25 14:33:30 -08:00
2024-05-02 16:17:10 +02:00
2024-04-13 12:50:06 +02:00
2024-05-02 16:17:08 +02:00
2024-04-13 12:50:16 +02:00
2024-04-13 12:50:16 +02:00
2023-08-11 11:45:11 +02:00
2024-01-25 14:33:36 -08:00
2023-11-28 16:46:33 +00:00