From owner-freebsd-current@freebsd.org Sat Aug 22 12:11:21 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5AC5A9C0888 for ; Sat, 22 Aug 2015 12:11:21 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 303411235 for ; Sat, 22 Aug 2015 12:11:21 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: by mailman.ysv.freebsd.org (Postfix) id 2FC7B9C0887; Sat, 22 Aug 2015 12:11:21 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F5479C0886 for ; Sat, 22 Aug 2015 12:11:21 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id D7EDC1232 for ; Sat, 22 Aug 2015 12:11:19 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:AADqUR/wv2Ao+v9uRHKM819IXTAuvvDOBiVQ1KB91ewcTK2v8tzYMVDF4r011RmSDd6dtqgP0rWempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lQciP1Y/uiKibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwuwwZgf8q9tZBXKPmZOx4COUAVHV1e1wyse/suB2LYQKP4jNIUGIbljJWBQ/J4VfhU8GinDH9s79H2SKZdej/RrMwVDHqu71uQRTrjCoCHyM+/3zajtRwyqlS9kHy7ydjypLZNdnGfMF1ebnQKJZDHTJM X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BQBAC7ZdhV/61jaINeg29pBoMfvC4KhTFKAoFkEQEBAQEBAQEBgQmCHYIHAQEEAQEBIAQnIAsQAgEIGBEZAgICJQEJJgIECAcEARwEiA0NrhWVOgEBAQEBAQEBAQEBAQEBAQEBARqLV4Q4AQEFFgEZFgUHgmmBQwWVNII/gkaFCYQsRpRTg2gCJoQZIjMBBoEHOoEEAQEB X-IronPort-AV: E=Sophos;i="5.15,728,1432612800"; d="scan'208";a="234182481" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-annu.net.uoguelph.ca with ESMTP; 22 Aug 2015 08:11:05 -0400 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 3AFA615F55D; Sat, 22 Aug 2015 08:11:05 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id zbJImiq-Kr4t; Sat, 22 Aug 2015 08:11:04 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 6A90615F563; Sat, 22 Aug 2015 08:11:04 -0400 (EDT) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id obdbclP5bJ_n; Sat, 22 Aug 2015 08:11:04 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 4782E15F55D; Sat, 22 Aug 2015 08:11:04 -0400 (EDT) Date: Sat, 22 Aug 2015 08:11:04 -0400 (EDT) From: Rick Macklem To: Joel Dahl Cc: current@freebsd.org Message-ID: <364980918.28933112.1440245464236.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <20150822115519.GA79434@ymer.vnode.se> References: <20150822115519.GA79434@ymer.vnode.se> Subject: Re: Kernel panic with fresh current, probably nfs related MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_28933110_1479675019.1440245464233" X-Originating-IP: [172.17.95.11] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF34 (Win)/8.0.9_GA_6191) Thread-Topic: Kernel panic with fresh current, probably nfs related Thread-Index: tNpJskO0t5y0ow2S80a/RAJDYkG/Jg== X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Sat, 22 Aug 2015 12:11:21 -0000 ------=_Part_28933110_1479675019.1440245464233 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Joel Dahl wrote: > Hi, > > I hit a kernel panic running a fresh -CURRENT today. This machine is my home > NFS > server and it exports src and obj to a bunch of other machines. During an > installkernel on one of the other machines (using the src and obj exports > from > the NFS server) the NFS server kernel paniced. > > I took a quick photo of the stack backtrace, since I didn't have time to > investigate further (but I haven't rebooted the machine yet, it's still > sitting at the db> prompt: > > http://mirror.vnode.se/upload/panic001-20150822.JPG > > Any ideas? The panic is "tcp_output: len > IP_MAXPACKET". This would be a TCP/TSO problem and not NFS. NFS just puts stuff on the TCP socket for transmission through the kernel rpc layer. (It happens to do so in a way that the TSO code gets tested in ways that a netperf test won't do.) Take a look at the net device driver for your hardware and see if if_hw_tsomax is set to > IP_MAXPACKET somehow. If it is, the value needs to be changed to IP_MAXPACKET or less. You can also try the attached patch for a related issue for net drivers that can't handle 35 transmit segments for a TSO segment, although this shouldn't problem wouldn't cause the above panic unless if_hw_tsomax wasn't set correctly, from what I can see looking at the code. If you just want to make the panic go away "disable TSO", but it would be nice if we knew what net driver you were using and how this was caused? rick > > -- > Joel > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > ------=_Part_28933110_1479675019.1440245464233 Content-Type: text/x-patch; name=tsooutby1.patch Content-Disposition: attachment; filename=tsooutby1.patch Content-Transfer-Encoding: base64 LS0tIG5ldGluZXQvdGNwX291dHB1dC5jLnNhdgkyMDE1LTA4LTIyIDA3OjQ4OjEyLjAwMDAwMDAw MCAtMDQwMAorKysgbmV0aW5ldC90Y3Bfb3V0cHV0LmMJMjAxNS0wOC0yMiAwNzo1MDo1Mi4wMDAw MDAwMDAgLTA0MDAKQEAgLTc5NCw3ICs3OTQsMTMgQEAgc2VuZDoKIAogCQkJLyogZXh0cmFjdCBU U08gaW5mb3JtYXRpb24gKi8KIAkJCWlmX2h3X3Rzb21heCA9IHRwLT50X3Rzb21heDsKLQkJCWlm X2h3X3Rzb21heHNlZ2NvdW50ID0gdHAtPnRfdHNvbWF4c2VnY291bnQ7CisJCQkvKgorCQkJICog U3VidHJhY3QgMSBmb3IgdGhlIHRjcC9pcCBoZWFkZXIgbWJ1ZiB0aGF0CisJCQkgKiB3aWxsIGJl IHByZXBlbmRlZCB0byB0aGlzIG1idWYgY2hhaW4gYWZ0ZXIKKwkJCSAqIHRoZSBjb2RlIGluIHRo aXMgc2VjdGlvbiBsaW1pdHMgdGhlIG51bWJlciBvZgorCQkJICogbWJ1ZnMgaW4gdGhlIGNoYWlu IHRvIGlmX2h3X3Rzb21heHNlZ2NvdW50LgorCQkJICovCisJCQlpZl9od190c29tYXhzZWdjb3Vu dCA9IHRwLT50X3Rzb21heHNlZ2NvdW50IC0gMTsKIAkJCWlmX2h3X3Rzb21heHNlZ3NpemUgPSB0 cC0+dF90c29tYXhzZWdzaXplOwogCiAJCQkvKgo= ------=_Part_28933110_1479675019.1440245464233--