Skip to content

selftests/mm: revert pthread_barrier change and

Edward Liaw linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged mm-hotfixes-stable] selftests-mm-fix-deadlock-for-fork-after-pthread_create-with-atomic_bool.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3Revert "selftests/mm: fix deadlock for fork after pthread_create on ARM"tools/testing/selftests/mm/uffd-unit-tests.c+0 -70 repliesApplied
2/3Revert "selftests/mm: replace atomic_bool with pthread_barrier_t"tools/testing/selftests/mm/uffd-common.c tools/testing/selftests/mm/uffd-common.h tools/testing/selftests/mm/uffd-unit-tests.c+10 -120 repliesApplied
3/3selftests/mm: fix deadlock for fork after pthread_create with atomic_booltools/testing/selftests/mm/uffd-unit-tests.c+5 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] selftests/mm: revert pthread_barrier change and

On Android arm, pthread_create followed by a fork caused a deadlock in the case where the fork required work to be completed by the created thread.

The previous patches incorrectly assumed that the parent would always initialize the pthread_barrier for the child thread. This reverts the change and replaces the fix for wp-fork-with-event with the original use of atomic_bool.

Edward Liaw (3):
Revert "selftests/mm: fix deadlock for fork after pthread_create on
ARM"
Revert "selftests/mm: replace atomic_bool with pthread_barrier_t" selftests/mm: fix deadlock for fork after pthread_create with
atomic_bool

 tools/testing/selftests/mm/uffd-common.c     |  5 ++--
 tools/testing/selftests/mm/uffd-common.h     |  3 ++-
 tools/testing/selftests/mm/uffd-unit-tests.c | 24 ++++++++------------
 3 files changed, 14 insertions(+), 18 deletions(-)

--
2.47.0.105.g07ac214952-goog