[PATCH RESEND v2 05/51] xtensa: simdisk: remove the proc entry before the disk
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 11:28:56 PST 2026
> simdisk_teardown() frees the gendisk and only then removes
> /proc/simdisk/<n>. A write to that entry in between attaches the file
> that was written to the disk, and simdisk_attach() sets the capacity of
> the gendisk that is gone. Remove the entry first, remove_proc_entry()
> waits for a writer that is in the middle of that.
>
> Fixes: b6c7e873daf7 ("xtensa: ISS: add host file-based simulated disk")
> Cc: stable at vger.kernel.org
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-bugfixes-v2-0-021c84d852e0@kernel.org?part=5
More information about the kexec
mailing list