racy acccess in kern_runq.c

2019-12-05 Thread Kengo NAKAHARA
Hi, There are some racy accesses in kern_runq.c detected by KCSAN. Those racy access messages is so frequency that they cover other messages, so I want to fix them. They can be fixed by the following patch. diff --git a/sys/kern/kern_runq.c b/sys/kern/kern_runq.c index 04f

[patch] PT_GET_LWP_PRIVATE and PT_SET_LWP_PRIVATE

2019-12-05 Thread Kamil Rytarowski
I have implemented l_private accessor in ptrace(2). By default this uses l_private from the lwp struct. PT_SET_LWP_PRIVATE uses lwp_setprivate() directly and this call abstracts internally MI and MD code. The PT_SET_LWP_PRIVATE operation uses by default l_private from the struct lwp, however whe