diff options
| author | Jens Axboe <[email protected]> | 2025-05-12 15:06:06 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-05-12 15:27:41 +0000 |
| commit | f446c6311e86618a1f81eb576b56a6266307238f (patch) | |
| tree | 0a3c08bb1ad78adaaafc9f377204e2eae1a6d7d9 /rust/helpers/mutex.c | |
| parent | io_uring/uring_cmd: fix hybrid polling initialization issue (diff) | |
| download | kernel-f446c6311e86618a1f81eb576b56a6266307238f.tar.gz kernel-f446c6311e86618a1f81eb576b56a6266307238f.zip | |
io_uring/memmap: don't use page_address() on a highmem page
For older/32-bit systems with highmem, don't assume that the pages in
a mapped region are always going to be mapped. If io_region_init_ptr()
finds that the pages are coalescable, also check if the first page is
a HighMem page or not. If it is, fall through to the usual vmap()
mapping rather than attempt to get the unmapped page address.
Cc: [email protected]
Fixes: c4d0ac1c1567 ("io_uring/memmap: optimise single folio regions")
Link: https://lore.kernel.org/all/[email protected]/
Reported-by: [email protected]
Link: https://lore.kernel.org/all/[email protected]/
Reported-by: [email protected]
Tested-by: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
