nuttx/fs/vfs
ywhkkx 1ceda8c02f
Some checks are pending
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
fs/pseudofile: fix buffer sizing and sparse growth.
Grow the in-memory pseudofile buffer by doubling instead of
1<<LOG2_CEIL, which can under-allocate on 32-bit targets for large
expand sizes. Also:
* reject size_t wrap before expand on write (-EFBIG)
* clear newly addressed bytes when the file grows
* route truncate growth through the same expand path

Impact: CONFIG_PSEUDOFS_FILE expand/write/truncate only; no API or
build-system change.

Testing: host arithmetic PoC blocked; WSL sim:pseudofile-poc
(SIM_M32+KASAN) write returns -ENOMEM instead of SIGSEGV in memcpy.

Signed-off-by: ywhkkx <2076064543@qq.com>
2026-08-07 10:49:43 -04:00
..
CMakeLists.txt fs/vfs: provide link fallback without softlinks 2026-06-25 09:30:09 +08:00
fs_chstat.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_close.c fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00
fs_dir.c fs/vfs: Add ioctldir for volume ioctls via the mountpoint directory. 2026-07-25 07:28:22 -03:00
fs_dup.c fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
fs_dup2.c fs/vfs: fix bug about lost dup oflags in dup2 2025-07-15 19:46:24 +08:00
fs_dup3.c fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
fs_epoll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_eventfd.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_fchstat.c fs: Move inotify.c from fs/notify/ to fs/vfs/ 2025-06-23 18:17:10 -03:00
fs_fcntl.c fs/fcntl: using ioctl to implement FIOGCLEX/FIOCLEX/FIONCLEX 2025-06-15 07:12:44 -03:00
fs_fstat.c fs/vfs/fs_fstat.c: fix write capability check in proxy_fstat() 2026-04-16 13:35:41 +02:00
fs_fstatfs.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_fsync.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_inotify.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
fs_ioctl.c fs/vfs: Rename lock.h to vfs.h 2025-06-23 18:17:10 -03:00
fs_link.c fs/vfs: provide link fallback without softlinks 2026-06-25 09:30:09 +08:00
fs_lock.c fs/vfs/fs_lock.c: support flock for SHM driver 2026-06-11 09:10:50 +08:00
fs_lseek.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_mkdir.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_open.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_poll.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
fs_pread.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_profile.c fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00
fs_pseudofile.c fs/pseudofile: fix buffer sizing and sparse growth. 2026-08-07 10:49:43 -04:00
fs_pwrite.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_read.c drivers/eeprom: I2C EEPROM Read/Write Kernel Operations Cause a Device Crash 2026-07-20 10:02:21 +02:00
fs_readlink.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_rename.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_rmdir.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_select.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_sendfile.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_signalfd.c include/fcntl.h: remove O_RDOK/O_WROK aliases 2026-06-28 09:10:11 -03:00
fs_stat.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_statfs.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_symlink.c fs/vfs/symlink: fix the inode information update outside of lock 2026-01-28 10:03:06 +08:00
fs_syncfs.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_timerfd.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
fs_truncate.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
fs_uio.c fs/uio: do not overwrite the return value 2025-01-22 16:45:46 +08:00
fs_unlink.c fs: enforce path search and unify inode permission helpers 2026-08-02 18:48:40 -03:00
fs_write.c !include/fcntl.h: align open flags with Linux values 2026-06-30 13:43:44 +08:00
Kconfig fs/inode: add optional manual FD backtrace control via task group flag 2026-04-28 09:53:27 +02:00
Make.defs fs/vfs: provide link fallback without softlinks 2026-06-25 09:30:09 +08:00
vfs.h fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00