diff options
| author | Kanchan Joshi <joshi.k@samsung.com> | 2026-08-18 11:32:53 +0530 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-08-19 07:48:26 -0700 |
| commit | 56e1c6bbe4bb084d7ecf61698afdf70be23dd35f (patch) | |
| tree | d7a6e676eb41b3df23fb7e2f770bb26c38796a93 /scripts | |
| parent | c1888444dc28310222dcc6e5c301d60d0943787f (diff) | |
| download | linux-56e1c6bbe4bb084d7ecf61698afdf70be23dd35f.tar.gz linux-56e1c6bbe4bb084d7ecf61698afdf70be23dd35f.zip | |
nvme: fix racy access to FDP placement id array
nvme_query_fdp_info() is called per-path and therefore prone to races.
It populates head->nr_plids/head->plids for fdp registration.
But nothing protects that pair from concurrent access - two paths scanning
the same namespace can race to populate it.
Avoid the race by moving this initialization work to nvme_alloc_ns_head()
which is called once per shared namespace.
Fixes: 30b5f20bb2dd ("nvme: register fdp parameters with the block layer")
Reported-by: Hari Mishal <harimishal1@gmail.com>
Link: https://lore.kernel.org/linux-nvme/20260725135111.14041-2-harimishal1@gmail.com/
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
