NetBSD Problem Report #43095

From www@NetBSD.org  Thu Apr  1 08:57:44 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 113BA63B86C
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  1 Apr 2010 08:57:44 +0000 (UTC)
Message-Id: <20100401085743.CF51B63B11D@www.NetBSD.org>
Date: Thu,  1 Apr 2010 08:57:43 +0000 (UTC)
From: ad@netbsd.org
Reply-To: ad@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: dtrace alters kernel<->groveller ABI
X-Send-Pr-Version: www-1.0

>Number:         43095
>Category:       kern
>Synopsis:       dtrace alters kernel<->groveller ABI
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 01 09:00:01 +0000 2010
>Originator:     Andrew Doran
>Release:        -current Apr 1 2010
>Organization:
The NetBSD Project
>Environment:
n/a
>Description:
#ifdef KTRACE_HOOKS appears to alter alters the interface used by
kernel grovelers, by changing the number of sections in the fake
ksyms binary.  It must not do this as it may break savecore.

>How-To-Repeat:
Code inspection.
>Fix:
Always have the same number of sections in the fake binary.
If there is no dtrace information emit the section as present but empty.
#ifdef OPTION must not touch the interface definition (ksyms.h).
Don't pollute kernel with #ifdefs to micro-optimize tiny things and/or
work around shortcomings, do things correctly at runtime.

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.