tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Validation and improvements of debugging interfaces



On 05.06.2019 21:25, Christos Zoulas wrote:
> In article <5d4774a2-3730-31c7-fa18-15505b58a3f3%gmail.com@localhost>,
> Kamil Rytarowski  <krytarowski%gmail.com@localhost> wrote:
>> In the past month, I have introduced correctness and reliability of
>> tracing processes in the kernel codebase.
>> I took part in BSDCan 2019 and during the event wrote a NetBSD version
>> of truss, a ptrace(2)-powered syscall tracing utility from FreeBSD. I've
>> finished the port after getting back home and published it to the NetBSD
>> community. This work allowed me to validate the ptrace(2) interfaces in
>> another application and catch new problems that affect every
>> ptrace(2)-based debugger.
> 
> Are you planning to commit truss to base?
> 

Short term no, as I plan to refactor it in my spare time and decode
arguments in more syscalls. Additionally I want to see more bugfixes in
ptrace(2) that will make this tool more reliable and safer to use.

I want to run it well in a package from pkgsrc for NetBSD 9.0.

Long term.. I'm for importing NetBSD strace into base (I have a
BSD-licensed fork of currently Linux/GPL strace), but for it I want to
finish above truss tasks and introduce a new kernel interface that will
allow altering in a MI way syscall arguments. strace is what most people
know and learn today.

It's an option for NetBSD 10.0.

>> http://blog.netbsd.org/tnf/entry/validation_and_improvements_of_debugging
>>
>> Plan for the next milestone
>>
>> Cover with regression tests the posix_spawn(2) interface, if needed
>> correct the kernel code. This will be followed by resolving the
>> use-after-free scenarios in vfork(2). This is expected to accomplish the
>> tasks related to forking code.
>>
>> My next goal on the roadmap is to return to LWP (threading) code and fix
>> all currently known problems.
>>
>> Independently I will keep supporting the work on kernel fuzzing projects
>> within the GSoC context.
>>
>> This work was sponsored by The NetBSD Foundation.
> 
> 
> Sounds good!
> 
> christos
> 


Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index