NetBSD Problem Report #52018
From www@NetBSD.org Wed Mar 1 07:28:25 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 0FFC17A264
for <gnats-bugs@gnats.NetBSD.org>; Wed, 1 Mar 2017 07:28:25 +0000 (UTC)
Message-Id: <20170301072824.1F0E97A2AB@mollari.NetBSD.org>
Date: Wed, 1 Mar 2017 07:28:24 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: ptrace(2) PT_SYSCALL generates SIGTRAP without si_code
X-Send-Pr-Version: www-1.0
>Number: 52018
>Category: kern
>Synopsis: ptrace(2) PT_SYSCALL generates SIGTRAP without si_code
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 01 07:30:00 +0000 2017
>Closed-Date: Sat Mar 25 10:09:43 +0000 2017
>Last-Modified: Sat Mar 25 10:09:43 +0000 2017
>Originator: Kamil Rytarowski
>Release: NetBSD 7.99.59 amd64
>Organization:
TNF
>Environment:
NetBSD rugged 7.99.59 NetBSD 7.99.59 (GENERIC) #14: Tue Feb 14 18:00:59 CET 2017 root@chieftec:/public/netbsd-tmp-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
The PT_SYSCALL operation generates plain SIGTRAP signal, but without appropriate si_code. It should generate TRAP_SCE on syscall entry and TRAP_SCX on syscall exit.
>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/52018 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:09:43 +0000
State-Changed-Why:
Fixed
>Unformatted:
(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.