NetBSD Problem Report #1112
From gnats Sun Jun 4 15:54:52 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id PAA17565 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sun, 4 Jun 1995 15:54:51 -0700
Message-Id: <199506042234.SAA00384@kolvir.blrc.ma.us>
Date: Sun, 4 Jun 1995 18:34:06 -0400
From: John Kohl <jtk@kolvir.blrc.ma.us>
Reply-To: jtk@kolvir.blrc.ma.us
To: gnats-bugs@NetBSD.ORG
Subject: psl.h change to i386 breaks swapping
X-Send-Pr-Version: 3.2
>Number: 1112
>Category: port-i386
>Synopsis: psl.h changed the number of interrupt masks but didn't allocate space!
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 04 16:05:03 +0000 1995
>Closed-Date: Sun Jun 04 23:15:04 +0000 1995
>Last-Modified:
>Originator: John Kohl
>Release: NetBSD-current, 04 June 1995
>Organization:
NetBSD Kernel Hackers `R` Us
>Environment:
System: NetBSD kolvir 1.0A NetBSD 1.0A (KOLVIR) #440: Sun Jun 4 00:50:51 EDT 1995 jtk@kolvir:/u1/NetBSD-current/src/sys/arch/i386/compile/KOLVIR i386
>Description:
psl.h added a new IPL_IMP, but didn't add space to imask[]. In my
kernel, the next symbol after imask[] is swcleanlist, which gets
trashed. The first time swapping happens, the machine dies with a
kernel protection fault (bogus address dereference).
>How-To-Repeat:
Build new kernel, stress the system to swap.
>Fix:
===================================================================
RCS file: RCS/psl.h,v
retrieving revision 1.4
diff -c -r1.4 psl.h
*** psl.h 1995/06/04 14:12:07 1.4
--- psl.h 1995/06/04 22:29:04
***************
*** 98,104 ****
#ifndef LOCORE
! int cpl, ipending, astpending, imask[4];
/*
* Add a mask to cpl, and return the old value of cpl.
--- 98,104 ----
#ifndef LOCORE
! int cpl, ipending, astpending, imask[5];
/*
* Add a mask to cpl, and return the old value of cpl.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Sun Jun 4 16:15:04 PDT 1995
State-Changed-Why:
Already fixed.
>Unformatted:
(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.