diff options
author | Elizabeth Figura <zfigura@codeweavers.com> | 2025-02-20 13:23:34 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 11:57:33 +0100 |
commit | 92527e473911b835c2c18b0c55c337c33e85ff00 (patch) | |
tree | 20a319170f5bf1342c2440b11a97aa12c80dddde /scripts/clang-tools/gen_compile_commands.py | |
parent | 32ce5d87d52213a50a513750f01a56f4d01f50cb (diff) | |
download | linux-92527e473911b835c2c18b0c55c337c33e85ff00.tar.gz linux-92527e473911b835c2c18b0c55c337c33e85ff00.tar.bz2 linux-92527e473911b835c2c18b0c55c337c33e85ff00.zip |
ntsync: Check wait count based on byte size.
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202502072019.LYoCR9bF-lkp@intel.com/
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Elizabeth Figura <zfigura@codeweavers.com>
--
Suggested-by as per Arnd's request, but the only thing I changed was preserving
array_size() [as noted by Geert in the linked thread]. I tested and found no
regressions.
v2: Add missing sign-off
Link: https://lore.kernel.org/r/20250220192334.549167-1-zfigura@codeweavers.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions