Received: by mail.netbsd.org (Postfix, from userid 605) id 0D26514A14B; Thu, 1 Aug 2013 19:33:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B89DB14A14B for ; Thu, 1 Aug 2013 19:33:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Gx4hhyo8Zl5i for ; Thu, 1 Aug 2013 19:33:22 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id EC54B14A14A for ; Thu, 1 Aug 2013 19:33:21 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id A567296; Thu, 1 Aug 2013 19:33:21 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 1 Aug 2013 19:33:21 +0000 From: "Matthias Drochner" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20130801193321.A567296@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Matthias Drochner" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: drochner Date: Thu Aug 1 19:33:21 UTC 2013 Modified Files: src/sys/kern: uipc_usrreq.c Log Message: In unp_externalize, don't do anything if an SCM_RIGHTS control message was sent with zero file descriptors in it. Otherwise, a zero-length temporary storage would be allocated which triggers panic on DIAGNOSTIC kernels (but is harmless for release kernels). reviewed by Taylor R Campbell To generate a diff of this commit: cvs rdiff -u -r1.142 -r1.143 src/sys/kern/uipc_usrreq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.