Page MenuHomeFreeBSD

linux: Make PTRACE_GETREGSET return proper buffer size
ClosedPublic

Authored by trasz on Oct 23 2021, 7:32 PM.
Tags
None
Referenced Files
F106141582: D32616.id97339.diff
Thu, Dec 26, 2:15 AM
F106113083: D32616.diff
Wed, Dec 25, 2:49 PM
Unknown Object (File)
Tue, Dec 10, 3:04 AM
Unknown Object (File)
Mon, Dec 9, 2:34 AM
Unknown Object (File)
Wed, Dec 4, 11:13 AM
Unknown Object (File)
Nov 22 2024, 10:18 AM
Unknown Object (File)
Oct 28 2024, 7:43 AM
Unknown Object (File)
Oct 17 2024, 11:30 PM
Subscribers

Details

Summary

This fixes Chrome warning:

[1022/152319.328632:ERROR:ptracer.cc(476)] Unexpected registers size 0 != 216, 68

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42323
Build 39211: arc lint + arc unit

Event Timeline

trasz requested review of this revision.Oct 23 2021, 7:32 PM
trasz retitled this revision from linux: Make PTRACE_GETREGSET return proper buffer size to linux: Make PTRACE_GETREGS return proper buffer size.Oct 29 2021, 12:24 PM

Was this just an incorrect understanding in R10:faf2fa21d70b1e625cb7af032e6608e631931486?

That one's for PTRACE_GETREGSET, while this revision changes PTRACE_GETREGS - although it incorrectly claimed to do PTRACE_GETREGSET; fixed now :-)

I think it was just a misunderstanding in d82de05480f; strace(1) seems to accept the previous, truncated, struct somehow.

This revision is now accepted and ready to land.Oct 29 2021, 1:34 PM

Sigh, no, you were right. My comment is for https://reviews.freebsd.org/D32601, not for this one here.

trasz retitled this revision from linux: Make PTRACE_GETREGS return proper buffer size to linux: Make PTRACE_GETREGSET return proper buffer size.Oct 29 2021, 2:31 PM