Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Xiao Ni <xni@redhat.com>
To: song@kernel.org
Cc: linux-raid@vger.kernel.org, ncroxon@redhat.com,
	heinzm@redhat.com, ffan@redhat.com
Subject: [PATCH 0/2] md: reshape from raid0 to raid10 panic
Date: Thu, 12 May 2022 17:21:07 +0800	[thread overview]
Message-ID: <20220512092109.41606-1-xni@redhat.com> (raw)

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)


             reply	other threads:[~2022-05-12  9:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-12  9:21 Xiao Ni [this message]
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

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=20220512092109.41606-1-xni@redhat.com \
    --to=xni@redhat.com \
    --cc=ffan@redhat.com \
    --cc=heinzm@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=ncroxon@redhat.com \
    --cc=song@kernel.org \
    /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