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 888683 Details for
Bug 1089836
Work around kernel bug 1081282 by patching getifaddrs
[?]
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]
Draft workaround implementation patch
glibc-rh1089836.patch (text/plain), 1.29 KB, created by
David Gibson
on 2014-04-23 00:07:11 UTC
(
hide
)
Description:
Draft workaround implementation patch
Filename:
MIME Type:
Creator:
David Gibson
Created:
2014-04-23 00:07:11 UTC
Size:
1.29 KB
patch
obsolete
>Only in glibc-2.12-2-gc4ccff1: config.log >diff -ur glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/ifaddrs.c glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/ifaddrs.c >--- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/ifaddrs.c 2010-05-04 21:27:23.000000000 +1000 >+++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/ifaddrs.c 2014-04-22 14:52:04.069892067 +1000 >@@ -110,6 +110,8 @@ > { > struct nlmsghdr nlh; > struct rtgenmsg g; >+ struct rtattr a; >+ uint32_t ext_mask; > char pad[0]; > } req; > struct sockaddr_nl nladdr; >@@ -123,6 +125,16 @@ > req.nlh.nlmsg_pid = 0; > req.nlh.nlmsg_seq = h->seq; > req.g.rtgen_family = AF_UNSPEC; >+ req.a.rta_len = sizeof(struct rtattr) + sizeof(uint32_t); >+ /* >+ * Some kernel versions have a bug where with certain hardware, in >+ * certain configurations interfaces can be omitted due to running >+ * out of space in the internal packet buffer. Specifying an >+ * IFLA_EXT_MASK attribute (even 0) causes the kernel to properly >+ * calculate the required packet size, working around the problem. >+ */ >+ req.a.rta_type = IFLA_EXT_MASK; >+ req.ext_mask = 0; > if (sizeof (req) != offsetof (struct req, pad)) > memset (req.pad, '\0', sizeof (req) - offsetof (struct req, pad)); > >Only in glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux: ifaddrs.c~
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 1089836
: 888683