From creyenga@connectmail.carleton.ca  Wed Apr 23 09:56:12 2003
Return-Path: <creyenga@connectmail.carleton.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9A36037B40D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 Apr 2003 09:56:10 -0700 (PDT)
Received: from wabakimi.chat.carleton.ca (wabakimi.chat.carleton.ca [134.117.1.98])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A202C43FBF
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 Apr 2003 09:56:09 -0700 (PDT)
	(envelope-from creyenga@connectmail.carleton.ca)
Received: from fireball (resnet-93-187.cavern.carleton.ca [134.117.93.187])
	by wabakimi.chat.carleton.ca (8.12.9/8.12.9) with SMTP id h3NGu7C7004198
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 23 Apr 2003 12:56:07 -0400 (EDT)
Message-Id: <000f01c309b9$350d2700$0200000a@fireball>
Date: Wed, 23 Apr 2003 12:55:45 -0400
From: "Craig Reyenga" <creyenga@connectmail.carleton.ca>
To: <freebsd-gnats-submit@FreeBSD.org>
Subject: Renice idle process not illegal; causes hang

>Number:         51318
>Category:       kern
>Synopsis:       Renice idle process not illegal; causes hang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 23 10:00:16 PDT 2003
>Closed-Date:    Fri Jun 27 00:52:00 PDT 2003
>Last-Modified:  Fri Jun 27 00:52:00 PDT 2003
>Originator:     Craig M. R.
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
My Room
>Environment:
System: FreeBSD cesspool 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sat Apr 12
18:47:02 EDT 2003
                craig@cesspool:/usr/obj/usr/src/sys/CKERN i386


        <machine, os, target, libraries (multiple lines)>
>Description:
        I tried 'renice -n -20 10' (pid 10 is idle thread) to see what would
        happen. Turns out that this operation isn't illegal, the system hung
        accordingly, and the console started displaying this message:

        swap_pager: indefinite wait buffer: device: ad0s1b, blkno: 776,
size: 4096

        over and over, although not rapidly.

        Using SCHED_ULE 1.27

>How-To-Repeat:
        'renice -n -20 10'
>Fix:

        setpriority() should return [EINVAL] for pid 10, or the process
        should have some flag set to disallow reniceing the idle process.



>Release-Note:
>Audit-Trail:

From: "Craig Reyenga" <craig@craig.afraid.org>
To: <freebsd-gnats-submit@FreeBSD.org>,
	<creyenga@connectmail.carleton.ca>
Cc:  
Subject: Re: kern/51318: Renice idle process not illegal; causes hang
Date: Thu, 26 Jun 2003 23:04:53 -0700

 Hi,
 
 This PR was submitted incorrectly, and is a total mess. I would like it to
 be closed, and hope that someone out there can test a recent -CURRENT box to
 see if this bug still exists. I would take it on personally but I no longer
 have a -current installation to test this with. I do not feel that this
 particular PR need stay open any longer.
 
 Thanks,
 
 -Craig Reyenga
 creyenga@connectmail.carleton.ca or,
 craig@craig.afraid.org
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Fri Jun 27 00:51:29 PDT 2003 
State-Changed-Why:  
Closed by submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51318 
>Unformatted:
 SEND-PR: -*- send-pr -*-
 SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
 SEND-PR: will all comments (text enclosed in `<' and `>').
 SEND-PR:
 SEND-PR: Please consult the following URL if you are not sure how to
 SEND-PR: fill out a problem report:
 SEND-PR: http://www.freebsd.org/doc/en/articles/problem-reports/
 SEND-PR:
 SEND-PR: Note that the Synopsis field is mandatory.
 SEND-PR:
 SEND-PR: Please note that (unless you state otherwise) if your report
 SEND-PR: includes a patch then it will be taken under the same license as
 SEND-PR: the one on the file(s) you want to change.
 SEND-PR:
 SEND-PR: BE ADVISED THAT FREEBSD PROBLEM REPORTS ARE PUBLIC INFORMATION AND
 SEND-PR: WILL BE PUBLISHED AS-IS ON THE PROJECT'S MAILING LISTS AND WEB
 SITES.
 SEND-PR: DO NOT SUBMIT ANY INFORMATION YOU DO NOT WANT MADE PUBLIC.
 SEND-PR:
 SEND-PR: For sensitive security issues, consider contacting the FreeBSD
 SEND-PR: security officer team (security-officer@freebsd.org) directly.
 SEND-PR:
 SEND-PR: Choose from the following categories:
 SEND-PR:
 SEND-PR: advocacy  alpha     bin       conf      docs      gnu
 SEND-PR: i386      ia64      java      kern      misc      ports
 SEND-PR: powerpc   sparc64   standards www
 SEND-PR:
 To: FreeBSD-gnats-submit@freebsd.org
 From: creyenga@connectmail.carleton.ca <craig>
 Reply-To: creyenga@connectmail.carleton.ca <craig>
 Cc:
 X-send-pr-version: 3.113
 X-GNATS-Notify:
 
 
