NetBSD Problem Report #52019

From www@NetBSD.org  Wed Mar  1 07:58:13 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 59DE67A264
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  1 Mar 2017 07:58:13 +0000 (UTC)
Message-Id: <20170301075812.6E1B87A2A7@mollari.NetBSD.org>
Date: Wed,  1 Mar 2017 07:58:12 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: ptrace(2) PT_SYSCALL generate SIGTRAP to the parent but returns SIGSTOP in PT_GET_SIGINFO
X-Send-Pr-Version: www-1.0

>Number:         52019
>Category:       kern
>Synopsis:       ptrace(2) PT_SYSCALL generate SIGTRAP to the parent but returns SIGSTOP in PT_GET_SIGINFO
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 01 08:00:00 +0000 2017
>Closed-Date:    Sat Mar 25 10:10:32 +0000 2017
>Last-Modified:  Sat Mar 25 10:10:32 +0000 2017
>Originator:     Kamil Rytarowski
>Release:        NetBSD 7.99.63 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.63 NetBSD 7.99.63 (GENERIC) #8: Tue Feb 28 11:56:53 CET 2017  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
ptrace(2) PT_SYSCALL generate SIGTRAP to the parent but returns SIGSTOP in PT_GET_SIGINFO
>How-To-Repeat:
Run syscall1 test in tests/kernel/t_ptrace_wait*
>Fix:
N/A

>Release-Note:

>Audit-Trail:
From: "Kamil Rytarowski" <kamil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52019 CVS commit: src/tests/kernel
Date: Wed, 1 Mar 2017 08:05:16 +0000

 Module Name:	src
 Committed By:	kamil
 Date:		Wed Mar  1 08:05:15 UTC 2017

 Modified Files:
 	src/tests/kernel: t_ptrace_wait.c

 Log Message:
 Mark syscall1 broken in t_ptrace_wait*

 Mark this test broken with kern/52012 as the tracee does not stop on syscall
 entry. Check for siginfo(2) in syscall1 and unveil two new bugs.

 PR kern/52012: PT_SYSCALL does not stop on syscall entry
 PR kern/52018: ptrace(2) PT_SYSCALL generates SIGTRAP without si_code
 PR kern/52019: ptrace(2) PT_SYSCALL generate SIGTRAP to the parent but
                returns SIGSTOP in PT_GET_SIGINFO

 Sponsored by <The NetBSD Foundation>


 To generate a diff of this commit:
 cvs rdiff -u -r1.75 -r1.76 src/tests/kernel/t_ptrace_wait.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sat, 25 Mar 2017 10:10:32 +0000
State-Changed-Why:
Fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.