diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-04-12 19:22:33 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-04-12 19:22:33 +0200 |
commit | d7ad0581567927c433918bb5f06f3d29f89807d3 (patch) | |
tree | 6a0d04184e3904cce3550c735fc5ebb942e1b768 /drivers | |
parent | Merge tag 'io_uring-6.9-20240412' of git://git.kernel.dk/linux (diff) | |
parent | block: fix that blk_time_get_ns() doesn't update time after schedule (diff) | |
download | linux-d7ad0581567927c433918bb5f06f3d29f89807d3.tar.xz linux-d7ad0581567927c433918bb5f06f3d29f89807d3.zip |
Merge tag 'block-6.9-20240412' of git://git.kernel.dk/linux
Pull block fixes from Jens Axboe:
- MD pull request via Song:
- UAF fix (Yu)
- Avoid out-of-bounds shift in blk-iocost (Rik)
- Fix for q->blkg_list corruption (Ming)
- Relax virt boundary mask/size segment checking (Ming)
* tag 'block-6.9-20240412' of git://git.kernel.dk/linux:
block: fix that blk_time_get_ns() doesn't update time after schedule
block: allow device to have both virt_boundary_mask and max segment size
block: fix q->blkg_list corruption during disk rebind
blk-iocost: avoid out of bounds shift
raid1: fix use-after-free for original bio in raid1_write_request()
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index be8ac24f50b6..7b8a71ca66dd 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1558,7 +1558,7 @@ static void raid1_write_request(struct mddev *mddev, struct bio *bio, for (j = 0; j < i; j++) if (r1_bio->bios[j]) rdev_dec_pending(conf->mirrors[j].rdev, mddev); - free_r1bio(r1_bio); + mempool_free(r1_bio, &conf->r1bio_pool); allow_barrier(conf, bio->bi_iter.bi_sector); if (bio->bi_opf & REQ_NOWAIT) { |