Page MenuHomeFreeBSD

ptrace(PT_GET_ABI_NAME)
ClosedPublic

Authored by kib on Aug 22 2026, 11:07 PM.
Tags
None
Referenced Files
F174987274: D59113.id184758.diff
Wed, Oct 7, 10:20 AM
Unknown Object (File)
Tue, Oct 6, 6:34 PM
Unknown Object (File)
Sat, Oct 3, 5:37 PM
Unknown Object (File)
Fri, Oct 2, 4:23 PM
Unknown Object (File)
Thu, Sep 24, 11:35 AM
Unknown Object (File)
Sun, Sep 20, 6:03 PM
Unknown Object (File)
Thu, Sep 17, 7:49 AM
Unknown Object (File)
Wed, Sep 16, 7:58 AM

Details

Summary

This covers the immediate need of truss(1), allowing to postpone pdkinfo(2).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Aug 22 2026, 11:07 PM

Use the right target process.

lib/libsys/ptrace.2
1111

Or "defines how system call numbers and arguments are interpreted."

Or "the ABI selects the system call table used by the process."

1116

IMO this makes it slightly more obvious that the nul-terminator is included.

sys/compat/freebsd32/freebsd32_misc.c
1254

udata <= strlen(...) is a signed/unsigned comparison, no? Don't we thus need an explicit check for udata < 0?

sys/kern/sys_process.c
892

Same comment about negative data.

2047

Shouldn't truncation result in an error?

kib marked 5 inline comments as done.

Fix signed/unsigned comparison.
Report error on too long ABI name.
Man page improvements.

This revision is now accepted and ready to land.Aug 25 2026, 5:56 PM