From owner-freebsd-current@FreeBSD.ORG Tue Nov 5 03:09:48 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CD50CB0D for ; Tue, 5 Nov 2013 03:09:48 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8720D2683 for ; Tue, 5 Nov 2013 03:09:48 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id C283721E80 for ; Mon, 4 Nov 2013 22:09:46 -0500 (EST) Received: from web3 ([10.202.2.213]) by compute6.internal (MEProxy); Mon, 04 Nov 2013 22:09:46 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=7oHea4PLsvtX7yQB8j+BgbShSu4=; b=CCw KguTdziIpOt+9fwLTEQ36udi44Mx3jLtZ1W30MRhMGoqGMDXT58Qqb6j3Q4nzPjr n1WwkUCpb1BYpqmSffHKqq8/2XE2V4FwXGXFMaYDwPJAs6s8epiN0YG/f6wUE6M/ 68PyQ59tRYhfkjRtDWubs9Aj1b2TzFIL84TiizD0= Received: by web3.nyi.mail.srv.osa (Postfix, from userid 99) id 9C3E61057A9; Mon, 4 Nov 2013 22:09:46 -0500 (EST) Message-Id: <1383620986.8192.43024305.62E09DB9@webmail.messagingengine.com> X-Sasl-Enc: I+nRXqNnyfxI69xNGu4ZmCb54LlOScgSGSQV6U9OXrTu 1383620986 From: Mark Felder To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-d4893488 In-Reply-To: References: Subject: Re: Automated submission of kernel panic reports: sysutils/panicmail Date: Mon, 04 Nov 2013 21:09:46 -0600 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 05 Nov 2013 03:09:49 -0000 On Mon, Nov 4, 2013, at 20:26, Thomas Mueller wrote: > > Hi all, > > > After considerable review on freebsd-hackers (thanks dt71 and jilles!) I have > > now added sysutils/panicmail to the FreeBSD ports tree. If you install this > > and add > > panicmail_enable="YES" > > to your /etc/rc.conf, a panic report will be generated and sent to root@ for > > you to review and submit (via email). You can skip the reviewing step and > > submit panics automatically by setting panicmail_autosubmit="YES". > > > The panics submitted are encrypted to an RSA key which I hold in order to keep > > them secure in transit; and I intend to keep the raw panic reports confidential > > except to the minimum extent necessary for other developers to help me process > > the incoming reports. > > > If I receive enough panic reports to be useful, I hope to provide developers > > with aggregate statistics. This may include: > > > * regular email reports listing the "top panics", to help guide developers > > towards the most fertile areas for stability improvements; > > > * email to specific developers alerting them to recurring panics in code they > > maintain (especially if it becomes clear that the panic has been recently > > introduced); and > > > * guidance to re@ and secteam@ about how often a particular panic occurs if > > an errata notice is being considered > > > as well as other yet-to-be-imagined reports of a similarly aggregate and > > anonymized nature. > > > So please install the sysutils/panicmail port and enable it in rc.conf! This > > all depends on getting useful data, and I can't do that without your help. > > -- > > Colin Percival > > Security Officer Emeritus, FreeBSD | The power to serve > > Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid > > Question that arises is how does the system know where to send the email, > and through what SMTP server, especially if panicmail_autosubmit="YES". > Every computer on the planet has the capability of being able to send email directly without an SMTP server. The only question is if the receiving end is willing to accept it, or discard it as spam. > In the case of a kernel panic, wouldn't the system crash/freeze, and > would it then be able to compose an email message? > This is all handled on the next boot after the panic. > I use mail/mpop and mail/msmtp rather than messing with sendmail or > postfix; have multiple email accounts and inboxes. > Does it provide a compatible /usr/sbin/sendmail binary? If so, it will just work^TM. > Now come to think of it, I don't think I ever sent an email from FreeBSD > as root, only as nonroot. > > Something like panicmail ought to be ported to NetBSD pkgsrc, considering > that NetBSD seems so much more unstable and crash-prone than FreeBSD on > my hardware. > I hope more projects pick this up too. :-)