Whamcloud - gitweb
LU-16510 build: fortified memcpy from linux 6.1 15/49815/5
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 9 Feb 2023 03:50:05 +0000 (19:50 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 28 Mar 2023 07:13:55 +0000 (07:13 +0000)
commit83658e38cd497c777a3056edebc8cd34803b45f8
tree40cf5707fcc3d57b0b2d0c2a7750bd1f9f429c0b
parenta9a07e4faa061b948a0b0a92cd35f1165b3a2bcb
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/fs/lustre-release/+/49815
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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]