Skip to content

Conversation

@ThreeEights
Copy link
Contributor

@ThreeEights ThreeEights commented Nov 28, 2024

Add UNALIGNED_GET() to prevent alignment fault when reading parts of the IPv6 address.

Fixes #82185

@ThreeEights
Copy link
Contributor Author

Please note I have very limited resources for testing this fix. The only platform I have available is the Raspberry Pi Pico W. I don't know if other platforms exhibit the same failure, and I have no way to verify this fix doesn't cause issues on other platforms.

@ThreeEights ThreeEights force-pushed the issue-82185-fix-unaligned-access branch from aff5e15 to 9fc788f Compare November 28, 2024 01:53
Add UNALIGNED_GET() to prevent alignment fault when
reading parts of the IPv6 address.

Signed-off-by: Steve Boylan <[email protected]>
@ThreeEights ThreeEights force-pushed the issue-82185-fix-unaligned-access branch from 9fc788f to c24006b Compare November 28, 2024 02:04
@jukkar
Copy link
Member

jukkar commented Nov 28, 2024

I have no way to verify this fix doesn't cause issues on other platforms.

I am not worried about this because you can use the UNALIGNED_GET without side effects.

@ThreeEights
Copy link
Contributor Author

@rlubos @jukkar - Looking at this in the clear light of dawn ... this probably ought to be tagged for 4.0, 3.7, and 3.6 as well, though it only affects me in the current main branch.

@rlubos
Copy link
Contributor

rlubos commented Nov 28, 2024

@ThreeEights The faulty function was introduced only 2 weeks ago, so it doesn't seem there's anything to backport here.

@kartben kartben merged commit 48b70cf into zephyrproject-rtos:main Dec 2, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

subsys: net: ipv6: Unaligned access causes HARD FAULT on ARM CPU

6 participants