linux-yocto/fs/hostfs
Hongbo Li 2c2b67af5f
hostfs: Fix only passing host root in boot stage with new mount
In the old mount proceedure, hostfs could only pass root directory during
boot. This is because it constructed the root directory using the @root_ino
event without any mount options. However, when using it with the new mount
API, this step is no longer triggered. As a result, if users mounts without
specifying any mount options, the @host_root_path remains uninitialized. To
prevent this issue, the @host_root_path should be initialized at the time
of allocation.

Reported-by: Geoffrey Thorpe <geoff@geoffthorpe.net>
Closes: https://lore.kernel.org/all/643333a0-f434-42fb-82ac-d25a0b56f3b7@geoffthorpe.net/
Fixes: cd140ce9f6 ("hostfs: convert hostfs to use the new mount API")
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://patch.msgid.link/20251011092235.29880-1-lihongbo22@huawei.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-10-21 14:22:42 +02:00
..
hostfs_kern.c hostfs: Fix only passing host root in boot stage with new mount 2025-10-21 14:22:42 +02:00
hostfs_user_exp.c um: hostfs: define our own API boundary 2023-04-20 23:04:40 +02:00
hostfs_user.c um: hostfs: avoid issues on inode number reuse by host 2025-03-18 11:04:13 +01:00
hostfs.h um: hostfs: avoid issues on inode number reuse by host 2025-03-18 11:04:13 +01:00
Makefile um: hostfs: define our own API boundary 2023-04-20 23:04:40 +02:00