Skip to content

linux: update ptrace_syscall_info struct#4966

Open
Marcondiro wants to merge 1 commit intorust-lang:mainfrom
Marcondiro:main
Open

linux: update ptrace_syscall_info struct#4966
Marcondiro wants to merge 1 commit intorust-lang:mainfrom
Marcondiro:main

Conversation

@Marcondiro
Copy link
Contributor

@Marcondiro Marcondiro commented Feb 10, 2026

Hi,

Description

linux: update ptrace_syscall_info struct:

  • Add new flags field and reserveds.

The updated version has a different size on 32 bits arches (84 -> 88 bytes) while the size stays the same on 64 bits.

Sources

ptrace.h
kernel lore

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot label +stable-nominated

@rustbot

This comment has been minimized.

@tgross35
Copy link
Contributor

tgross35 commented Mar 14, 2026

Could you split the rval rename from the rest? I'd actually be okay to backport the flags and reserved portion since we don't guarantee anything about padding/reserved fields. Just not the renaming since that's an actual break.

@rustbot author

@rustbot
Copy link
Collaborator

rustbot commented Mar 14, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

Add new flags field and reserveds.
@rustbot
Copy link
Collaborator

rustbot commented Mar 14, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Mar 14, 2026
@Marcondiro
Copy link
Contributor Author

Sure, I've just opened #5016 for the renaming, thanks

@rustbot ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants