Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2016 13:44:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 211836] Kernel panic with net.isr enabled
Message-ID:  <bug-211836-2472-cexX4JCXwZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211836-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211836-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211836

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

Index: sys/net/netisr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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 =3D 0;
        error =3D 0;
-       nwsp =3D DPCPU_ID_PTR(cpuid, nws);
+       nwsp =3D DPCPU_ID_PTR(nws_array[cpuid % nws_count], nws);
        npwp =3D &nwsp->nws_work[proto];
        NWS_LOCK(nwsp);
        error =3D netisr_queue_workstream(nwsp, proto, npwp, m, &dosignal);

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211836-2472-cexX4JCXwZ>