Opened on 02/03/15 at 21:22:45
Closed on 02/23/15 at 17:09:01
#2249 closed defect (fixed)
misaligned address exception in cpukit/librpc/src/rpc/get_myaddress.c
Reported by: | Jeffrey Hill | Owned by: | Jeffrey Hill <johill@…> |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | score | Version: | 4.10 |
Severity: | normal | Keywords: | get_myaddress sun rpc |
Cc: | Blocked By: | ||
Blocking: |
Description
We see a misaligned address exception in cpukit/librpc/src/rpc/get_myaddress.c on nios2 architecture.
See bug report #1401 describing maybe a fix for the root cause, and that might avoid any need for the patch attached here. I am attaching this patch in a bug report only to call out attention to the need for a fix for #1401.
Note that we have also found it necessary to place an RTEMS specific patch within EPICS for this same #1401 issue.
I have attached a patch, modelled after the EPICS fix, which isn’t claimed to be optimal, minimal, carefully designed, etc but that does appear to resolve the issue here.
The cause appears to be that the individual address data structures copied into the user's buffer by the SIOCGIFCONF ioctl are not properly aligned.
Attachments (1)
Change History (6)
comment:1 Changed on 02/03/15 at 21:44:56 by Jeffrey Hill
Keywords: | rpc added; powerpc removed |
---|
Changed on 02/03/15 at 21:49:24 by Jeffrey Hill
Attachment: | ge_myaddres_patch.txt added |
---|
comment:2 Changed on 02/23/15 at 15:48:15 by Till Straumann <strauman@…>
comment:3 Changed on 02/23/15 at 17:07:23 by Jeffrey Hill <johill@…>
comment:4 Changed on 02/23/15 at 17:07:46 by Jeffrey Hill <johill@…>
comment:5 Changed on 02/23/15 at 17:09:01 by Jeffrey Hill <johill@…>
Owner: | set to Jeffrey Hill <johill@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
one possible get_myaddress.c patch