On Mon, 04 Dec 2023 18:34:17 +0100, Christoph Hellwig wrote: > bio_add_hw_page currently fails miserably when trying to add larger > contiguous ranges than support by the underlying hardware, a it > always adds everything or nothing. That isn't really a problem yet > as there are no callers that actually pass anything where off + len > doesn't fit in a single page, but I've been working on code that > will, which immediately tripped it. > > [...] Applied, thanks! [1/2] block: prevent an integer overflow in bvec_try_merge_hw_page commit: 3f034c374ad55773c12dd8f3c1607328e17c0072 [2/2] block: support adding less than len in bio_add_hw_page commit: 6ef02df154a245a4a7c0a66daa5a353daa788dba Best regards, -- Jens Axboe