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)
commita49441c9ab059ce47f97dc15fb82d4e7b7b2ef65
treeab8df1236d8ade22253197b21554e075d1b77214
parent55cef78c244d0d076f5a75a35530ca63c92f4426
parenta0ade8404c3bc2bf2631cb0f20d372eed22d9d96
Merge branch 'net-fix-error-warning-by-fstrict-flex-arrays-3'

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>