From owner-freebsd-net@FreeBSD.ORG Tue Nov 23 06:57:02 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E3211065672 for ; Tue, 23 Nov 2010 06:57:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 261318FC1B for ; Tue, 23 Nov 2010 06:57:01 +0000 (UTC) Received: by wyb35 with SMTP id 35so92012wyb.13 for ; Mon, 22 Nov 2010 22:57:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=u1JSJKZpEZU4mJ4JsHJxvY/xibRh2qKCE9M5sR9Ixs8=; b=jf3AFS3PlrCTWyF6gp/JjLlTxNvNlZZz7X7a017dxuvTzoegqghPAhwtwl3rjisOge q11lEeDxJdOeNVCzxrUeVAt86lzhW/5h25wrmbvqw57G5bKZeLNx2M0D/DTPgfK0UvGn VNG2XaeZqLVbqevcUwgfR/4U6lmKsapE7Esas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=VU+YH89FvithZS6SpqYslnhUiHe4ZB17iBOD8jIkkcdFfa3ett+bO3k6XldOQfEl8a rUJ/icLkR7rbsaXRrJMeVjDH2BZr+f9pDSVW/6hleEi4NduSBijz46FPdNnSTtHuj2CM z/MpKqyEtqJxGq1WE9c5qwXN6rp6V4UTHPbZQ= MIME-Version: 1.0 Received: by 10.216.157.6 with SMTP id n6mr6147181wek.35.1290493856047; Mon, 22 Nov 2010 22:30:56 -0800 (PST) Received: by 10.216.65.210 with HTTP; Mon, 22 Nov 2010 22:30:56 -0800 (PST) Date: Tue, 23 Nov 2010 14:30:56 +0800 Message-ID: From: Adrian Chadd To: FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1 Cc: Luigi Rizzo Subject: ipfw and bridge: unaligned payload pointers panicing perfectly performing MIPS boxes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 06:57:02 -0000 Hi everyone (and Luigi especially!) I've found that enabling ipfw for bridge interfaces panics my MIPS boards. A bit of digging shows that the payload mbuf isn't aligned as passed into ipfw_chk(), and this is causing aligned access exceptions. It likely isn't a problem on i386/ia64 because they are happy with unaligned access. :-) I'm going to try and patch it locally by copying the mbuf payload into a new, temporary mbuf that's aligned; but I have no idea what the "right" solution for the stack is. Ideas? :) Adrian