From owner-freebsd-stable@FreeBSD.ORG Sat Jun 16 21:14:58 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C9DA6106566B for ; Sat, 16 Jun 2012 21:14:58 +0000 (UTC) (envelope-from dr@roffiaen.com) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id 5A0728FC15 for ; Sat, 16 Jun 2012 21:14:56 +0000 (UTC) Received: from [192.168.1.25] (unknown [78.220.40.62]) by smtp5-g21.free.fr (Postfix) with ESMTP id 26E70D48079 for ; Sat, 16 Jun 2012 23:14:51 +0200 (CEST) Message-ID: <4FDCF74A.4010305@roffiaen.com> Date: Sat, 16 Jun 2012 23:14:50 +0200 From: David ROFFIAEN User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120606 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-stable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ggate problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2012 21:14:58 -0000 Hi list, I encoutered a panic with ggatec : I misconfigured gg.exports on the server with bad IP address for allowed client. Resulting a panic when creating ggatec on the client. Investigating the panic a I discovered at line 362 in g_gatec.c, the ggio->gctl_sectorsize variable is not checked to be > 0 resulting a "Fatal trap 18: integer divide fault while in kernel mode", thus because there is no ggated allowed for my client IP (in my misconfigured gg.exports) in my case. It would be better to check before the 'if' at line 362, that the partition we are trying to import with ggatec is available and otherwise give an explicit warning instead of letting the kernel panicing. Sorry for my bad english and the poor description of the problem David