Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1452839 Details for
Bug 1587880
[RFE] 0ac0102 netdev: check for NULL fields in netdev_get_addrs is insufficient that won't cover all of possible situation. Need workaround urgently
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
untested more complete workaround
retry.patch (text/plain), 1.26 KB, created by
Jiri Benc
on 2018-06-19 08:22:44 UTC
(
hide
)
Description:
untested more complete workaround
Filename:
MIME Type:
Creator:
Jiri Benc
Created:
2018-06-19 08:22:44 UTC
Size:
1.26 KB
patch
obsolete
>diff --git a/lib/netdev.c b/lib/netdev.c >index 83614f560e8f..489eeaca82ba 100644 >--- a/lib/netdev.c >+++ b/lib/netdev.c >@@ -2039,20 +2039,31 @@ netdev_get_addrs(const char dev[], struct in6_addr **paddr, > struct in6_addr *addr_array, *mask_array; > const struct ifaddrs *ifa; > int cnt = 0, i = 0; >+ int retries = 3; > > ovs_mutex_lock(&if_addr_list_lock); > if (!if_addr_list) { > int err; > >+retry: > err = getifaddrs(&if_addr_list); > if (err) { > ovs_mutex_unlock(&if_addr_list_lock); > return -err; > } >+ retries--; > } > > for (ifa = if_addr_list; ifa; ifa = ifa->ifa_next) { >- if (ifa->ifa_addr && ifa->ifa_name && ifa->ifa_netmask) { >+ if (!ifa->ifa_name && retries) { >+ /* Older versions of glibc have a bug on race condition with >+ * address addition which may cause one of the returned ifa_name >+ * values to be NULL. In such case, we know that we've got an >+ * inconsistent dump. Retry but beware of an endless loop. */ >+ freeifaddrs(if_addr_list); >+ goto retry; >+ } >+ if (ifa->ifa_name && ifa->ifa_addr && ifa->ifa_netmask) { > int family; > > family = ifa->ifa_addr->sa_family;
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 1587880
: 1452839