Nigel Croxon
43806c3d5b
raid10: cleanup memleak at raid10_make_request
If raid10_read_request or raid10_write_request registers a new
request and the REQ_NOWAIT flag is set, the code does not
free the malloc from the mempool.
unreferenced object 0xffff8884802c3200 (size 192):
comm "fio", pid 9197, jiffies 4298078271
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 88 41 02 00 00 00 00 00 .........A......
08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc c1a049a2):
__kmalloc+0x2bb/0x450
mempool_alloc+0x11b/0x320
raid10_make_request+0x19e/0x650 [raid10]
md_handle_request+0x3b3/0x9e0
__submit_bio+0x394/0x560
__submit_bio_noacct+0x145/0x530
submit_bio_noacct_nocheck+0x682/0x830
__blkdev_direct_IO_async+0x4dc/0x6b0
blkdev_read_iter+0x1e5/0x3b0
__io_read+0x230/0x1110
io_read+0x13/0x30
io_issue_sqe+0x134/0x1180
io_submit_sqes+0x48c/0xe90
__do_sys_io_uring_enter+0x574/0x8b0
do_syscall_64+0x5c/0xe0
entry_SYSCALL_64_after_hwframe+0x76/0x7e
V4: changing backing tree to see if CKI tests will pass.
The patch code has not changed between any versions.
Fixes: c9aa889b03 ("md: raid10 add nowait support")
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Link: https://lore.kernel.org/linux-raid/c0787379-9caa-42f3-b5fc-369aed784400@redhat.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
2025-07-05 19:30:41 +08:00
..
2025-05-21 08:45:03 +02:00
2025-04-05 10:30:12 +02:00
2025-05-21 08:45:03 +02:00
2025-03-11 14:05:43 +01:00
2025-05-26 08:02:43 -07:00
2025-04-22 16:06:05 +09:00
2025-04-05 10:30:12 +02:00
2025-04-05 10:30:12 +02:00
2025-05-26 16:04:17 -07:00
2025-07-01 08:14:01 -06:00
2025-05-15 13:12:54 -04:00
2025-04-05 10:30:12 +02:00
2025-05-15 16:25:20 -06:00
2025-03-20 09:11:09 +01:00
2025-05-26 16:04:17 -07:00
2025-05-17 20:46:38 -07:00
2025-05-05 15:34:49 +02:00
2025-04-15 15:18:55 +02:00
2025-04-02 18:03:34 -07:00
2025-05-26 16:04:17 -07:00
2025-03-25 20:40:51 -07:00
2025-05-26 16:04:17 -07:00
2025-04-21 08:30:13 -07:00
2025-03-17 22:06:41 -07:00
2025-05-21 08:45:03 +02:00
2025-05-14 15:31:23 +02:00
2025-03-20 21:38:01 +01:00
2025-05-13 10:42:06 +02:00
2025-04-05 10:30:12 +02:00
2025-05-26 16:04:17 -07:00
2025-04-11 17:32:38 -07:00
2025-04-11 20:47:45 -03:00
2025-05-22 09:08:54 -07:00
2025-05-26 16:04:17 -07:00
2025-04-05 10:30:12 +02:00
2025-05-15 10:57:24 -07:00
2025-04-05 10:30:12 +02:00
2025-04-05 10:30:12 +02:00
2025-05-15 10:40:49 -07:00
2025-05-13 10:42:06 +02:00
2025-03-21 17:12:04 -05:00
2025-04-15 13:29:03 +02:00
2025-05-21 08:45:03 +02:00
2025-03-31 11:44:00 +02:00
2025-05-15 18:23:55 +02:00
2025-05-01 17:47:49 +02:00
2025-05-26 08:02:43 -07:00
2025-05-24 18:54:18 -07:00
2025-05-22 09:10:00 +02:00
2025-05-15 16:01:50 +02:00
2025-04-05 10:30:12 +02:00
2025-04-05 10:30:12 +02:00
2025-04-05 10:30:12 +02:00
2025-04-05 10:30:12 +02:00
2025-04-15 18:21:39 +02:00
2025-07-05 19:30:41 +08:00
2025-04-07 08:12:12 +02:00
2025-04-05 10:30:12 +02:00
2025-04-05 10:30:12 +02:00
2025-03-26 19:57:34 -07:00
2025-03-29 14:33:13 -07:00
2025-05-02 10:23:47 +02:00
2025-05-19 14:26:12 +02:00
2025-04-05 10:30:12 +02:00
2025-05-02 09:43:44 +02:00
2025-05-26 16:04:17 -07:00
2025-04-05 10:30:12 +02:00
2025-04-04 14:23:07 -07:00
2025-04-02 20:27:18 -07:00
2025-07-01 08:17:02 +02:00
2025-04-11 14:41:22 +02:00
2025-03-29 11:23:16 -07:00
2025-03-09 22:27:54 +01:00
2025-04-05 10:30:12 +02:00
2025-05-26 14:36:05 -07:00
2025-04-05 10:30:12 +02:00
2025-05-21 13:57:44 +02:00
2025-05-14 12:28:43 +01:00
2025-05-20 23:41:29 +02:00
2025-05-26 16:04:17 -07:00
2025-05-08 13:29:30 +02:00
2025-04-14 09:34:14 +02:00
2025-04-20 11:57:54 -07:00
2025-05-02 10:23:47 +02:00
2025-04-15 18:22:32 +02:00
2025-05-16 15:43:44 -07:00
2025-04-12 08:11:19 -07:00
2025-03-10 17:37:25 +01:00
2025-05-06 10:00:58 +02:00
2025-05-14 11:16:52 +02:00
2025-05-13 10:34:33 -05:00
2025-03-29 17:18:50 -07:00
2025-04-05 10:30:12 +02:00
2025-05-26 14:36:05 -07:00
2025-05-26 11:39:36 -07:00
2025-03-11 10:41:18 +01:00
2025-04-14 08:51:18 +02:00
2025-05-17 12:04:19 -07:00
2025-05-22 16:05:26 +01:00
2025-05-10 09:08:19 -07:00
2025-04-11 22:13:00 -04:00
2025-05-26 16:04:17 -07:00
2025-04-02 18:23:31 -07:00
2025-04-15 15:02:39 +02:00
2025-04-28 21:23:29 -04:00
2025-05-02 13:59:02 +02:00
2025-05-26 11:39:36 -07:00
2025-05-06 12:59:12 -06:00
2025-04-18 10:08:11 -04:00
2025-05-02 10:23:47 +02:00
2025-04-05 10:30:12 +02:00
2025-04-18 10:05:49 -04:00
2025-05-13 20:37:16 -07:00
2025-04-16 09:26:49 +02:00
2025-05-07 16:21:41 +02:00
2025-03-06 15:11:30 -04:00
2025-03-06 15:11:30 -04:00