FreeBSD Bugzilla – Attachment 152183 Details for
Bug 197096
panic in arp_ifscrub when deleting entries marked LLE_STATIC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch to correct locking in arp_ifscrub
arp_ifscrub.diff.txt (text/plain), 829 bytes, created by
Kurt Lidl
on 2015-01-26 15:15:41 UTC
(
hide
)
Description:
patch to correct locking in arp_ifscrub
Filename:
MIME Type:
Creator:
Kurt Lidl
Created:
2015-01-26 15:15:41 UTC
Size:
829 bytes
patch
obsolete
>From f13970ff4d824fa79b20577bef0428eccbd7f19a Mon Sep 17 00:00:00 2001 >From: Kurt Lidl <lidl@pix.net> >Date: Wed, 4 Jun 2014 18:56:10 -0400 >Subject: [PATCH 1/1] Panic in arp_ifscrub when removing LLE_STATIC entries > >--- > sys/netinet/if_ether.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c >index 7dd26f0..f9ed876 100755 >--- a/sys/netinet/if_ether.c >+++ b/sys/netinet/if_ether.c >@@ -154,10 +154,10 @@ arp_ifscrub(struct ifnet *ifp, uint32_t addr) > addr4.sin_len = sizeof(addr4); > addr4.sin_family = AF_INET; > addr4.sin_addr.s_addr = addr; >- IF_AFDATA_RLOCK(ifp); >+ IF_AFDATA_WLOCK(ifp); > lla_lookup(LLTABLE(ifp), (LLE_DELETE | LLE_IFADDR), > (struct sockaddr *)&addr4); >- IF_AFDATA_RUNLOCK(ifp); >+ IF_AFDATA_WUNLOCK(ifp); > } > #endif > >-- >2.2.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 197096
: 152183