nuttx/fs
Lwazi Dube 7e0f282718 fs/vfs: allow NULL iov_base in KERNEL build with zero-based text
This commit fixes a regression introduced by
89df084b0e. That commit
added a check to ensure iov_base is not NULL, assuming NULL
always represents an inaccessible address.

However, in CONFIG_BUILD_KERNEL mode where CONFIG_ARCH_TEXT_VBASE
is set to 0, address zero is a valid virtual address for the
user-space text segment. The previous check caused libelf to
fail with -EFAULT when attempting to load ELF program headers
into the base of the user address space.

This patch wraps the safety check in a conditional to ensure it is
only executed when address zero is not considered a valid
executable base.

Signed-off-by: Lwazi Dube <lwazeh@gmail.com>
2026-05-06 01:37:53 +08:00
..
aio include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
cromfs style: fix checkpatch issues after debug.h move 2026-04-07 07:50:06 -03:00
driver style: fix checkpatch issues after debug.h move 2026-04-07 07:50:06 -03:00
event fs/event/open: fix the inode information update outside of lock 2026-01-28 10:03:06 +08:00
fat fs/fat: fix incorrect representation of SFN files created on Linux 2026-04-14 09:51:20 +08:00
hostfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
inode fs/inode: add optional manual FD backtrace control via task group flag 2026-04-28 09:53:27 +02:00
littlefs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mmap include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mnemofs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mount include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mqueue include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nxffs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
partition include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
procfs fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00
romfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
rpmsgfs fs: rpmsgfs_client: add init message to unlock semaphore 2026-04-09 14:07:06 +08:00
semaphore fs/semaphore/open: fix the inode information update outside of lock 2026-01-28 10:03:06 +08:00
shm fs/inode: use file_allocate,file_dup to avoid racecondition to allocate fd 2026-01-09 17:11:25 +08:00
smartfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
socket include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
spiffs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
tmpfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
unionfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
userfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
v9fs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
vfs fs/vfs: allow NULL iov_base in KERNEL build with zero-based text 2026-05-06 01:37:53 +08:00
zipfs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08: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 Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00
Makefile Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00