[PATCH v16 0/2] futex: Add EFAULT coverage for wake and cmp_requeue

Michael Menasherov via ltp <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
futex_wait06 and futex_wait07 were already merged. This series
contains the two remaining patches.

Patch 1/2 (futex_wake05) is v16 — updated based on review feedback
to add a kernel-space address test case and clarify the comment
explaining the different code paths in get_futex_key().

Patch 2/2 (futex_cmp_requeue03) — updated to also cover PROT_NONE
on uaddr2, and has not yet received a human review. Would appreciate
a review of this patch as well.

GitHub PR: https://github.com/linux-test-project/ltp/pull/1301

Michael Menasherov (2):
  futex_wake05: Add EFAULT error coverage test
  futex_cmp_requeue03: Add EFAULT error coverage test

 runtest/syscalls                              |   2 +
 testcases/kernel/syscalls/futex/.gitignore    |   2 +
 .../syscalls/futex/futex_cmp_requeue03.c      | 108 ++++++++++++++++++
 .../kernel/syscalls/futex/futex_wake05.c      | 100 ++++++++++++++++
 4 files changed, 212 insertions(+)
 create mode 100644 testcases/kernel/syscalls/futex/futex_cmp_requeue03.c
 create mode 100644 testcases/kernel/syscalls/futex/futex_wake05.c

-- 
2.54.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.