Re: [PATCH] blk-mq: Fix races between iterating over requests and freeing requests

From
Khazhy Kumykov <hidden>
Date
2021-03-22 22:40:41
Reply to
Bart Van Assche, 2021-03-19
On Thu, Mar 18, 2021 at 6:00 PM Bart Van Assche [off-list ref] wrote:
Multiple users have reported use-after-free complaints similar to the
following (see also https://lore.kernel.org/linux-block/1545261885.185366.488.camel@acm.org/ (local)):
This fixes the crashes I was seeing. I also looked over the patch and
the dereferencing rules seem correct, although that q_usage_counter
check in the bad case seems racy itself? Thanks!
Reviewed-By: Khazhismel Kumykov <redacted>

Attachments

Thread (9 messages) 9 messages, 5 authors, last reply 2021-03-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help