NetBSD Problem Report #60753

From www@netbsd.org  Sun Sep 20 12:20:57 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4E18E1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Sep 2026 12:20:57 +0000 (UTC)
Message-Id: <20260920122056.311F31A923C@mollari.NetBSD.org>
Date: Sun, 20 Sep 2026 12:20:56 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: compat_ultrix shmsys(2): busted shmdt
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>

>Number:         60753
>Category:       kern
>Synopsis:       compat_ultrix shmsys(2): busted shmdt
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 20 12:25:00 +0000 2026
>Closed-Date:    
>Last-Modified:  Fri Oct 02 03:29:05 +0000 2026
>Originator:     Taylor R Campbell
>Release:        current, 11, 10, ...
>Organization:
The UltrixBSD Foundabug, Inc.
>Environment:
>Description:

	`shmat' and `shmdt' are not the same thing!

    668 	case 2:						/* Ultrix shmdt() */
    669 		SCARG(&shmat_args, shmaddr) = (void *)SCARG(uap, a2);
    670 		return sys_shmdt(l, &shmdt_args, retval);

	https://nxr.netbsd.org/xref/src/sys/compat/ultrix/ultrix_misc.c?r=1.128#668

>How-To-Repeat:

	code inspection

>Fix:

	fix typo

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 02 Oct 2026 03:29:05 +0000
State-Changed-Why:
fixed in HEAD, needs pullup-11, pullup-10


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.