]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/mm: fix deadlock for fork after pthread_create on ARM
authorEdward Liaw <edliaw@google.com>
Thu, 3 Oct 2024 21:17:11 +0000 (21:17 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 17 Oct 2024 07:28:06 +0000 (00:28 -0700)
commite142cc87ac4ec618f2ccf5f68aedcd6e28a59d9d
tree6e9f811f617b6d76045b48fd64f5d1547e919428
parente61ef21e27e8deed8c474e9f47f4aa7bc37e138c
selftests/mm: fix deadlock for fork after pthread_create on ARM

On Android with arm, there is some synchronization needed to avoid a
deadlock when forking after pthread_create.

Link: https://lkml.kernel.org/r/20241003211716.371786-3-edliaw@google.com
Fixes: cff294582798 ("selftests/mm: extend and rename uffd pagemap test")
Signed-off-by: Edward Liaw <edliaw@google.com>
Cc: Lokesh Gidra <lokeshgidra@google.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-unit-tests.c