Re: [PATCH] dax/bus: Fix size_store() error path locking

From: Alison Schofield

Date: Wed Dec 02 2026 - 19:37:46 EST


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 ]