[PATCH 0/2] io_uring: Fix io_uring mmap() by using architecture-provided get_unmapped_area()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: linux-kernel@xxxxxxxxxxxxxxx, io-uring@xxxxxxxxxxxxxxx, Jens Axboe <axboe@xxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, Jiri Slaby <jirislaby@xxxxxxxxxx>, linux-parisc@xxxxxxxxxxxxxxx
- Subject: [PATCH 0/2] io_uring: Fix io_uring mmap() by using architecture-provided get_unmapped_area()
- From: Helge Deller <deller@xxxxxx>
- Date: Fri, 21 Jul 2023 17:24:30 +0200
- Cc: Helge Deller <deller@xxxxxx>
- Ui-outboundreport: notjunk:1;M01:P0:NBgUUTAtUHg=;qYdow01HRHzQATzICMLdnVy7+Ig qOdbUudPJO+YOv9vl3aYmBelg7/QA+dtblyEFdZhOhhvr4TFTibPba26oLj+1xAv2NqUpvBZq cwbFhEkVBQ3u/xrzuURxOHmxvvosd8X1tvMFUq4TAjvsiMWcfR62HT9k7PDxq0yq4m64ruwfW DtYWBfg7euON5vfRG17HwjN7MyE/jbA3u/LGHnsaoxNhwI+14l6Maz2JLn+Xcch4+bcDySZOT XkcUA6Ua8rQ5rOhGR5ZZ4nM+P+T1BZKOEO+5LYt0wfhF/MaJrsJJ/GRzCeF5m3y3MJ1fO4Cuj 9LG+9bQSKEU9NUDZ+dDeHIb5lIjpZFD1aeFYmeosmMoDDVltBCIkMQqHHccxI89zgbb1xYRwT VRbv8frPM8FhWCYu3B9aPzOB3yM6YDIrZ+r1TEbi4ZMkqtS2BuBDO/uKP9gWXv7gA2p+YqTAj Vmx+pZU0S0RbzD5dV92QYb6u4nJyPWetwbrcJXQVvk/DASHUxk3J5Ns35JiVMvnWuPE1J191v RPB+OrPq1Z8g6xgvA8fqVOizbql458Ts6cm2S+Jn27r/k+N4pGaSi6ADFC3G/0IRUoeBU0Gi7 4i2Z9loaPFuEUGnqwef7Vz8mCX2RJ5/c1sNDKnkyYWs8teZpxHHqwyqs3EjvfYVpgNuf5HdU3 n6vJ2q7weUL+FZWrnT+Ke4VNJJqNwqC7GPdCU6bLTWORAy9oiVS/VcZtupcAST8cz2iKUiYDs jZtDjHw9bUvJZqub90jb0u8IfLWza0/li2a23oZjLNWB3KfYzbHCnzdcJ1bZrO8SKnhCWdqrL S6y3+5+VTxXqGJoyK0SP1VandvDBkPJGJ1dMCxupQRXlN5AdFCXa8Diw5y4+liFZC+HMUKGGD VIK/78Tqup0rPy8Ed5SmN8HdbKG6INPxmqSqZo/Dud+BcRD3kZDuD6KF7flwJVQBMrf/HGs4y B35vWfi53ORsP8aXqBjMa6wmvYU=
Fix io_uring on IA64 (and x86-32?) which was broken since commit
d808459b2e31 ("io_uring: Adjust mapping wrt architecture aliasing
requirements").
The fix is to switch back to the get_unmapped_area() which is provided by
each architecture.
Patch 1 switches io_uring back to use per-arch get_unmapped_area().
Patch 2 (for IA64) is an independend cleanup.
Helge
Helge Deller (2):
io_uring: Fix io_uring mmap() by using architecture-provided
get_unmapped_area()
ia64: mmap: Consider pgoff when searching for free mapping
arch/ia64/kernel/sys_ia64.c | 2 +-
arch/parisc/kernel/sys_parisc.c | 15 ++++++++----
io_uring/io_uring.c | 42 +++++++++++++--------------------
3 files changed, 28 insertions(+), 31 deletions(-)
--
2.41.0
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]