-
Notifications
You must be signed in to change notification settings - Fork 602
[MEDIUM] Patch gdb for CVE-2021-32256 & CVE-2025-5244 #13814
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
Conversation
kgodara912
left a comment
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.
Buddy build. Patch matches with upstream reference.
kgodara912
left a comment
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.
Please check the build failure, it seems that patch is for some other version of gdb.
a8ca99c to
a3f6232
Compare
4bbde42 to
72d113d
Compare
|
Buddy Build link - https://dev.azure.com/mariner-org/mariner/_build/results?buildId=831310&view=results Build is passed. Please verify |
72d113d to
42a7ce2
Compare
|
Previous full build was with gcc PR. This is only for gdb one: Full build. |
|
@kgodara912, requesting your review on this! |
|
I have re-triggered full build with latest baseline as previous two full builds weren't successful. Once full build passes, we will go to next steps. |
|
Buddy build is almost successful except |
Verification of gdb functionality using a sample C fileProgram file 1 : GDB verification log : Program file 2: GDB verification log: |
42a7ce2 to
c117534
Compare
|
Buddy build as previous buddy build couldn't succeed. |
|
Current status: Able to reproduce the test failure manually in 2.0 CBL mariner container, libctf tests fails for gdb as follows: Currently checking on fixing this error |
f43a737 to
26356ea
Compare
|
We still have test failures even after removing libctf test suite: buddy build |
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.
The test failures in the pipeline are precisely because of the addition of patches by this PR.
7568 time="2025-09-10T09:41:21Z" level=debug msg="in: _RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc76_E"
7569 time="2025-09-10T09:41:21Z" level=debug msg="out: (null)"
7570 time="2025-09-10T09:41:21Z" level=debug msg="exp: <const_generic::Char<'v'>>"
7571 time="2025-09-10T09:41:21Z" level=debug msg="FAIL at line 289, options --format=auto:"
7572 time="2025-09-10T09:41:21Z" level=debug msg="in: _RMCs4fqI2P2rA04_13const_genericINtB0_4CharKca_E"
7573 time="2025-09-10T09:41:21Z" level=debug msg="out: (null)"
7574 time="2025-09-10T09:41:21Z" level=debug msg="exp: <const_generic::Char<'\\n'>>"
7575 time="2025-09-10T09:41:21Z" level=debug msg="FAIL at line 293, options --format=auto:"
7576 time="2025-09-10T09:41:21Z" level=debug msg="in: _RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc2202_E"
7577 time="2025-09-10T09:41:21Z" level=debug msg="out: (null)"
7578 time="2025-09-10T09:41:21Z" level=debug msg="exp: <const_generic::Char<'\\u{2202}'>>"
7579 time="2025-09-10T09:41:21Z" level=debug msg="./test-demangle: 68 tests, 18 failures"
7580 time="2025-09-10T09:41:21Z" level=debug msg="make[3]: Leaving directory '/usr/src/mariner/BUILD/gdb-11.2/libiberty/testsuite'"
7581 time="2025-09-10T09:41:21Z" level=debug msg="make[3]: *** [Makefile:58: check-rust-demangle] Error 1"
7582 time="2025-09-10T09:41:21Z" level=debug msg="make[3]: *** Waiting for unfinished jobs...."
Specifically SPECS/gdb/fix-infinite-recursion.patch patch is causing the additional failures in gdb tests. Please address the failures.
|
Upon removing fix-infinite-recursion.patch, following build error is being observed for CVE-2021-32256 patch
After applying the fix-infinite-recursion.patch, build issue gets resolved but test fails for libiberty as follows
Found - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100177 where the changes present in this link is already present. |
|
Test is successful after the change in CVE-2021-32256 |
|
Buddy Build [InProgress] |
Buddy build is success and test is passed |
|
Full Build [InProgress] |
bhagyapathak
left a comment
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.
The full build is currently failing on ARM for libguestfs (libguestfs-1.44.0-20).
GDB fixes for CVE-2021-32256 and CVE-2025-5244 are unlikely to break libguestfs.
@kgodara912 could you please confirm if we should prioritize investigation on this failure?
|
Buddy build is successful |
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.
Full build is successful except libguestfs for arm64. The buddy build pipeline was run again with both the packages, buddy build where libguestfs compiles fine for arm64, amd64 test failures for libguestfs are known. The fix-infinite-recursion.patch matches with upstream, https://github.com/gcc-mirror/gcc/commit/f10bec5ffa487ad3033ed5f38cfd0fc7d696deab.patch. gdb tests are passing after a small change in goto pass_return in one CVE file. LGTM.



Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
What does the PR accomplish, why was it needed?
Patch gdb for CVE-2021-32256
Change Log
Patch application verification
Does this affect the toolchain?
NO
Associated issues
Links to CVEs
Test Methodology