]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Linux 6.3 compat: Fix memcpy "detected field-spanning write" error
authoryouzhongyang <youzhong@gmail.com>
Thu, 13 Apr 2023 16:12:03 +0000 (12:12 -0400)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2023 16:12:03 +0000 (09:12 -0700)
commit27a82cbb3ef2e30a54860b955fb257fb7f8307cd
treee93ab753d85e4194234335feb7c252c8e4d43ca8
parentc71fe716401f6919068f84b389dcd1b7ec2b8b0e
Linux 6.3 compat: Fix memcpy "detected field-spanning write" error

Add a new union member of flexible array to dnode_phys_t and use
it in the macro so we can silence the memcpy() fortify error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #14737
include/sys/dnode.h