HomeFreeBSD

Linux 6.3 compat: Fix memcpy "detected field-spanning write" error

Description

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

Details

Provenance
youzhongyang <youzhong@gmail.com>Authored on Apr 13 2023, 4:12 PM
GitHub <noreply@github.com>Committed on Apr 13 2023, 4:12 PM
Parents
rGc71fe716401f: Fix data corruption when cloning embedded blocks
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG27a82cbb3ef2: Linux 6.3 compat: Fix memcpy "detected field-spanning write" error (authored by youzhongyang <youzhong@gmail.com>).Apr 13 2023, 4:12 PM