Re: Kernel panic with fresh current, probably nfs related

From: Rick Macklem <rmacklem_at_uoguelph.ca>
Date: Sat, 22 Aug 2015 08:11:04 -0400 (EDT)
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_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 

Received on Sat Aug 22 2015 - 10:11:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:59 UTC