Description: Change how stack grows on HPPA. On HPPA stack grows upwards. This patch introduces this change for this 3rd party code. Author: John David Anglin Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1042018 Reviewed-by: Lisandro Damián Nicanor Pérez Meyer Last-Update: 2023-07-28 --- src/3rdparty/forkfd/forkfd_linux.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/src/3rdparty/forkfd/forkfd_linux.c +++ b/src/3rdparty/forkfd/forkfd_linux.c @@ -169,7 +169,12 @@ int system_vforkfd(int flags, pid_t *ppi } *system = 1; +#if defined(__hppa__) + /* Stack grows up */ + pid = clone(childFn, childStack, cloneflags, token, &pidfd, NULL, NULL); +#else pid = clone(childFn, childStack + sizeof(childStack), cloneflags, token, &pidfd, NULL, NULL); +#endif if (pid < 0) return pid; if (ppid)