Whamcloud - gitweb
LU-16509 lnet: quash memcpy WARN_ONCE false positive 01/49801/6
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 27 Jan 2023 07:08:23 +0000 (01:08 -0600)
committerPatrick Farrell <pfarrell@whamcloud.com>
Tue, 28 Feb 2023 18:15:23 +0000 (18:15 +0000)
commit18e24419599666bd536d072705052a8c64b681ab
tree57710db03a4cf32386f96ced3a891c49b6a084c4
parent8beeec77c3b426a01e1f10ca51149c7ca7e01b7e
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.

Test-Parameters: trivial
HPE-bug-id: LUS-11455
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I4aa8f38678cd1522004d98b58a3f440d8a38589c
libcfs/include/libcfs/libcfs.h
lnet/include/uapi/linux/lnet/lnet-idl.h
lnet/lnet/api-ni.c
lnet/lnet/peer.c
lnet/utils/wirecheck.c
lustre/utils/wirecheck.c