-
Notifications
You must be signed in to change notification settings - Fork 200
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
[PAL] Fix main() signature in regression tests for UBSan #2002
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 17 of 17 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion, not enough approvals from maintainers (2 more required), not enough approvals from different teams (1 more required, approved so far: ITL) (waiting on @woju)
pal/regression/AttestationReport.c
line 12 at r1 (raw file):
int main(int argc, char** argv, char** envp) { /* We don't care about unused args to main, but UBSan complains otherwise * with call through pointer with incorrect function type"
Unmatched "
at the end. ditto everywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 17 of 17 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions, not enough approvals from maintainers (2 more required), not enough approvals from different teams (1 more required, approved so far: ITL) (waiting on @mkow and @woju)
-- commits
line 3 at r1:
I would also add the commit message body:
Newer Clang versions (v18 and newer) added more UBSan checks that
triggered UBSan on PAL regression tests. For more info, see previous
commit "[common] Update UBSan to be compatible with Clang 18".
pal/regression/AttestationReport.c
line 12 at r1 (raw file):
Previously, mkow (Michał Kowalczyk) wrote…
Unmatched
"
at the end. ditto everywhere
Yes, should be with "call through pointer ..."
Also, I personally don't like when for 1- or 2-line comments, the ending bracket is on a separate line. I would finish in the same (second) line: ...function type" */
8cdb22f
to
097343f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 17 files reviewed, 2 unresolved discussions, not enough approvals from maintainers (2 more required), not enough approvals from different teams (1 more required, approved so far: ITL) (waiting on @dimakuv and @mkow)
Previously, dimakuv (Dmitrii Kuvaiskii) wrote…
I would also add the commit message body:
Newer Clang versions (v18 and newer) added more UBSan checks that triggered UBSan on PAL regression tests. For more info, see previous commit "[common] Update UBSan to be compatible with Clang 18".
Done.
pal/regression/AttestationReport.c
line 12 at r1 (raw file):
Previously, dimakuv (Dmitrii Kuvaiskii) wrote…
Yes, should be
with "call through pointer ..."
Also, I personally don't like when for 1- or 2-line comments, the ending bracket is on a separate line. I would finish in the same (second) line:
...function type" */
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 16 of 16 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions, not enough approvals from maintainers (2 more required), not enough approvals from different teams (1 more required, approved so far: ITL) (waiting on @mkow and @woju)
pal/regression/ipv6_parser.c
line 1 at r2 (raw file):
/* SPDX-License-Identifier: LGPL-3.0-or-later */ /* Copyright (C) 2022 Intel Corporation
Unintended bug?
097343f
to
8825c76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 16 of 17 files reviewed, 2 unresolved discussions, not enough approvals from maintainers (2 more required), not enough approvals from different teams (1 more required, approved so far: ITL) (waiting on @dimakuv and @mkow)
pal/regression/ipv6_parser.c
line 1 at r2 (raw file):
Previously, dimakuv (Dmitrii Kuvaiskii) wrote…
Unintended bug?
Fixed. Yes, too much joining lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion, not enough approvals from maintainers (1 more required) (waiting on @mkow)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 15 of 16 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 17 files at r1, 15 of 16 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
Jenkins, test linux-sgx-vm-gcc-release please |
1 similar comment
Jenkins, test linux-sgx-vm-gcc-release please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
Jenkins, test linux-sgx-vm-gcc-release please |
Signed-off-by: Wojtek Porczyk <[email protected]>
Newer Clang versions (v18 and newer) added more UBSan checks that triggered UBSan on PAL regression tests. For more info, see commit 78776a5 ("[common] Update UBSan to be compatible with Clang 18"). Signed-off-by: Wojtek Porczyk <[email protected]>
76a010e
8825c76
to
76a010e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, all discussions resolved, not enough approvals from maintainers (1 more required)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
Description of the changes
Split from #1904
How to test this PR?
compile with ubsan on Ubuntu 24.04 and run
This change is