Linux RAID subsystem development
 help / color / mirror / Atom feed
* [5.15.y] Request to backport c567c86b90d4 (md/raid10 fstrim kernel crash)
@ 2026-10-26 16:51 EOS - Manlio Morini
  2026-10-26 22:55 ` Sasha Levin
  0 siblings, 1 reply; 2+ messages in thread
From: EOS - Manlio Morini @ 2026-10-26 16:51 UTC (permalink / raw)
  To: stable; +Cc: linux-raid

Hello,

I'd like to request the backport of the following upstream commit to the 
Linux 5.15.y stable series:

---

c567c86b90d4715081adfe5eb812141a5b6b4883
md: move initialization and destruction of 'io_acct_set' to md.c

---

The regression was introduced in 5.15.181 by commit 4a05f7ae3371 
("md/raid10: fix missing discard IO accounting"), which depends on the 
above commit.

Without this prerequisite, running fstrim on an MD RAID10 array can 
cause a NULL pointer dereference and crash the kernel.

I have reproduced this crash on my Slackware workstation running Linux 
5.15.223.

The issue was independently investigated and fixed by Canonical in 
Ubuntu's 5.15 kernel:

* https://bugs.launchpad.net/bugs/2117395

*https://lists.ubuntu.com/archives/kernel-team/2025-July/161560.html

The prerequisite was also backported to the Linux 6.1.y stable series:

* https://lists.openwall.net/linux-kernel/2025/05/06/1629

My original report:

* 
https://blog.eosdev.it/2025/07/attenzione-fstrim-su-raid-10-crash-del.html

Since this is a reproducible kernel crash caused by a missing dependency 
of an already backported commit, could the necessary fix also be 
considered for the 5.15.y stable series?

Thank you for your work on maintaining the stable kernels.

Best regards,
Manlio Morini


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

* Re: [5.15.y] Request to backport c567c86b90d4 (md/raid10 fstrim kernel crash)
  2026-10-26 16:51 [5.15.y] Request to backport c567c86b90d4 (md/raid10 fstrim kernel crash) EOS - Manlio Morini
@ 2026-10-26 22:55 ` Sasha Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-10-26 22:55 UTC (permalink / raw)
  To: stable; +Cc: Sasha Levin, linux-raid, EOS - Manlio Morini

> I'd like to request the backport of the following upstream commit to the
> Linux 5.15.y stable series:
>
> c567c86b90d4715081adfe5eb812141a5b6b4883
> md: move initialization and destruction of 'io_acct_set' to md.c

Queued for 5.15, thanks. The io_acct_set exit went into md_stop() and
md_free() rather than __md_stop(), since that is where 5.15 tears down the
other biosets.

-- 
Thanks,
Sasha

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

end of thread, other threads:[~2026-10-26 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26 16:51 [5.15.y] Request to backport c567c86b90d4 (md/raid10 fstrim kernel crash) EOS - Manlio Morini
2026-10-26 22:55 ` Sasha Levin

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