diff options
author | Sam Bradshaw <sbradshaw@micron.com> | 2015-03-19 00:06:18 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-03-19 00:06:18 +0100 |
commit | bc188d818edf325ae38cfa43254a0b10a4defd65 (patch) | |
tree | 08dec19e40bccd2d87738686f94c15e31d121c67 /crypto/crc32.c | |
parent | blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path (diff) | |
download | linux-bc188d818edf325ae38cfa43254a0b10a4defd65.tar.xz linux-bc188d818edf325ae38cfa43254a0b10a4defd65.zip |
blkmq: Fix NULL pointer deref when all reserved tags in
When allocating from the reserved tags pool, bt_get() is called with
a NULL hctx. If all tags are in use, the hw queue is kicked to push
out any pending IO, potentially freeing tags, and tag allocation is
retried. The problem is that blk_mq_run_hw_queue() doesn't check for
a NULL hctx. So we avoid it with a simple NULL hctx test.
Tested by hammering mtip32xx with concurrent smartctl/hdparm.
Signed-off-by: Sam Bradshaw <sbradshaw@micron.com>
Signed-off-by: Selvan Mani <smani@micron.com>
Fixes: b32232073e80 ("blk-mq: fix hang in bt_get()")
Cc: stable@kernel.org
Added appropriate comment.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'crypto/crc32.c')
0 files changed, 0 insertions, 0 deletions