User Details
- User Since
- May 16 2014, 7:35 PM (635 w, 2 d)
Today
Yesterday
This is still not intended for review, I just demonstrate the (IMO) full branch where the end is the ability to run truss in cap mode.
I am posting individual commits from the branch for review still.
Update comment.
Edit comments and the man page update.
Use atomic to load p_flag.
Fix PTCHLD_TRACED_BY_ME.
Check uap->data < 0.
Use more correct type for rsrv[] to avoid compat32 conversions.
Man page editing.
please re-upload the patch with the full context.
Add PTCHLD_TRACED_BY_ME.
Add space for future ABI expansion.
Please upload patches with the full context.
Sat, Jul 18
This adds two syscalls to each dynamic syscall failure path. I understand that calling the sysctl is the easiest way to handle dynamically loaded modules. But I already got some negative comments due to exterrors adding some nanoseconds to the failing syscalls timings.
Although I do not object in principle, can we have some smarter way to avoid the sysctl if we already queried the specific module? E.g. we can make each module to register 'range' for dynamic errors' pathes, and memoize the range with the values in libc.
This is esp. sorrow because the display of the source line is really a niche feature.
Could somebody provide an isolated test for the situation where the patch is needed?
As I said it elsewhere, there is no point in kern.features.exterror. You cannot run 15 userspace on <= 14 kernel.
Fri, Jul 17
Restore P2_ZOMBIEREF_PARENT when reparenting to reaper, to allow reaper do it deeds.
Add comment for the placement of NOTE_FORK activation.
Edit the man page.
Fix inverted assertion.
Report NOTE_FORK for procdesc after the child is attached to the debugger.
Could f6ee1d20d36813e990691 fixed your issue?
Why? p_asig and p_tree_refcount are at the end of the struct proc.
Upload the right patch
The current commit from the topic branch.
Update the man page with the review comments.
For the discussion, I am still somewhat surprised that so much of the FreeBSD symbols are leaked into linuxkpi headers, Most amusing and dangerous is PAGE_MASK (AFAIR).
Thu, Jul 16
Wed, Jul 15
Validate uap->data to be the size of the structure.
Edit man page.
Note that the patch breaks existing tests, but IMO the current behavior is not logical. For instance, when I truss -f /bin/sh using process descriptors, shell is missing the zombie exit status. In other words, pdopenpid() breaks correct code.
Real latest diff.
Document PT_SET_SC_RET
