]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
virtiofs: add filesystem context source name check
authorXiangsheng Hou <xiangsheng.hou@mediatek.com>
Mon, 7 Apr 2025 11:50:49 +0000 (19:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:39:21 +0000 (07:39 +0200)
commitb84f13fdad10a543e2e65bab7e81b3f0bceabd67
treef2abf24d725b853b2fc21f57bf8c9a062b5678f3
parent801246895f91e8bfb53609896c83a5312df84df1
virtiofs: add filesystem context source name check

commit a94fd938df2b1628da66b498aa0eeb89593bc7a2 upstream.

In certain scenarios, for example, during fuzz testing, the source
name may be NULL, which could lead to a kernel panic. Therefore, an
extra check for the source name should be added.

Fixes: a62a8ef9d97d ("virtio-fs: add virtiofs filesystem")
Cc: <stable@vger.kernel.org> # all LTS kernels
Signed-off-by: Xiangsheng Hou <xiangsheng.hou@mediatek.com>
Link: https://lore.kernel.org/20250407115111.25535-1-xiangsheng.hou@mediatek.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fuse/virtio_fs.c