]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
clone3: ensure copy_thread_tls is implemented
authorAmanieu d'Antras <amanieu@gmail.com>
Thu, 2 Jan 2020 17:24:13 +0000 (18:24 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commita47781f05480ae7f2f24ad27fa294da9024838ed
tree27d3a3ea2ba119f1828e45f6bc101c498f82a88f
parentc111140ad248f158264d7e39a27fe21598beada5
clone3: ensure copy_thread_tls is implemented

BugLink: https://bugs.launchpad.net/bugs/1862227
commit dd499f7a7e34270208350a849ef103c0b3ae477f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
kernel/fork.c