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
Tony Hutter <hutter2@llnl.gov>Committed on Jun 5 2023, 5:59 PM
Parents
rGf0aca5f7bb09: Linux 6.3 compat: idmapped mount API changes
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGd7fb413f0f04: Linux 6.3 compat: Fix memcpy "detected field-spanning write" error (authored by youzhongyang <youzhong@gmail.com>).Jun 5 2023, 5:59 PM