linux-user: Emulate CLONE_PIDFD flag in clone()
commit895ce8bb534e66ca418dea62ae67a92dccafb2e1
authorHelge Deller <deller@gmx.de>
Tue, 29 Nov 2022 11:08:20 +0000 (29 12:08 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 10 Mar 2023 19:45:47 +0000 (10 20:45 +0100)
tree6d9292795056aa8d2650f34ad0837dfa64046fba
parentfe080593dd4f2c2763f7c27a3ba6e69b64fe3b0c
linux-user: Emulate CLONE_PIDFD flag in clone()

Add emulation for the CLONE_PIDFD flag of the clone() syscall.
This flag was added in Linux kernel 5.2.

Successfully tested on a x86-64 Linux host with hppa-linux target.
Can be verified by running the testsuite of the qcoro debian package,
which breaks hard and kills the currently logged-in user without this
patch.

Signed-off-by: Helge Deller <deller@gmx.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <Y4XoJCpvUA1JD7Sj@p100>
[lv: define CLONE_PIDFD if it is not]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/strace.c
linux-user/syscall.c