From owner-freebsd-current@FreeBSD.ORG Wed Jan 12 17:28:20 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03DBB1065673 for ; Wed, 12 Jan 2011 17:28:20 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 7A0628FC0A for ; Wed, 12 Jan 2011 17:28:19 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id D8277E71A3; Wed, 12 Jan 2011 17:28:17 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=mail; bh=fKl4qcp75YvN dad3WZToAZCdLQs=; b=J40fPHoubUAjSN6fonLX46RhlXfkxH1A74f6xe8Vu6Ld rAvBShW8euHclhXaKo7gU4gMZgA5R9nkRpRB5I1BKFsuoN5eZhxm3mlkXDzOlHQ0 n+0ZJCEIKJGQVduMYRD9/65uNJVRDD/O/x1LhrzIEuAAA4w2XoYKOOsCYafdOsE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=date:from:to :cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=mail; b=akavz+ tMxz+g1iDVGVAKsACOyQ1mW7MJo+/GN3k2WYZDz8PjniKbQwmKgrxWmOiCbp0OkP i2MU5SWRP5w2ycW5fIdp6e2yE0sWfFoNKt4eIdUaQ1KchZ+gs47huOO4ZuETRhB9 ApFiOCLnC4MaJrgJnXHPT3otFJBHSMBkBl/KE= Received: from unknown (client-86-27-42-68.glfd.adsl.virginmedia.com [86.27.42.68]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 9225BE71A2; Wed, 12 Jan 2011 17:28:17 +0000 (GMT) Date: Wed, 12 Jan 2011 17:28:15 +0000 From: Bruce Cran To: "Nils Holland" Message-ID: <20110112172815.000072d8@unknown> In-Reply-To: References: X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David DEMELIER , "C. P. Ghost" , freebsd-current@freebsd.org Subject: Re: why panic(9) ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2011 17:28:20 -0000 On Wed, 12 Jan 2011 13:43:10 +0100 "Nils Holland" wrote: > Having a job in which I have to support people working on Windows, I > can say for sure that there's no such thing in Windows that prevents > third-party system level stuff to bring down the system. ;-) In Windows there's a tool that runs when you build a driver called Microsoft Auto Code Review that checks for things like buffer overflows etc. One thing it flags is if your driver calls KeBugCheckEx and warns that it's normally better to log the error and stop processing data instead of bringing the system down. I always get that warning because my driver was ported from FreeBSD, including a panic() function. -- Bruce Cran