]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
9p: fix /sys/fs/9p/caches overwriting itself
authorRandall P. Embry <rpembry@gmail.com>
Fri, 26 Sep 2025 09:27:30 +0000 (18:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:14 +0000 (12:45 +0100)
commit1831e39b09ce5d9368a7750a217214666ddae55b
tree1e60fc1b596c0f5cec03bdb79b776ccd6a6f3c2b
parent4c821ffa2ab5ef4f5bb9fb37f8902a9d990981fe
9p: fix /sys/fs/9p/caches overwriting itself

[ Upstream commit 86db0c32f16c5538ddb740f54669ace8f3a1f3d7 ]

caches_show() overwrote its buffer on each iteration,
so only the last cache tag was visible in sysfs output.

Properly append with snprintf(buf + count, …).

Signed-off-by: Randall P. Embry <rpembry@gmail.com>
Message-ID: <20250926-v9fs_misc-v1-2-a8b3907fc04d@codewreck.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/9p/v9fs.c