nuttx/fs
Marco Casaroli 506a69a03d fs/v9fs: Do not parse past the end of the mount options.
v9fs_client_init() steps over each option with "options += length + 1",
to skip the comma after it.  The last option has no comma, so the step
goes past the terminating NUL, and the loop parses the memory after the
string as more options.  If that memory has a "trans=" or "uname=", it
replaces the option given.

For example, NSH keeps the next argument after the options:

  nsh> mount -t v9fs -o trans=virtio,tag=host trans=x /mnt
  nsh: mount: mount failed: 2

The parser reads "trans=x", and there is no transport "x".  The same
thing happens to options in .rodata, as CONFIG_INIT_MOUNT_DATA is.

Skip the comma only when there is one.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-10-08 13:29:48 +08:00
..
aio fs/aio: raise the default AIO_LISTIO_MAX so LTP keeps passing 2026-09-14 17:12:49 -03:00
binfs sched,fs,docs: support setuid sudo helper 2026-08-18 15:57:52 +08:00
cromfs fs/cromfs: Fix stale cache read in read() fast path. 2026-08-12 12:12:46 -03:00
driver fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
event fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
fat fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
hostfs fs: remove redundant ".." handling after VFS canonicalization 2026-08-28 23:07:24 +08:00
inode fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
littlefs fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
mmap !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
mnemofs sched/semaphore: Remove the return value check of nxsem_init/nxmutex_init 2026-09-25 10:37:43 +02:00
mount docs: document chroot jail root 2026-09-20 22:27:38 +08:00
mqueue fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
nfs !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
nxffs fs/vfs: Add ioctldir for volume ioctls via the mountpoint directory. 2026-07-25 07:28:22 -03:00
partition fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
procfs fs/procfs: fix incorrect environ read for another task under CONFIG_ARCH_ADDRENV 2026-07-11 12:43:10 -03:00
romfs fs/romfs: reject negative resulting position in romfs_seek() 2026-08-21 02:20:33 +08:00
rpmsgfs fs: remove redundant ".." handling after VFS canonicalization 2026-08-28 23:07:24 +08:00
semaphore fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
shm fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
smartfs fs/smartfs: mask reserved flags from stat mode. 2026-10-07 13:28:02 -03:00
socket include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
spiffs !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
tmpfs fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
unionfs fs: start absolute lookups at the jail root 2026-09-20 22:27:38 +08:00
userfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
v9fs fs/v9fs: Do not parse past the end of the mount options. 2026-10-08 13:29:48 +08:00
vfs fs: add chroot() syscall 2026-09-20 22:27:38 +08:00
xipfs libs/libc/elf: Place an FDPIC object's segments independently. 2026-09-08 16:31:16 -03:00
zipfs sched/semaphore: Fix pre-existing nxstyle issues in the touched files 2026-09-25 10:37:43 +02:00
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_heap.c mm/mm_heap: use struct mm_heap_config_s to init the memory heap 2026-01-19 14:18:27 +08:00
fs_heap.h fs_heap:add fs_heap_mallinfo_task 2025-01-15 17:12:50 +08:00
fs_initialize.c fs: Move inotify.c from fs/notify/ to fs/vfs/ 2025-06-23 18:17:10 -03:00
Kconfig fs: add chroot() syscall 2026-09-20 22:27:38 +08:00
Makefile fs/xipfs: Add a contiguous execute-in-place file system. 2026-07-29 07:49:03 -03:00