Whamcloud - gitweb
LU-16510 build: fortified memcpy from linux 6.1
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 17 Feb 2023 23:52:33 +0000 (15:52 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 18 Feb 2023 19:14:57 +0000 (19:14 +0000)
commit5099a3b7a0057ef976fdb565d3d5cadf7e8813db
tree6a327ee33c97024eb49b20ebc0a856d35eeca50e
parentb330033a8c441056a95b1ca6c154b3d3d2bbfbca
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

Lustre-change: https://review.whamcloud.com/49811
Lustre-commit: 919b93b951d4a9aa0400b9c882a1f68b79d8f118

Test-Parameters: trivial
HPE-bug-id: LUS-11459
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I3a59d8b647833c05ff4b51e327ed8bce894141fe
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49880
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@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]