ARM does not allow unaligned memory access thus the following code from ping: hoplimit = *(int*)CMSG_DATA(mp); crashes. The attached patch fixes the issue for me.
Created attachment 763 [details] ping ipv6 fix
What's your $ gcc -v $ as --version and what CFLAGS (EXTRA_CFLAGS) were used to build busybox? Doesn't the compiler convert unaligned accesses into aligned ones on CPUs that are known not to support certain unaligned accesses?
(In reply to comment #2) > Doesn't the compiler convert unaligned accesses into aligned ones on CPUs that > are known not to support certain unaligned accesses? I think compiler usually assumes we know what we are doing. It will only handle attribute(packed) structure members and such. Simple casts assumed to result in aligned ptrs. I pushed a fix in 57be1ee, will be in 1.16.x. Please test current git.
Created attachment 765 [details] Patch which went into git
Please reopen if current git still doesn't work.