On Fri, 29 Oct 2021 19:39:26 +0900, Shin'ichiro Kawasaki wrote: > Commit 0a593fbbc245 ("null_blk: poll queue support") introduced the poll > queue feature to null_blk. After this change, null_blk device has both > submit queues and poll queues, and null_map_queues() callback maps the > both queues for corresponding hardware contexts. The commit also added > the device configuration attribute 'poll_queues' in same manner as the > existing attribute 'submit_queues'. These attributes allow to modify the > numbers of queues. However, when the new values are stored to these > attributes, the values are just handled only for the corresponding > queue. When number of submit_queue is updated, number of poll_queue is > not counted, or vice versa. This caused inconsistent number of queues > and queue mapping and resulted in null-ptr-dereference. This failure was > observed in blktests block/029 and block/030. > > [...] Applied, thanks! [1/1] null_blk: Fix handling of submit_queues and poll_queues attributes commit: 15dfc662ef31a20b59097d59b0792b06770255fa Best regards, -- Jens Axboe