mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alison Schofield <alison.schofield@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: Vishal Verma <vishal.l.verma@intel.com>,
	Dave Jiang <dave.jiang@intel.com>, <nvdimm@lists.linux.dev>,
	<linux-cxl@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Dan Williams <dan.j.williams@intel.com>
Subject: Re: [PATCH] dax/bus: Fix size_store() error path locking
Date: Wed, 2 Dec 2026 16:37:32 -0800	[thread overview]
Message-ID: <axC5zIb55RFyp5iK@aschofie-mobl2.lan> (raw)
In-Reply-To: <1c8cdb292623bfb846b1b8c7256a1002f7eedd6b.1795994997.git.bvanassche@acm.org>

On Sun, Nov 29, 2026 at 03:29:57PM -0800, Bart Van Assche wrote:
> If down_write_killable(&dax_dev_rwsem) fails, size_store() jumps to the
> err_dev label and calls up_write(&dax_dev_rwsem) on a rwsem it does not
> hold. Jump to err_region instead such that only dax_region_rwsem is
> released on that error path. This locking bug was detected by the Clang
> thread-safety analyzer.

Thanks, applied to libnvdimm-for-next
https://git.kernel.org/nvdimm/nvdimm/c/9e63bbf25119

with [ as: update commit log, including adding user visible impact ]


      parent reply	other threads:[~2026-12-03  0:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 23:29 Bart Van Assche
2026-11-30 23:15 ` Verma, Vishal L
2026-12-01 16:21 ` Dave Jiang
2026-12-03  0:37 ` Alison Schofield [this message]

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=axC5zIb55RFyp5iK@aschofie-mobl2.lan \
    --to=alison.schofield@intel.com \
    --cc=bvanassche@acm.org \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nvdimm@lists.linux.dev \
    --cc=vishal.l.verma@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®