Date: Mon, 3 May 2021 07:53:08 GMT From: Tai-hwa Liang <avatar@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 89ed20a9b6b1 - stable/13 - if_firewire: fixing panic upon packet reception for VNET build Message-ID: <202105030753.1437r81c049317@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by avatar: URL: https://cgit.FreeBSD.org/src/commit/?id=89ed20a9b6b1ae45eb8afba377ef80b202b6d767 commit 89ed20a9b6b1ae45eb8afba377ef80b202b6d767 Author: Tai-hwa Liang <avatar@FreeBSD.org> AuthorDate: 2021-04-10 15:32:27 +0000 Commit: Tai-hwa Liang <avatar@FreeBSD.org> CommitDate: 2021-05-03 07:51:53 +0000 if_firewire: fixing panic upon packet reception for VNET build netisr_dispatch_src() needs valid VNET pointer or firewire_input() will panic when receiving a packet. Reviewed by: glebius MFC after: 2 weeks (cherry picked from commit d9b61e7153c64b141436b4d9619b166c6d35a0a6) --- sys/net/if_fwsubr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c index d6296bf33b65..29ca2f713e8e 100644 --- a/sys/net/if_fwsubr.c +++ b/sys/net/if_fwsubr.c @@ -634,7 +634,9 @@ firewire_input(struct ifnet *ifp, struct mbuf *m, uint16_t src) } M_SETFIB(m, ifp->if_fib); + CURVNET_SET_QUIET(ifp->if_vnet); netisr_dispatch(isr, m); + CURVNET_RESTORE(); } int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105030753.1437r81c049317>