arprequest triggered panic

Nikos Vassiliadis nvass at gmx.com
Wed Nov 23 15:07:34 UTC 2011


On 11/23/2011 3:53 PM, Marko Zec wrote:
> On Wednesday 23 November 2011 14:17:11 Nikos Vassiliadis wrote:
>> On 11/23/2011 1:22 PM, Gleb Smirnoff wrote:
>>> I'd suspect VIMAGE. Can you please try w/o it and if it appears to be
>>> VIMAGE-related, then please file a PR.
>>
>> It seems VIMAGE related. I'll ask at virtualization at .
>
>  From the backtrace it looks like the curvnet context is not properly set in a
> timer-driven call graph originating at lagg_port_setlladdr().
>
> Perhaps this (untested) patch could help:
>
> --- //depot/user/zec/vimage_8/src/sys/net/if_lagg.c     2011-09-06
> 05:45:07.000000000 0000
> +++ /u/marko/p4/zec/vimage_8/src/sys/net/if_lagg.c      2011-09-06
> 05:45:07.000000000 0000
> @@ -468,7 +468,9 @@
>                  ifp = llq->llq_ifp;
>
>                  /* Set the link layer address */
> +               CURVNET_SET(ifp->if_vnet);
>                  error = if_setlladdr(ifp, llq->llq_lladdr, ETHER_ADDR_LEN);
> +               CURVNET_RESTORE();
>                  if (error)
>                          printf("%s: setlladdr failed on %s\n", __func__,
>                              ifp->if_xname);

Yes, that fixes the panic.

Thanks Marko, Nikos


More information about the freebsd-net mailing list