NetBSD-Bugs archive

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

kern/51630: ptrace(2) command PT_SET_EVENT_MASK: option PTRACE_VFORK unsupported



>Number:         51630
>Category:       kern
>Synopsis:       ptrace(2) command PT_SET_EVENT_MASK: option PTRACE_VFORK unsupported
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 15 21:35:00 +0000 2016
>Originator:     Kamil Rytarowski
>Release:        NetBSD 7.99.42 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.42 NetBSD 7.99.42 (GENERIC) #4: Mon Nov 14 17:24:18 CET 2016  kamil@chieftec:/public/netbsd-tmp/sys/arch/amd64/compile/GENERIC amd64
>Description:
Part of <sys/ptrace.h>:

/* PT_GET_PROCESS_STATE */
typedef struct ptrace_state {
        int     pe_report_event;
        pid_t   pe_other_pid;
} ptrace_state_t;

#define PTRACE_FORK     0x0001  /* Report forks */

There is missing option for PTRACE_VFORK. Currently vfork(2) isn't intercepted under PTRACE_FORK either.
>How-To-Repeat:
I'm going to commit the test to:

cd /usr/tests/kernel && atf-run t_ptrace_wait6 | atf-report

It will be moved out later once fixed to a dedicated file like t_ptrace_vfork_wait6
>Fix:
N/A



Home | Main Index | Thread Index | Old Index