On Wed, 04 Oct 2023 11:37:57 +0200, Jan Kara wrote: > Coverity has noticed that the printing of error message in > register_cache() uses already freed bdev_handle to get to bdev. In fact > the problem has been there even before commit "bcache: Convert to > bdev_open_by_path()" just a bit more subtle one - cache object itself > could have been freed by the time we looked at ca->bdev and we don't > hold any reference to bdev either so even that could in principle go > away (due to device unplug or similar). Fix all these problems by > printing the error message before closing the bdev. > > [...] Applied to the vfs.super branch of the vfs/vfs.git tree. Patches in the vfs.super branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.super [1/1] bcache: Fixup error handling in register_cache() https://git.kernel.org/vfs/vfs/c/cc82d9a7a3d0