walnux/binfmt
Ville Juven 4c1b66246d env_dup: Fix copying of env between address environments
If address environments are in use, it is not possible to simply
memcpy from from one process to another. The current implementation
of env_dup does precisely this and thus, it fails at once when it is
attempted between two user processes.

The solution is to use the kernel's heap as an intermediate buffer.
This is a simple, effective and common way to do a fork().

Obviously this is not needed for kernel processes.
2022-04-21 18:38:37 +08:00
..
libelf Fix libelf/libelf_coredump.c:234:7: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 31 2022-03-22 08:37:33 +02:00
libnxflat net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code 2022-01-18 10:59:47 +01:00
binfmt.h env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
binfmt_copyargv.c binfmt: Move argv copy into exec_module 2021-06-02 15:20:38 +09:00
binfmt_coredump.c binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00
binfmt_dumpmodule.c binfmt: Remove filename/exports/nexports from binary_s 2021-06-02 15:20:38 +09:00
binfmt_exec.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
binfmt_execmodule.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
binfmt_execsymtab.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_exit.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_globals.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_initialize.c binfmt: Decouple builtin from binfs file system 2022-02-14 09:35:35 -03:00
binfmt_loadmodule.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
binfmt_register.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_unloadmodule.c binfmt: Replace all nx_ API with file_ API 2021-07-06 11:18:13 +09:00
binfmt_unregister.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
builtin.c binfmt: Decouple builtin from binfs file system 2022-02-14 09:35:35 -03:00
elf.c binfmt/libelf: Implement sh_addralign handling 2022-01-28 16:23:23 +08:00
Kconfig Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
Makefile binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00
nxflat.c binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00