mbox series

[0/2] fix request uaf in nbd_read_stat()

Message ID 20210808031752.579882-1-yukuai3@huawei.com (mailing list archive)
Headers show
Series fix request uaf in nbd_read_stat() | expand

Message

Yu Kuai Aug. 8, 2021, 3:17 a.m. UTC
Yu Kuai (2):
  blk-mq: add two interfaces to lock/unlock blk_mq_tags->lock
  nbd: hold tags->lock to prevent access freed request through
    blk_mq_tag_to_rq()

 block/blk-mq-tag.c     | 12 ++++++++++++
 drivers/block/nbd.c    | 22 ++++++++++++++++------
 include/linux/blk-mq.h |  2 ++
 3 files changed, 30 insertions(+), 6 deletions(-)