Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Yu Kuai <yukuai@kernel.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: "Yu Kuai" <yukuai@fygo.io>,
	linux-raid@vger.kernel.org, linux-block@vger.kernel.org,
	"Cao Guanghui" <caoguanghui@kylinos.cn>,
	"Chandradhar Kumar" <chandradhar.2003@gmail.com>,
	"Chen Cheng" <chencheng@fnnas.com>,
	"Jack Wang" <jinpu.wang@cloud.ionos.com>,
	"Jérémy Jean" <Jeremy.Jean@oss.cyber.gouv.fr>,
	"Li Youhong" <liyouhong@kylinos.cn>,
	"Martin Wilck" <martin.wilck@suse.com>,
	"Nguyen Ngoc Thang" <ngocthang2710.1999@gmail.com>,
	"Peng Fan" <peng.fan@nxp.com>,
	"Sang-Hoon Choi" <csh0052@gmail.com>,
	"Yogesh Gaur" <yogeshgaur.83@gmail.com>,
	"Yuchao Zhang" <ndaugoing@gmail.com>,
	"Zhihao Cheng" <chengzhihao1@huawei.com>,
	"Zizhi Wo" <wozizhi@huawei.com>
Subject: [GIT PULL] md-7.4-20261013
Date: Tue, 13 Oct 2026 22:12:39 +0800	[thread overview]
Message-ID: <20261013141241.2257621-1-yukuai@kernel.org> (raw)

Hi Jens,

Please consider pulling the following changes into your for-7.4/block
branch.

This pull request contains:

Bug Fixes:
- Wake RAID10 barrier waiters when a pending-count rollback satisfies
  an active array freeze. (Zizhi Wo)
- Reject v0.90 superblocks whose device count cannot fit the metadata
  format, preventing out-of-bounds access. (Jérémy Jean)
- Track RAID5 disk-array allocation size and avoid removing an
  unregistered CPU hotplug instance on setup or resize failure.
  (Cao Guanghui)
- Validate the RAID0 device count before allocating its device list.
  (Chandradhar Kumar)
- Validate RAID5 journal payload header, size, and checksum bounds
  before accessing them. (Martin Wilck)
- Reject inconsistent RAID5 reshape metadata instead of triggering a
  kernel BUG. (Yogesh Gaur)
- Reject invalid RAID4/5 disk counts before setup and invalid reshape
  disk counts in raid5_run. (Chen Cheng)
- Fix a NULL-pointer dereference in RAID5 setup error handling.
  (Zhihao Cheng)
- Reject RAID5 per-device sizes smaller than one chunk. (Zizhi Wo)
- Fix mddev_unlock() on an unacquired mutex in lbs_store().
  (Jack Wang)
- Give RAID5 io_unit slab caches per-array names to avoid duplicate
  cache names. (Yogesh Gaur)
- Validate v1.x bad-block log size when loading superblocks.
  (Yuchao Zhang)
- Take reconfig_mutex while enabling PPL on an inactive array to
  prevent a NULL PPL configuration. (Nguyen Ngoc Thang)
- Drain released RAID5 stripes before destroying the stripe cache on
  takeover setup failure. (Li Youhong)
- Protect RAID5 big_stripe_tree lookup with RCU. (Sang-Hoon Choi)
- Prevent a NULL mddev->private dereference when stopping an array
  while I/O is being submitted. (Zhihao Cheng)
- Don't publish an md array before md_alloc() finishes initializing
  mddev->kobj. (Yogesh Gaur)

Cleanups:
- Annotate intentional lockless RAID10 freeze-state accesses.
  (Zizhi Wo)
- Add shared RAID write-error and bad-block-sector helpers, and share
  flush_bio_list between RAID1 and RAID10. (Li Youhong)
- Extract RAID5 min_raid_disks() helper. (Chen Cheng)
- Use assign_bit() where applicable in MD/RAID. (Peng Fan)

Thanks,
Kuai

---

The following changes since commit 85bffad4d2fea373a72d68bed8012e8cbccb8ee7:

  block: simplify disk_zone_set_cond() (2026-09-15 06:53:06 -0600)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/mdraid/linux.git tags/md-7.4-20261013

for you to fetch changes up to d1472ca2ca5de8ecd2b358411eb14c031404ecf0:

  md: don't hand out the array before md_alloc() has added mddev->kobj (2026-10-09 11:52:58 +0800)

----------------------------------------------------------------
Cao Guanghui (2):
      md/raid5: track disks array size to fix extra_page leak on error paths
      md/raid5: fix NULL pointer dereference in raid5_free_percpu

Chandradhar Kumar (1):
      md/raid0: validate device count before allocating devlist

Chen Cheng (3):
      md/raid5: reject raid4/5 arrays with too few disks
      md/raid5: extract min_raid_disks()
      md/raid5: reject invalid reshape disks in raid5_run()

Jack Wang (1):
      md: fix mddev_unlock() called without holding lock in lbs_store()

Jérémy Jean (1):
      md: reject v0.90 arrays with too many devices

Li Youhong (4):
      md: add rdev_record_write_error() helper
      md/raid1-10: add rdev_bb_block_sectors() helper
      md/raid1-10: share flush_bio_list between raid1 and raid10
      md/raid5: drain released_stripes before destroying the cache

Martin Wilck (1):
      md/raid5: validate payload size before calculating payload_len

Nguyen Ngoc Thang (1):
      md: take reconfig_mutex when enabling PPL on an inactive array

Peng Fan (1):
      md/raid: use assign_bit() where applicable

Sang-Hoon Choi (1):
      md/raid5: protect big_stripe_tree lookup with RCU

Yogesh Gaur (3):
      md/raid5: don't BUG() on an inconsistent reshape state from the superblock
      md/raid5: give the io_unit slab caches per-array names
      md: don't hand out the array before md_alloc() has added mddev->kobj

Yuchao Zhang (1):
      md: validate bblog_size when loading v1.x badblocks metadata

Zhihao Cheng (2):
      md/raid5: setup_conf: Fix null-ptr-def in error handling path
      md: Fix the null-ptr-deref of 'mddev->private' while submitting IO

Zizhi Wo (3):
      md/raid10: annotate lockless access to array_freeze_pending
      md/raid10: fix missing wakeup in wait_barrier_nolock
      md/raid5: reject a per-device size smaller than one chunk

 drivers/md/md.c          |  72 ++++++++++++++++++++++----------
 drivers/md/md.h          |   7 ++++
 drivers/md/raid0.c       |  16 ++++---
 drivers/md/raid1-10.c    |  27 ++++++++++++
 drivers/md/raid1.c       |  42 +++----------------
 drivers/md/raid10.c      |  59 ++++++--------------------
 drivers/md/raid5-cache.c |  54 ++++++++++++++++++------
 drivers/md/raid5-ppl.c   |  12 +++++-
 drivers/md/raid5.c       | 106 +++++++++++++++++++++++++++++++++++------------
 drivers/md/raid5.h       |   1 +
 10 files changed, 244 insertions(+), 152 deletions(-)

             reply	other threads:[~2026-10-13 14:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 14:12 Yu Kuai [this message]
2026-10-25  3:01 ` [GIT PULL] md-7.4-20261013 yu kuai
2026-10-25  3:07   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261013141241.2257621-1-yukuai@kernel.org \
    --to=yukuai@kernel.org \
    --cc=Jeremy.Jean@oss.cyber.gouv.fr \
    --cc=axboe@kernel.dk \
    --cc=caoguanghui@kylinos.cn \
    --cc=chandradhar.2003@gmail.com \
    --cc=chencheng@fnnas.com \
    --cc=chengzhihao1@huawei.com \
    --cc=csh0052@gmail.com \
    --cc=jinpu.wang@cloud.ionos.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=liyouhong@kylinos.cn \
    --cc=martin.wilck@suse.com \
    --cc=ndaugoing@gmail.com \
    --cc=ngocthang2710.1999@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=wozizhi@huawei.com \
    --cc=yogeshgaur.83@gmail.com \
    --cc=yukuai@fygo.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox