From owner-freebsd-current@FreeBSD.ORG Mon Dec 10 23:10:59 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5251DAC1; Mon, 10 Dec 2012 23:10:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id D7D7E8FC18; Mon, 10 Dec 2012 23:10:58 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fo14so3993039vcb.13 for ; Mon, 10 Dec 2012 15:10:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=jVSaj4ddHb8ClAuhxbdz12tOufj15Iy1jdIcaEojd4o=; b=cGtzDIbbvBgm9IL57W/nyW3FIyIdgbX9h5cgblcAp8dW7sfQ3uuw6j5ivMczE0n3DI wNwx6JAwQo8rSFo5535gSJ0D7crqTy0/5B2zJnLu2xG9MSq3Y2Bd2IjXQ8lh3wjxLyq8 hadOKVUExa2f+kiUlWSG9Z7tOIIVYGtE6jlIXvIab33B713neBKfnWg7DuJNTavGn6BE 4KFB6GSFCftSFGzPL2VDMB8npFEReuYUIV2C4PSe80XSRj75YmhrIb1fBdrUpQCFPb0A V8yUqXo72XNZFi12odWoeS3uCQgSt9OyI1YRorlrpeNUEto4C7OB8D2cEBIORtXzPHuy LQwg== MIME-Version: 1.0 Received: by 10.52.98.36 with SMTP id ef4mr8696461vdb.104.1355181057877; Mon, 10 Dec 2012 15:10:57 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.58.201.202 with HTTP; Mon, 10 Dec 2012 15:10:57 -0800 (PST) In-Reply-To: References: Date: Mon, 10 Dec 2012 15:10:57 -0800 X-Google-Sender-Auth: 3G7VBInCSBJYmiogDZC4pCVBkyE Message-ID: Subject: Re: "Memory modified after free" - by whom? From: Adrian Chadd To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org, FreeBSD Current 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: Mon, 10 Dec 2012 23:10:59 -0000 9216 sounds like a jumbo frame mbuf. So the NIC is writing to an mbuf after it's finalised/freed. I have a similar bug showing up on ath(4) RX. :( adrian On 10 December 2012 14:22, Garrett Cooper wrote: > I noticed this while checking the logs on one of my test boxes > after restarting the network. Any idea where I should start looking > into this (has IPv6 enabled but wasn't using it, em/cxgbe/ixgbe > interfaces with the ixgbe interfaces lagged previously, but now not)? > It looks suspiciously like the same size as a jumbo frame, but I'm not > 100% sure if that's the real problem. > Thanks, > -Garrett > > Dec 10 14:03:12 wf158 kernel: em0: link state changed to DOWN > Dec 10 14:03:13 wf158 kernel: ix0: link state changed to DOWN > Dec 10 14:03:13 wf158 kernel: ix0: link state changed to UP > Dec 10 14:03:13 wf158 kernel: ix1: link state changed to DOWN > Dec 10 14:03:13 wf158 kernel: ix1: link state changed to UP > Dec 10 14:03:13 wf158 kernel: ix0: link state changed to DOWN > Dec 10 14:03:13 wf158 kernel: ix0: link state changed to UP > Dec 10 14:03:15 wf158 kernel: em0: link state changed to UP > Dec 10 14:03:15 wf158 dhclient: New IP Address (em0): 10.7.169.89 > Dec 10 14:03:15 wf158 dhclient: New Subnet Mask (em0): 255.255.240.0 > Dec 10 14:03:15 wf158 dhclient: New Broadcast Address (em0): 10.7.175.255 > Dec 10 14:03:15 wf158 dhclient: New Routers (em0): 10.7.160.1 > Dec 10 14:03:16 wf158 kernel: ix0: link state changed to DOWN > Dec 10 14:03:16 wf158 kernel: ix0: link state changed to UP > Dec 10 14:03:31 wf158 kernel: in6_purgeaddr: err=65, destination > address delete failed > Dec 10 14:03:31 wf158 dhclient[4539]: My address (10.7.169.89) was > deleted, dhclient exiting > Dec 10 14:03:32 wf158 dhclient[4521]: short write: wanted 20 got 0 bytes > Dec 10 14:03:32 wf158 dhclient[4521]: exiting. > Dec 10 14:03:33 wf158 kernel: em0: link state changed to DOWN > Dec 10 14:03:33 wf158 kernel: ix1: link state changed to DOWN > Dec 10 14:03:34 wf158 kernel: ix1: link state changed to UP > Dec 10 14:03:34 wf158 kernel: ix1: link state changed to DOWN > Dec 10 14:03:34 wf158 kernel: ix1: link state changed to UP > Dec 10 14:03:34 wf158 kernel: ix0: link state changed to DOWN > Dec 10 14:03:34 wf158 kernel: ix0: link state changed to UP > Dec 10 14:03:34 wf158 kernel: ix1: link state changed to DOWN > Dec 10 14:03:34 wf158 kernel: ix1: link state changed to UP > Dec 10 14:03:36 wf158 kernel: em0: link state changed to UP > Dec 10 14:03:36 wf158 dhclient: New IP Address (em0): 10.7.169.89 > Dec 10 14:03:36 wf158 dhclient: New Subnet Mask (em0): 255.255.240.0 > Dec 10 14:03:36 wf158 dhclient: New Broadcast Address (em0): 10.7.175.255 > Dec 10 14:03:36 wf158 dhclient: New Routers (em0): 10.7.160.1 > Dec 10 14:05:34 wf158 kernel: Memory modified after free > 0xffffff81c016d000(9216) val=ffffffff @ 0xffffff81c016d000 > Dec 10 14:05:35 wf158 kernel: Memory modified after free > 0xffffff81b5cdc000(9216) val=ffffffff @ 0xffffff81b5cdc000 > > # uname -a > FreeBSD wf158.west.isilon.com 10.0-CURRENT FreeBSD 10.0-CURRENT #1 > r+2760369-dirty: Mon Dec 10 08:04:46 PST 2012 > root@wf158.west.isilon.com:/usr/obj/usr/src/sys/ISI-GENERIC amd64 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"