From owner-freebsd-bugs Sat Sep 14 5:10: 9 2002 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 DC6D437B400 for ; Sat, 14 Sep 2002 05:10:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4421843E6E for ; Sat, 14 Sep 2002 05:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8ECA5JU013119 for ; Sat, 14 Sep 2002 05:10:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8ECA5OH013118; Sat, 14 Sep 2002 05:10:05 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C992A37B400 for ; Sat, 14 Sep 2002 05:08:35 -0700 (PDT) Received: from xkulesh.vol.cz (xkulesh.vol.cz [195.250.154.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59BD343E4A for ; Sat, 14 Sep 2002 05:08:28 -0700 (PDT) (envelope-from dan@xkulesh.vol.cz) Received: from xkulesh.vol.cz (localhost [127.0.0.1]) by xkulesh.vol.cz (8.12.6/8.12.6) with ESMTP id g8EC8L2K000444 for ; Sat, 14 Sep 2002 14:08:22 +0200 (CEST) (envelope-from dan@xkulesh.vol.cz) Received: (from dan@localhost) by xkulesh.vol.cz (8.12.6/8.12.6/Submit) id g8EC8KA6000443; Sat, 14 Sep 2002 14:08:20 +0200 (CEST) Message-Id: <200209141208.g8EC8KA6000443@xkulesh.vol.cz> Date: Sat, 14 Sep 2002 14:08:20 +0200 (CEST) From: Dan Lukes Reply-To: Dan Lukes To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/42770: MUTEX_DEBUG broke CURRENT kernel Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42770 >Category: kern >Synopsis: MUTEX_DEBUG broke CURRENT kernel >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 14 05:10:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dan Lukes >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: sys/kern/syscalls.master,v 1.121 2002/08/19 20:01:31 sys/kern/kern_prot.c,v 1.164 2002/08/01 17:47:55 sys/kern/kern_proc.c,v 1.147 2002/09/11 08:13:53 sys/kern/kern_mutex.c,v 1.107 2002/09/11 08:13:53 sys/vm/vm_glue.c,v 1.155 2002/09/11 08:13:55 sys/vm/vm_map.c,v 1.266 2002/08/24 17:52:08 >Description: MUTEX_DEBUG cause "mutex Giant not owned at vm_map.c:383" (it's triggered during mounting root). The content of stack: setsid->enterpgrp->mtx_init-> ->mtx_validate->kernacc->vm_map_check_protection->_vm_map_lock_read->_mtx_assert syscall setsid is marked as MPS_SAFE, so it doesn't obtain Giant lock, but _vm_map_lock_read required it. >How-To-Repeat: Compile kernel with MUTEX_DEBUG >Fix: workaround - doesn't compile kernel with MUTEX_DEBUG I can't supply the fix, but see the note in mtx_validate (kern_mutex.c) - it seems to be valid not only on alphas. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message