Whamcloud - gitweb
LU-16509 lnet: quash memcpy WARN_ONCE false positive
authorShaun Tancheff <shaun.tancheff@hpe.com>
Mon, 6 Mar 2023 15:33:51 +0000 (10:33 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Mar 2023 19:56:06 +0000 (19:56 +0000)
commit506d665a599d2e9fe5f957c507bc3327a051841b
treea296f6693096b3848cb11edf50f79b162d1f237f
parentf217b0af8601ec9d4c6a9c4c67e529774d57396c
LU-16509 lnet: quash memcpy WARN_ONCE false positive

Linux v6.1-rc1-4-g6f7630b1b5bc
  fortify: Capture __bos() results in const temp var

In lnet_peer_push_event() the memcpy triggers a WARN_ONCE
due to the flexible array at the end of
struct lnet_ping_info contained in struct lnet_ping_buffer

Use unsafe_memcpy() to avoid this false positive warning.

Lustre-change: https://review.whamcloud.com/49801
Lustre-commit: 18e24419599666bd536d072705052a8c64b681ab (tbd)

Test-Parameters: trivial
HPE-bug-id: LUS-11455
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I4aa8f38678cd1522004d98b58a3f440d8a38589c
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50217
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
libcfs/include/libcfs/libcfs.h
lnet/include/uapi/linux/lnet/lnet-types.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c
lnet/utils/wirecheck.c
lustre/utils/wirecheck.c