Merge branch 'net-fix-error-warning-by-fstrict-flex-arrays-3'
authorJakub Kicinski <kuba@kernel.org>
Wed, 26 Jul 2023 03:10:08 +0000 (20:10 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Jul 2023 03:10:08 +0000 (20:10 -0700)
Kuniyuki Iwashima says:

====================
net: Fix error/warning by -fstrict-flex-arrays=3.

df8fc4e934c1 ("kbuild: Enable -fstrict-flex-arrays=3") started applying
strict rules for standard string functions (strlen(), memcpy(), etc.) if
CONFIG_FORTIFY_SOURCE=y.

This series fixes two false positives caught by syzkaller.

v2: https://lore.kernel.org/netdev/20230720004410.87588-1-kuniyu@amazon.com/
v1: https://lore.kernel.org/netdev/20230719185322.44255-1-kuniyu@amazon.com/
====================

Link: https://lore.kernel.org/r/20230724213425.22920-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge