Whamcloud - gitweb
LU-16510 build: fortified memcpy from linux 6.1 11/49811/7
authorShaun Tancheff <shaun.tancheff@hpe.com>
Mon, 30 Jan 2023 04:17:12 +0000 (22:17 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Feb 2023 06:27:27 +0000 (06:27 +0000)
commit919b93b951d4a9aa0400b9c882a1f68b79d8f118
tree1a97aa447a4c70f754d3b3c96f1aeac0055ea671
parent738e69d4b97d28ef037fe50f4146aabead9a2528
LU-16510 build: fortified memcpy from linux 6.1

The fortified memcpy() from Linux v5.11-11104-ga28a6e860c6c
through v5.18-rc5-1405-g43213daed6d6 incorrectly reports
a false positive out of bounds check.

In function 'memcpy' ...
  '__read_overflow2' declared with attribute error: detected
   read beyond size of object passed as 2nd parameter

Test-Parameters: trivial
HPE-bug-id: LUS-11459
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I3a59d8b647833c05ff4b51e327ed8bce894141fe
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49811
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/linux/Makefile.am
libcfs/include/libcfs/linux/linux-fortify-string.h [new file with mode: 0644]