Re: [PATCH v2 0/3] ublk: harden user buffer handling

Jens Axboe <[email protected]> Mon, 03 Aug 2026 20:32:30 -0600
Newsgroups org.kernel.vger.linux-block,org.kernel.vger.linux-kernel
Message-ID <178581075067.549250.11766809724124520359.b4-ty@b4>
On Wed, 29 Jul 2026 11:10:38 -0600, Caleb Sander Mateos wrote:
> For ublk devices not using user copy or zero copy, the ublk driver
> copies request data to/from an arbitrary buffer provided by the
> userspace ublk server on each I/O.
> 
> Fix several bugs where the kernel driver is overly trusting of the
> userspace buffer. Ensure that an invalid userspace buffer at worst
> results in a failed or requeued I/O and can't trigger panics or
> undefined behavior.
> 
> [...]

Applied, thanks!

[1/3] ublk: check import_ubuf() return value
      commit: 3831568792af75b6523fa93bb91560e29189cf55
[2/3] ublk: check for ublk_unmap_io() returning 0
      commit: 24fd3706178f1ae5501fd1ff9036e170ed0665ba
[3/3] ublk: remove WARN_ON_ONCE() in ublk_unmap_io()
      commit: 15c1339ef44054cc79c49b40b24a26aa80a2253e

Best regards,
-- 
Jens Axboe