FreeBSD Bugzilla – Attachment 187688 Details for
Bug 220078
[patch] [panic] repeatable kernel panic due to unlocked INADDR_TO_IFP usage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
stable/10: lock access to INADDR_HASH in the ip_input()
ip_input.c.10.diff (text/plain), 777 bytes, created by
Eugene Grosbein
on 2017-11-03 10:31:01 UTC
(
hide
)
Description:
stable/10: lock access to INADDR_HASH in the ip_input()
Filename:
MIME Type:
Creator:
Eugene Grosbein
Created:
2017-11-03 10:31:01 UTC
Size:
777 bytes
patch
obsolete
>Index: sys/netinet/ip_input.c >=================================================================== >--- sys/netinet/ip_input.c (revision 325353) >+++ sys/netinet/ip_input.c (working copy) >@@ -564,7 +564,7 @@ passin: > /* > * Check for exact addresses in the hash bucket. > */ >- /* IN_IFADDR_RLOCK(); */ >+ IN_IFADDR_RLOCK(); > LIST_FOREACH(ia, INADDR_HASH(ip->ip_dst.s_addr), ia_hash) { > /* > * If the address matches, verify that the packet >@@ -574,11 +574,11 @@ passin: > if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr && > (!checkif || ia->ia_ifp == ifp)) { > ifa_ref(&ia->ia_ifa); >- /* IN_IFADDR_RUNLOCK(); */ >+ IN_IFADDR_RUNLOCK(); > goto ours; > } > } >- /* IN_IFADDR_RUNLOCK(); */ >+ IN_IFADDR_RUNLOCK(); > > /* > * Check for broadcast addresses.
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220078
:
183567
|
183568
|
183569
|
183570
|
183590
| 187688 |
187689