From owner-cvs-src@FreeBSD.ORG Thu Nov 2 11:47:39 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 879A116A403; Thu, 2 Nov 2006 11:47:39 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4545D43D64; Thu, 2 Nov 2006 11:47:39 +0000 (GMT) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kA2Bld16036267; Thu, 2 Nov 2006 11:47:39 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kA2Bld9Q036266; Thu, 2 Nov 2006 11:47:39 GMT (envelope-from kib) Message-Id: <200611021147.kA2Bld9Q036266@repoman.freebsd.org> From: Konstantin Belousov Date: Thu, 2 Nov 2006 11:47:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/ddb db_command.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 11:47:39 -0000 kib 2006-11-02 11:47:38 UTC FreeBSD src repository Modified files: sys/ddb db_command.c Log: On trap while inside ddb, the trap handler calls kdb_reenter(), that longjmp to the default context. As result, "alltrace" command may be prematurely terminated (without error message). This is happens, for instance, when system is low on memory and referenced page in kernel-mode thread stack is swapped out. Protect "alltrace" against termination on trap by setting temporary kdb_jmpbuf context. Submitted by: Peter Holm Revision Changes Path 1.72 +14 -6 src/sys/ddb/db_command.c