| Summary: | Disabling multicast on vlan interface caused kernel panic | ||
|---|---|---|---|
| Product: | Base System | Reporter: | land <land> |
| Component: | kern | Assignee: | Hajimu UMEMOTO <ume> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.6-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
land
2002-07-18 08:30:01 UTC
Could someone tell me the file where the ROUNDUP() macro/function is defined? Lucas State Changed From-To: open->feedback Does this problem persist on recent releases? Adding to audit trail ----- Forwarded message from Andrey Lakhno <land@dnepr.net> ----- X-Original-To: kkenn@localhost Delivered-To: kkenn@localhost.obsecurity.org Delivered-To: kris@freebsd.org Date: Mon, 14 Jul 2003 23:03:29 +0300 From: Andrey Lakhno <land@dnepr.net> To: Kris Kennaway <kris@FreeBSD.org> Subject: Re: kern/40723: Disabling multicast on vlan interface caused kernel panic In-Reply-To: <200307140954.h6E9sCxR088220@freefall.freebsd.org> X-UIDL: b8a983b5caa08d3a01bfb26f00a59285 X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.13.7.2 Hello, On Mon, 14 Jul 2003, Kris Kennaway wrote: > Synopsis: Disabling multicast on vlan interface caused kernel panic > > State-Changed-From-To: open->feedback > State-Changed-By: kris > State-Changed-When: Mon Jul 14 02:54:02 PDT 2003 > State-Changed-Why: > Does this problem persist on recent releases? Yes. I can reproduce it on 4.8-RELEASE. > http://www.freebsd.org/cgi/query-pr.cgi?pr=40723 -- Andrey Lakhno, land-ripe ----- End forwarded message ----- This problem is caused by not initializing ifma properly.
Following patch fix this problem for me.
--- if.c 14 Jun 2003 08:22:02 -0000 1.34
+++ if.c 25 Jun 2003 09:16:59 -0000
@@ -1556,8 +1556,10 @@
M_IFMADDR, M_WAITOK);
bcopy(llsa, dupsa, llsa->sa_len);
ifma->ifma_addr = dupsa;
+ ifma->ifma_lladdr = NULL;
ifma->ifma_ifp = ifp;
ifma->ifma_refcount = 1;
+ ifma->ifma_protospec = 0;
s = splimp();
LIST_INSERT_HEAD(&ifp->if_multiaddrs, ifma,
ifma_link);
splx(s);
--
Hideki ONO
Hello, On Thu, 17 Jul 2003, Hideki ONO wrote: > This problem is caused by not initializing ifma properly. > Following patch fix this problem for me. This patch fix problem for me too. FreeBSD-4.8 RELEASE Thanks ! > > --- if.c 14 Jun 2003 08:22:02 -0000 1.34 > +++ if.c 25 Jun 2003 09:16:59 -0000 > @@ -1556,8 +1556,10 @@ > M_IFMADDR, M_WAITOK); > bcopy(llsa, dupsa, llsa->sa_len); > ifma->ifma_addr = dupsa; > + ifma->ifma_lladdr = NULL; > ifma->ifma_ifp = ifp; > ifma->ifma_refcount = 1; > + ifma->ifma_protospec = 0; > s = splimp(); > LIST_INSERT_HEAD(&ifp->if_multiaddrs, ifma, > ifma_link); > splx(s); -- Andrey Lakhno, land-ripe State Changed From-To: feedback->closed Because, I committed it. Responsible Changed From-To: freebsd-bugs->ume Committed, thanks! |