From owner-freebsd-current@freebsd.org Sat Aug 22 12:57:43 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 1050C9BD088 for ; Sat, 22 Aug 2015 12:57:43 +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 DC3C124E for ; Sat, 22 Aug 2015 12:57:42 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: by mailman.ysv.freebsd.org (Postfix) id D9DA59BD087; Sat, 22 Aug 2015 12:57:42 +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 BE8A39BD085 for ; Sat, 22 Aug 2015 12:57:42 +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 49EB824C; Sat, 22 Aug 2015 12:57:41 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:7Db8fB1C85C95KlcsmDT+DRfVm0co7zxezQtwd8ZsegeLPad9pjvdHbS+e9qxAeQG96LsLQZ0aGM6OjJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6JyZntnLrps7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYk7sb+sVBSaT3ebgjBfwdVWx+cjN92Mq+lx7OSUOj73sYGjEUlRdMKxbD6x33GIz85G+yreBnxS+dFcPsQL0+Qjjk6L1kGzHyjyJSDT8y8ynyg8dziK9e6Ea7ohV0wIrZZamIM/Vjc6fFfZURTDwSDY5qSyVdD9bkPMM0BO0bMLMd9tGlqg== X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DuBAD8cNhV/61jaINeg29pBoMfukWBbQqCQ4JuSgKBYxMBAQEBAQEBAYEJgh2CBwEBBAEBASArIAsQAgEIGAICDRkCAicBCSYCBAEHBwQBHASIDQ2uHpU6AQEBAQEBAQEBAQEBAQEBAQEBARmBIoo1hDIGAQEFFzQHgmmBQwWVNIUGhQqEc5g9AiaEGiIzAQZ/CBcjgQQBAQE X-IronPort-AV: E=Sophos;i="5.15,728,1432612800"; d="scan'208";a="234188924" 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:57:40 -0400 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 0E85915F55D; Sat, 22 Aug 2015 08:57:41 -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 JSUGDYxwUmgx; Sat, 22 Aug 2015 08:57:40 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 7F9DF15F563; Sat, 22 Aug 2015 08:57:40 -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 Cjl8_nVV0EWp; Sat, 22 Aug 2015 08:57:40 -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 6367A15F55D; Sat, 22 Aug 2015 08:57:40 -0400 (EDT) Date: Sat, 22 Aug 2015 08:57:40 -0400 (EDT) From: Rick Macklem To: Joel Dahl , sbruno@freebsd.org Cc: current@freebsd.org Message-ID: <914810061.28949434.1440248260373.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: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.10] 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: meu62l4q3cEivOWG3PU3qsfNX0cRgQ== 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:57:43 -0000 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? > I'm going to guess that you're using an "em" net driver, since that is the only one that sets if_hw_tsomax > IP_MAXPACKET (65535) from what I can see. Sean, EM_TSO_SIZE is defined as (65535 + sizeof(struct ether_vlan_header)), which makes it > IP_MAXPACKET. The value of if_hw_tsomax must be <= IP_MAXPACKET and I'm guessing this is what caused the above panic. (Someday it would be nice if TSO segments > IP_MAXPACKET could be handled, but that will take changes in the ip layer and router software so that a bogus ip_len field doesn't cause problems.) if_hw_tsomax needs to be the maximum segment size that the driver can accept from IP. Since the driver adds any MAC header after accepting the TSO segment from the IP layer, it shouldn't include MAC header(s) in the value for if_hw_tsomax. (If its limit includes MAC header(s), it needs to subtract those out when setting if_hw_tsomax, not add them.) Since I am working up a patch for the value of if_hw_tsomaxsegcount, I think I'll add a check for > IP_MAXPACKET for if_hw_tsomax as well. 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" >