From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 23 10:00:31 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DACD637B47F for ; Wed, 23 Apr 2003 10:00:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6993444034 for ; Wed, 23 Apr 2003 10:00:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3NH0HUp088859 for ; Wed, 23 Apr 2003 10:00:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3NH0Hjl088858; Wed, 23 Apr 2003 10:00:17 -0700 (PDT) Resent-Date: Wed, 23 Apr 2003 10:00:17 -0700 (PDT) Resent-Message-Id: <200304231700.h3NH0Hjl088858@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Craig Reyenga" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A36037B40D for ; 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 ; 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]) h3NGu7C7004198 for ; 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" To: Subject: kern/51318: Renice idle process not illegal; causes hang X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 17:00:31 -0000 >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 >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 Reply-To: creyenga@connectmail.carleton.ca Cc: X-send-pr-version: 3.113 X-GNATS-Notify: