Re: [PATCH v2] block: bounce user PI when writes may remap reference tags
From: Jens Axboe
Date: Fri Nov 27 2026 - 22:16:28 EST
On Fri, 20 Nov 2026 20:56:44 +0100, Zakaria Belkadi wrote:
> On an io_uring O_DIRECT write, bio_integrity_map_user() can attach the
> caller's protection information (PI) buffer directly to the bio. The
> block layer pins the pages for reading, but reference-tag remapping can
> write to those same pages.
>
> A caller with write access to a block device whose integrity profile
> enables reference-tag remapping can therefore modify a page it can
> only map for reading. In testing, remapping changed a tag in the page
> cache of a read-only file. With a PI buffer backed by the shared zero
> page, the kernel faulted during remapping.
>
> [...]
Applied, thanks!
[1/1] block: bounce user PI when writes may remap reference tags
commit: 348d25516523c3edfec477d56abde2b2491dbf9d
Best regards,
--
Jens Axboe