[Bug 211836] Kernel panic with net.isr enabled

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 15 13:44:42 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211836

--- Comment #7 from Andrey V. Elsukov <ae at FreeBSD.org> ---
So, it looks like this is enough to fix the panic:

Index: sys/net/netisr.c
===================================================================
--- sys/net/netisr.c    (revision 304101)
+++ sys/net/netisr.c    (working copy)
@@ -1014,7 +1014,7 @@ netisr_queue_internal(u_int proto, struct mbuf *m,

        dosignal = 0;
        error = 0;
-       nwsp = DPCPU_ID_PTR(cpuid, nws);
+       nwsp = DPCPU_ID_PTR(nws_array[cpuid % nws_count], nws);
        npwp = &nwsp->nws_work[proto];
        NWS_LOCK(nwsp);
        error = netisr_queue_workstream(nwsp, proto, npwp, m, &dosignal);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list