]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChristian Brauner <brauner@kernel.org>
Mon, 7 Apr 2025 13:22:25 +0000 (15:22 +0200)
commita94fd938df2b1628da66b498aa0eeb89593bc7a2
tree20c192400aa3ee173f89d1f767268e13b538a3f0
parentcfa5f336bdbde49cf0102ab55007b34361988fd1
virtiofs: add filesystem context source name check

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>
fs/fuse/virtio_fs.c