From owner-freebsd-net@FreeBSD.ORG Mon Jul 1 11:22:35 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C7BD3418 for ; Mon, 1 Jul 2013 11:22:35 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward18.mail.yandex.net (forward18.mail.yandex.net [IPv6:2a02:6b8:0:1402::3]) by mx1.freebsd.org (Postfix) with ESMTP id 7DF251374 for ; Mon, 1 Jul 2013 11:22:35 +0000 (UTC) Received: from smtp18.mail.yandex.net (smtp18.mail.yandex.net [95.108.252.18]) by forward18.mail.yandex.net (Yandex) with ESMTP id 078451780E38 for ; Mon, 1 Jul 2013 15:22:33 +0400 (MSK) Received: from smtp18.mail.yandex.net (localhost [127.0.0.1]) by smtp18.mail.yandex.net (Yandex) with ESMTP id D612618A04A8 for ; Mon, 1 Jul 2013 15:22:33 +0400 (MSK) Received: from v10-164-205.yandex.net (v10-164-205.yandex.net [84.201.164.205]) by smtp18.mail.yandex.net (nwsmtp/Yandex) with ESMTP id E7gXCMys9J-MXbmtBdU; Mon, 1 Jul 2013 15:22:33 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1372677753; bh=NR0NfC5eeLaBm0YfjhwTMd3Xl08OuP+8jcfHLt+ALZY=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=LkMW7quHcm4yBQLUUDsMTXWdVj+jLQ3CciSgvYimM/uuIRQgFs/e6pQuWZsAorO/H jPRpjUzYC5XuY9YSA6wBy0vRf45DZa7P1pgppHe+mkHw8c5taKU8qhH4iiFPwmhcrk AM2+UUo4mmUdScEhT569hQixm+RrV0L+t3jZN5ag= Authentication-Results: smtp18.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <51D165CD.7070508@yandex.ru> Date: Mon, 01 Jul 2013 15:19:41 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Problem with fwip(4) and limited size ll_addr in the struct llentry X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2013 11:22:35 -0000 Hi, In the kern/176596 described the easy repeatable panic. I found that it occurs, because struct llentry by default has only 8 bytes to store hardware address, but fwip(4) has 16-bytes hw address. And it overwrites next field of struct llentry. Since fwip(4) can be loaded in runtime, we can't use #ifdefs with increased size here. So, what the best way to fix this? -- WBR, Andrey V. Elsukov