Re: [PATCH v2] ntsync: Check wait count based on byte size.

Elizabeth Figura <[email protected]> Thu, 20 Feb 2025 13:29:25 -0600
Newsgroups gmane.comp.emulators.wine.devel,gmane.linux.kernel,gmane.linux.kernel.api
Message-ID <3342044.44csPzL39Z@camazotz>
On Thursday, 20 February 2025 13:23:34 CST Elizabeth Figura wrote:
> GCC versions below 13 incorrectly detect the copy size as being static and too
> small to fit in the "fds" array. Work around this by explicitly calculating the
> size and returning EINVAL based on that, instead of based on the object count.
> 
> Reported-by: kernel test robot <[email protected]>
> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
> Suggested-by: Arnd Bergmann <[email protected]>
> Signed-off-by: Elizabeth Figura <[email protected]>
> 

Oops, I forgot to include a reference to v1:

https://lore.kernel.org/all/[email protected]/