Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 12:55:45 -0400
From:      "Craig Reyenga" <creyenga@connectmail.carleton.ca>
To:        <freebsd-gnats-submit@FreeBSD.org>
Subject:   kern/51318: Renice idle process not illegal; causes hang
Message-ID:  <000f01c309b9$350d2700$0200000a@fireball>
Resent-Message-ID: <200304231700.h3NH0Hjl088858@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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:
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c309b9$350d2700$0200000a>