Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround UBSAN errors for variable arrays #15827

Merged

Conversation

behlendorf
Copy link
Contributor

Motivation and Context

#15806, #15510

Description

This gets around UBSAN errors when using arrays at the end of structs. It converts some zero-length arrays to variable length arrays and disables UBSAN checking on certain modules.

It is based off of the patch from #15460

How Has This Been Tested?

Cherry picked from the master branch and manually resolved the conflicts. This should resolve the warning but I haven't locally verified with an UBSAN enabled kernel.

Checklist:

This gets around UBSAN errors when using arrays at the end of
structs.  It converts some zero-length arrays to variable length
arrays and disables UBSAN checking on certain modules.

It is based off of the patch from openzfs#15460.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Co-authored-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Issue openzfs#15145
Closes openzfs#15510
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Feb 1, 2024
@behlendorf behlendorf merged commit bb1dd98 into openzfs:zfs-2.1.15-staging Feb 5, 2024
6 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
2.1-release
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants