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

Greg Kroah-Hartman <[email protected]> Fri, 21 Feb 2025 06:53:05 +0100
Newsgroups gmane.linux.kernel.api,gmane.linux.kernel,gmane.comp.emulators.wine.devel
Message-ID <2025022147-cargo-preface-7cdb@gregkh>
On Thu, Feb 20, 2025 at 01:29:25PM -0600, Elizabeth Figura wrote:
> 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/202502072019.LYoCR9bF-lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org/
> > 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/20250219001920.210847-1-zfigura-PJ7GQ4yptbsswetKESUqMA@public.gmane.org/

No need for the reference, that's easy enough to find if I needed it.

thanks,

greg k-h