clone3: ensure copy_thread_tls is implemented
authorAmanieu d'Antras <amanieu@gmail.com>
Thu, 2 Jan 2020 17:24:13 +0000 (18:24 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 7 Jan 2020 12:31:27 +0000 (13:31 +0100)
commitdd499f7a7e34270208350a849ef103c0b3ae477f
treee370cb5daf72a7c78b1bac17d02ed4f4554f749a
parentc346b94f8c5d1b7d637522c908209de93305a8eb
clone3: ensure copy_thread_tls is implemented

copy_thread implementations handle CLONE_SETTLS by reading the TLS
value from the registers containing the syscall arguments for
clone. This doesn't work with clone3 since the TLS value is passed
in clone_args instead.

Signed-off-by: Amanieu d'Antras <amanieu@gmail.com>
Cc: <stable@vger.kernel.org> # 5.3.x
Link: https://lore.kernel.org/r/20200102172413.654385-8-amanieu@gmail.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
kernel/fork.c