[PATCH 0/4] ntsync miscellaneous patches

Elizabeth Figura posted 4 patches 4 days, 8 hours ago
There is a newer version of this series
Documentation/userspace-api/ntsync.rst        | 22 ++++-----
drivers/misc/ntsync.c                         |  3 ++
.../testing/selftests/drivers/ntsync/ntsync.c | 46 ++++++++++++++++++-
3 files changed, 59 insertions(+), 12 deletions(-)
[PATCH 0/4] ntsync miscellaneous patches
Posted by Elizabeth Figura 4 days, 8 hours ago
This is a resend of a series originally submitted as [1], now sent to char-misc.
The following is the original cover letter sent with that series.

[1] https://lore.kernel.org/all/20260628024239.152852-1-ivanrwcm25@gmail.com/

===

This series improves ntsync without changing wait/wake semantics:

 1/4 — Align Documentation/userspace-api/ntsync.rst with
       include/uapi/linux/ntsync.h (ioctl macro names and struct layout).

 2/4 — Fix wake_all selftest: CREATE_EVENT returns an fd, not zero.

 3/4 — Add selftests for documented EINVAL cases (zero owner, non-zero
       pad, cross-instance object use).

 4/4 — Reject wait ioctls when owner is zero, matching the documented
       uAPI (3/4 depends on 4/4 for the owner tests).

Patch 4/4 closes a spec gap: Documentation/userspace-api/ntsync.rst
requires EINVAL when wait owner is zero, but setup_wait() only validated
pad and flags.  Unlock/kill mutex ioctls already reject owner == 0.

Testing:
- scripts/checkpatch.pl --strict --no-tree: clean (4/4 patches)
- make headers && make -C tools/testing/selftests TARGETS=drivers/ntsync
- Kernel 7.1.0-ntsync-test+ (CONFIG_NTSYNC=y), QEMU x86_64 initramfs:
  tools/testing/selftests/drivers/ntsync/ntsync — 12/12 PASS,
  including wake_all and wait_args_validation
- On 6.17.0-35-generic with the distro ntsync.ko (without patch 4/4):
  wait_args_validation fails on owner==0 (wait proceeds instead of
  EINVAL), confirming the gap this series fixes


Iván Ezequiel Rodriguez (4):
  docs: ntsync: align uAPI ioctl names and struct layout with ntsync.h
  selftests: ntsync: fix wake_all CREATE_EVENT fd expectation
  selftests: ntsync: add wait argument validation tests
  ntsync: reject wait ioctls with zero owner

 Documentation/userspace-api/ntsync.rst        | 22 ++++-----
 drivers/misc/ntsync.c                         |  3 ++
 .../testing/selftests/drivers/ntsync/ntsync.c | 46 ++++++++++++++++++-
 3 files changed, 59 insertions(+), 12 deletions(-)


base-commit: 2cedf2272f1bb42471e646868ac572cc5752bd91
-- 
2.53.0

Re: [PATCH 0/4] ntsync miscellaneous patches
Posted by Elizabeth Figura 1 day, 5 hours ago
On Monday, 20 July 2026 12:17:36 CDT Elizabeth Figura via Wine-Devel wrote:
> This is a resend of a series originally submitted as [1], now sent to char-misc.
> The following is the original cover letter sent with that series.
> 
> [1] https://lore.kernel.org/all/20260628024239.152852-1-ivanrwcm25@gmail.com/

I've received new patches including an update of one of these; I will resend with those patches included. Sorry for the noise.