* [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; 4+ 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 [flat|nested] 4+ 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
2026-07-15 4:56 ` Greg Kroah-Hartman
0 siblings, 1 reply; 4+ 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] 4+ messages in thread
* Re: [PATCH] ntsync: Check for owner in setup_wait()
2026-07-14 17:16 ` Elizabeth Figura
@ 2026-07-15 4:56 ` Greg Kroah-Hartman
2026-07-16 22:28 ` Elizabeth Figura
0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2026-07-15 4:56 UTC (permalink / raw)
To: Elizabeth Figura
Cc: Arnd Bergmann, Griffin Kroah-Hartman, wine-devel, linux-kernel
On Tue, Jul 14, 2026 at 12:16:47PM -0500, Elizabeth Figura wrote:
> 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/
Cool, but that series wasn't sent to the maintainers to get them merged,
and there's going to be a second version as it conflicts with your
previous patches, right?
Or are you going to batch these up and send them to Arnd and me for
inclusion later on?
And is the wine-devel list still alive? If not, we should probably drop
that from the MAINTAINERS file.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ntsync: Check for owner in setup_wait()
2026-07-15 4:56 ` Greg Kroah-Hartman
@ 2026-07-16 22:28 ` Elizabeth Figura
0 siblings, 0 replies; 4+ messages in thread
From: Elizabeth Figura @ 2026-07-16 22:28 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Arnd Bergmann, Griffin Kroah-Hartman, wine-devel, linux-kernel
On Tuesday, 14 July 2026 23:56:35 CDT Greg Kroah-Hartman wrote:
> On Tue, Jul 14, 2026 at 12:16:47PM -0500, Elizabeth Figura wrote:
> > 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/
>
> Cool, but that series wasn't sent to the maintainers to get them merged,
> and there's going to be a second version as it conflicts with your
> previous patches, right?
>
> Or are you going to batch these up and send them to Arnd and me for
> inclusion later on?
Ah I'm sorry, I missed that those patches weren't sent to Arnd and you. I'll resend them. The previous patches are in the same situation, but I think these cover a superset of the same ground so I'll just send them alone.
> And is the wine-devel list still alive? If not, we should probably drop
> that from the MAINTAINERS file.
It's alive, but the address moved. I forgot that this reference needed to be updated; I apologize for that. I sent a fix there as <https://lore.kernel.org/all/20260701183214.13973-1-zfigura@codeweavers.com/>. I guess that should also have been sent to you as the relevant subsystem maintainers; I failed to properly think that one through.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-16 22:28 UTC | newest]
Thread overview: 4+ 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
2026-07-15 4:56 ` Greg Kroah-Hartman
2026-07-16 22:28 ` Elizabeth Figura
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome