NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/49410: -current: panic: "KERNEL_LOCKED_P()" failed: file ".../if_loop.c", line 221



The following reply was made to PR kern/49410; it has been noted by GNATS.

From: Frank Kardel <kardel%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/49410: -current: panic: "KERNEL_LOCKED_P()" failed: file
 ".../if_loop.c", line 221
Date: Sun, 23 Nov 2014 12:59:32 +0100

 Thanks - it fixes that issue AFAICS.
 
 On 11/23/14 12:15, Ryota Ozaki wrote:
 >   
 >   diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
 >   index a92c61b..4d31253 100644
 >   --- a/sys/netinet/ip_output.c
 >   +++ b/sys/netinet/ip_output.c
 >   @@ -1713,5 +1713,7 @@ ip_mloopback(struct ifnet *ifp, struct mbuf *m,
 >   const struct sockaddr_in *dst)
 >   
 >     ip->ip_sum = 0;
 >     ip->ip_sum = in_cksum(copym, ip->ip_hl << 2);
 >   + KERNEL_LOCK(1, NULL);
 >     (void)looutput(ifp, copym, sintocsa(dst), NULL);
 >   + KERNEL_UNLOCK_ONE(NULL);
 >    }
 >   
 


Home | Main Index | Thread Index | Old Index