kern/51318: Renice idle process not illegal; causes hang
Craig Reyenga
creyenga at connectmail.carleton.ca
Wed Apr 23 10:00:31 PDT 2003
>Number: 51318
>Category: kern
>Synopsis: Renice idle process not illegal; causes hang
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 23 10:00:16 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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:
>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 at 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 at freebsd.org
From: creyenga at connectmail.carleton.ca <craig>
Reply-To: creyenga at connectmail.carleton.ca <craig>
Cc:
X-send-pr-version: 3.113
X-GNATS-Notify:
More information about the freebsd-bugs
mailing list