Linux block layer
 help / color / mirror / Atom feed
* [GIT PULL] md-7.4-20261013
@ 2026-10-13 14:12 Yu Kuai
  2026-10-25  3:01 ` yu kuai
  0 siblings, 1 reply; 3+ messages in thread
From: Yu Kuai @ 2026-10-13 14:12 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Yu Kuai, linux-raid, linux-block, Cao Guanghui, Chandradhar Kumar,
	Chen Cheng, Jack Wang, Jérémy Jean, Li Youhong,
	Martin Wilck, Nguyen Ngoc Thang, Peng Fan, Sang-Hoon Choi,
	Yogesh Gaur, Yuchao Zhang, Zhihao Cheng, Zizhi Wo

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(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] md-7.4-20261013
  2026-10-13 14:12 [GIT PULL] md-7.4-20261013 Yu Kuai
@ 2026-10-25  3:01 ` yu kuai
  2026-10-25  3:07   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: yu kuai @ 2026-10-25  3:01 UTC (permalink / raw)
  To: Yu Kuai, Jens Axboe, yu kuai
  Cc: linux-raid, linux-block, Cao Guanghui, Chandradhar Kumar,
	Chen Cheng, Jack Wang, Jérémy Jean, Li Youhong,
	Martin Wilck, Nguyen Ngoc Thang, Peng Fan, Sang-Hoon Choi,
	Yogesh Gaur, Yuchao Zhang, Zhihao Cheng, Zizhi Wo

Hi Jens

在 2026/10/13 22:12, Yu Kuai 写道:
> Hi Jens,
>
> Please consider pulling the following changes into your for-7.4/block
> branch.

Looks like this pr is missing for 7.4, should I regenerate it for block-7.4
later?

>
> 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(-)

-- 
Thanks,
Kuai

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] md-7.4-20261013
  2026-10-25  3:01 ` yu kuai
@ 2026-10-25  3:07   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2026-10-25  3:07 UTC (permalink / raw)
  To: yukuai, Yu Kuai
  Cc: linux-raid, linux-block, Cao Guanghui, Chandradhar Kumar,
	Chen Cheng, Jack Wang, Jérémy Jean, Li Youhong,
	Martin Wilck, Nguyen Ngoc Thang, Peng Fan, Sang-Hoon Choi,
	Yogesh Gaur, Yuchao Zhang, Zhihao Cheng, Zizhi Wo

On 10/24/26 9:01 PM, yu kuai wrote:
> Hi Jens
> 
> ? 2026/10/13 22:12, Yu Kuai ??:
>> Hi Jens,
>>
>> Please consider pulling the following changes into your for-7.4/block
>> branch.
> 
> Looks like this pr is missing for 7.4, should I regenerate it for block-7.4
> later?

Oops, pulled now, it'll make 7.4, don't worry.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-25  3:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 14:12 [GIT PULL] md-7.4-20261013 Yu Kuai
2026-10-25  3:01 ` yu kuai
2026-10-25  3:07   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox