Bug 214440
Summary: | unaligned access in ld.so when linking dmraid | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Bryn M. Reeves <bmr> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.0 | CC: | drepper | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | ia64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-11-07 22:03:57 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Bryn M. Reeves
2006-11-07 17:42:54 UTC
The RHEL5 version of the dmraid issue is in bug 211150 I think there is no way we want to slow down the dynamic linker to workaround buggy apps. An array of packed struct requiring runtime relocations is simply a big no no. Created attachment 140576 [details]
patch to work around unaligned accesses in ld
Unaligned relocations are extremely rare and the kernel has unaligned trap handler which handles it just fine. So, IMHO: 1) dmraid needs to be fixed not to have unaligned relocations 2) kernel should at least rate limit the unaligned trap messages if it is not doing that On IA-64 prelink isn't supported and for larger libraries elf_machine_rela_relative inline is called really many times (e.g. libgcj.so.7rh alone has 347305 relative relocations), adding a conditional jump there will show up quite measurably. Furthermore, there isn't anything special on relative relocations, so we'd need change all other non-instruction relocations too. It is much better to leave the very rare case to the unaligned trap handler and attempt that at least in the libraries we ship unaligned relocations aren't used or used very rarely. |