在 2022/2/9 10:55, Zhang Yi 写道:
We found a NULL pointer dereference problem when using dm-mpath target. The problem is if we submit IO between loading and binding the table, we could neither get a valid dm_target nor a valid dm table when submitting request in dm_mq_queue_rq(). BIO based dm target could handle this case in dm_submit_bio(). This patch fix this by checking the valid live table before submitting request.
Signed-off-by: Zhang Yi yi.zhang@huawei.com
drivers/md/dm-rq.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
Looks good to me