Jens Axboe
b13ee668e8
block: don't revert iter for -EIOCBQUEUED
...
blkdev_read_iter() has a few odd checks, like gating the position and
count adjustment on whether or not the result is bigger-than-or-equal to
zero (where bigger than makes more sense), and not checking the return
value of blkdev_direct_IO() before doing an iov_iter_revert(). The
latter can lead to attempting to revert with a negative value, which
when passed to iov_iter_revert() as an unsigned value will lead to
throwing a WARN_ON() because unroll is bigger than MAX_RW_COUNT.
Be sane and don't revert for -EIOCBQUEUED, like what is done in other
spots.
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2025-01-23 06:18:41 -07:00
..
2025-01-13 07:47:19 -07:00
2023-12-23 18:38:08 -07:00
2024-12-18 07:22:30 -07:00
2024-11-19 19:05:32 -07:00
2025-01-20 19:38:46 -08:00
2024-09-10 16:32:09 -06:00
2023-01-29 15:18:33 -07:00
2024-12-23 08:17:17 -07:00
2025-01-17 13:13:55 -07:00
2023-06-01 09:13:31 -06:00
2024-04-03 09:10:17 -06:00
2025-01-13 07:47:09 -07:00
2024-12-10 09:17:00 -07:00
2025-01-13 07:46:55 -07:00
2025-01-10 07:29:23 -07:00
2024-11-11 08:35:46 -07:00
2023-03-16 09:35:09 -06:00
2023-07-05 16:36:12 -06:00
2023-02-09 09:38:16 -07:00
2023-03-16 09:35:09 -06:00
2024-07-15 14:20:22 -07:00
2023-02-09 09:38:16 -07:00
2025-01-20 20:27:33 -08:00
2024-10-22 08:16:40 -06:00
2024-12-12 11:48:14 -07:00
2024-02-05 10:07:22 -07:00
2024-07-28 16:47:51 -06:00
2024-07-28 16:47:51 -06:00
2024-08-28 08:49:25 -06:00
2025-01-04 15:27:35 -07:00
2025-01-06 07:37:11 -07:00
2024-12-23 08:17:23 -07:00
2025-01-06 07:37:41 -07:00
2024-04-17 08:44:03 -06:00
2024-12-23 08:17:23 -07:00
2023-05-18 19:42:54 -06:00
2024-12-18 07:25:37 -07:00
2025-01-06 07:37:41 -07:00
2025-01-14 10:13:25 -07:00
2025-01-10 07:29:23 -07:00
2023-11-20 10:22:40 -07:00
2021-02-22 06:33:48 -07:00
2024-10-22 14:05:09 -06:00
2023-12-01 18:29:18 -07:00
2025-01-17 13:13:54 -07:00
2024-05-09 09:44:55 -06:00
2024-05-27 13:58:06 -06:00
2025-01-13 07:45:03 -07:00
2024-10-22 08:16:43 -06:00
2024-09-10 16:31:41 -06:00
2020-07-31 16:29:47 -06:00
2024-07-01 06:51:53 -06:00
2023-12-26 09:28:10 -07:00
2025-01-10 07:29:23 -07:00
2025-01-15 15:46:56 -07:00
2024-07-03 10:21:15 -06:00
2025-01-06 07:37:41 -07:00
2023-06-30 11:57:07 -07:00
2023-10-28 13:29:23 +02:00
2024-05-02 17:48:09 -04:00
2025-01-06 07:37:41 -07:00
2025-01-02 13:20:29 -07:00
2025-01-23 06:18:41 -07:00
2025-01-15 15:46:56 -07:00
2024-02-23 07:44:19 -07:00
2024-09-11 10:45:28 -06:00
2024-01-08 12:27:39 -07:00
2024-06-14 10:20:06 -06:00
2023-01-30 09:42:42 -07:00
2025-01-02 13:20:29 -07:00
2024-12-23 08:17:23 -07:00
2025-01-02 13:20:29 -07:00
2024-02-16 15:52:45 -07:00
2024-10-22 08:16:40 -06:00
2024-10-02 17:23:23 -04:00