All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-block@vger.kernel.org,
	syzbot+6448f3c229bc52b82f69@syzkaller.appspotmail.com
Subject: Re: [PATCH] block: fix locking in bdev_del_partition
Date: Tue, 1 Sep 2020 08:35:55 -0600	[thread overview]
Message-ID: <82949f33-65b4-4cd6-92be-5c44fe4f4d9c@kernel.dk> (raw)
In-Reply-To: <20200901095941.2626957-1-hch@lst.de>

On 9/1/20 3:59 AM, Christoph Hellwig wrote:
> We need to hold the whole device bd_mutex to protect against
> other thread concurrently deleting out partition before we get
> to it, and thus causing a use after free.

Applied, fixed up an extra space while doing so.

-- 
Jens Axboe


  reply	other threads:[~2020-09-01 14:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-01  9:59 [PATCH] block: fix locking in bdev_del_partition Christoph Hellwig
2020-09-01 14:35 ` Jens Axboe [this message]
2020-09-11 14:56 Dmitriy Gorokh
2020-09-11 14:58 ` Christoph Hellwig

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=82949f33-65b4-4cd6-92be-5c44fe4f4d9c@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    --cc=syzbot+6448f3c229bc52b82f69@syzkaller.appspotmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.