* [PATCH] ntsync: Check for owner in setup_wait()
@ 2026-07-14 15:36 Griffin Kroah-Hartman
2026-07-14 17:16 ` Elizabeth Figura
0 siblings, 1 reply; 2+ messages in thread
From: Griffin Kroah-Hartman @ 2026-07-14 15:36 UTC (permalink / raw)
To: Elizabeth Figura, Arnd Bergmann, Greg Kroah-Hartman
Cc: wine-devel, linux-kernel, Griffin Kroah-Hartman
Add a check to see if any mutex owner is 0.
As stated in the uapi documentation , this is a failure case that was
not being checked under the NTSYNC_IOC_WAIT_ANY and NTSYNC_IOC_WAIT_ALL
cases, which state that mutexes with no owner should fail the ioctl with
-EINVAL.
Assisted-by: gkh_clanker_t1000
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
---
drivers/misc/ntsync.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/misc/ntsync.c b/drivers/misc/ntsync.c
index 02c9d1192812..4a805919bb0c 100644
--- a/drivers/misc/ntsync.c
+++ b/drivers/misc/ntsync.c
@@ -875,6 +875,9 @@ static int setup_wait(struct ntsync_device *dev,
if (args->pad || (args->flags & ~NTSYNC_WAIT_REALTIME))
return -EINVAL;
+ if (!args->owner)
+ return -EINVAL;
+
if (size >= sizeof(fds))
return -EINVAL;
---
base-commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa
change-id: 20260714-ntsync_patches_1-34ea98de8606
Best regards,
--
Griffin Kroah-Hartman <griffin@kroah.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ntsync: Check for owner in setup_wait()
2026-07-14 15:36 [PATCH] ntsync: Check for owner in setup_wait() Griffin Kroah-Hartman
@ 2026-07-14 17:16 ` Elizabeth Figura
0 siblings, 0 replies; 2+ messages in thread
From: Elizabeth Figura @ 2026-07-14 17:16 UTC (permalink / raw)
To: Arnd Bergmann, Greg Kroah-Hartman, Griffin Kroah-Hartman
Cc: wine-devel, linux-kernel
On Tuesday, 14 July 2026 10:36:46 CDT Griffin Kroah-Hartman wrote:
> Add a check to see if any mutex owner is 0.
>
> As stated in the uapi documentation , this is a failure case that was
> not being checked under the NTSYNC_IOC_WAIT_ANY and NTSYNC_IOC_WAIT_ALL
> cases, which state that mutexes with no owner should fail the ioctl with
> -EINVAL.
This has already been sent I'm afraid:
https://lore.kernel.org/all/20260628024239.152852-1-ivanrwcm25@gmail.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-14 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 15:36 [PATCH] ntsync: Check for owner in setup_wait() Griffin Kroah-Hartman
2026-07-14 17:16 ` Elizabeth Figura
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.