Date: Tue, 13 Apr 2021 23:02:41 GMT From: Tai-hwa Liang <avatar@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d9b61e7153c6 - main - if_firewire: fixing panic upon packet reception for VNET build Message-ID: <202104132302.13DN2fCV006075@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by avatar: URL: https://cgit.FreeBSD.org/src/commit/?id=d9b61e7153c64b141436b4d9619b166c6d35a0a6 commit d9b61e7153c64b141436b4d9619b166c6d35a0a6 Author: Tai-hwa Liang <avatar@FreeBSD.org> AuthorDate: 2021-04-10 15:32:27 +0000 Commit: Tai-hwa Liang <avatar@FreeBSD.org> CommitDate: 2021-04-13 22:59:58 +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 --- 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?202104132302.13DN2fCV006075>