Linux RAID subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] md: reshape from raid0 to raid10 panic
@ 2022-05-12  9:21 Xiao Ni
  2022-05-12  9:21 ` [PATCH V2 1/2] md: Don't set mddev private to NULL in raid0 pers->free Xiao Ni
  2022-05-12  9:21 ` [PATCH 2/2] md: Double free io_acct_set bioset Xiao Ni
  0 siblings, 2 replies; 4+ messages in thread
From: Xiao Ni @ 2022-05-12  9:21 UTC (permalink / raw)
  To: song; +Cc: linux-raid, ncroxon, heinzm, ffan

It panic when reshaping from raid0 to other raid levels because of NULL
pointer dereference. This problem is introduce by patch
commit 0c031fd37f69 ("md: Move alloc/free acct bioset in to personality") 

Patch2 fixes a doulbe free memory problem introduced by the above patch.

Xiao Ni (2):
  md: Don't set mddev private to NULL in raid0 pers->free
  md: Double free io_acct_set bioset

 drivers/md/md.c    | 4 ----
 drivers/md/raid0.c | 1 -
 2 files changed, 5 deletions(-)

-- 
2.32.0 (Apple Git-132)


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

end of thread, other threads:[~2022-05-12 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-12  9:21 [PATCH 0/2] md: reshape from raid0 to raid10 panic Xiao Ni
2022-05-12  9:21 ` [PATCH V2 1/2] md: Don't set mddev private to NULL in raid0 pers->free Xiao Ni
2022-05-12  9:21 ` [PATCH 2/2] md: Double free io_acct_set bioset Xiao Ni
2022-05-12 16:26   ` Song Liu

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