Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Reported-by: Chen Linxuan <chenlinxuan@uniontech.com>
Message-ID: <
647EBDB1A8DE7507+
20250121031351.548052-1-chenlinxuan@uniontech.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]);
if (pid == \-1)
err(EXIT_FAILURE, "clone");
+ if (munmap(stack, STACK_SIZE))
+ err(EXIT_FAILURE, "munmap");
printf("clone() returned %jd\[rs]n", (intmax_t) pid);
\&
/* Parent falls through to here */