musl: Fix dirent struct alignment issue seen on armv5te
PATCH v2 1/1 musl: Fix dirent struct alignment issue seen on armv5te
fix internal linux headers
--- meta/recipes-core/musl/musl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/musl/musl_git.bb +1 -1
@@ -3,7 +3,7 @@ require musl.inc -SRCREV = "9cad27a3dc1a4eb349b6591e4dc8cc89dce32277" +SRCREV = "f2c6dbe2442027ed8fe0fa869918e41f495534d8" PV = "1.1.19+git${SRCPV}"
Signature · 1 line
2.18.0
Quoted 4 lines · Khem Raj
fix internal linux headers
From the musl commit which fixed the dirent struct alignment issues it doesn't look like it was armv5te specific, so mentioning armv5te in the commit message could be misleading.
https://git.musl-libc.org/cgit/musl/commit/?id=b3fa0f2b1b8c267c1cbe8c62464e484f3a174a4e
Quoted 26 lines
Signed-off-by Khem Raj <[email protected]>--- meta/recipes-core/musl/musl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/musl/musl_git.bb +1
-2@@ -3,7 +3,7 @@ require musl.inc -SRCREV = "9cad27a3dc1a4eb349b6591e4dc8cc89dce32277" +SRCREV = "f2c6dbe2442027ed8fe0fa869918e41f495534d8" PV = "1.1.19+git${SRCPV}" --2.18.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 4 lines · Andre McCurdy
Quoted 2 lines · Khem Raj
fix internal linux headers
Quoted 9 lines
Quoted 2 lines
From the musl commit which fixed the dirent struct alignment issues it doesn't look like it was armv5te specific, so mentioning armv5te in the commit message could be misleading.
https://git.musl-libc.org/cgit/musl/commit/?id=b3fa0f2b1b8c267c1cbe8c62464e484f3a174a4e
commit is in contextual to OE on a particular arch where it was observed, other arches either have
ways to compensate for misaligned access in hardware or compiler does not use 8byte alignment
thats why subject says 'seen'
Quoted 26 lines
Quoted 26 lines
Signed-off-by Khem Raj <[email protected]>--- meta/recipes-core/musl/musl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/musl/musl_git.bb +1
-2@@ -3,7 +3,7 @@ require musl.inc -SRCREV = "9cad27a3dc1a4eb349b6591e4dc8cc89dce32277" +SRCREV = "f2c6dbe2442027ed8fe0fa869918e41f495534d8" PV = "1.1.19+git${SRCPV}" --2.18.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 12 lines · Khem Raj
Quoted 11 lines · Andre McCurdy
Quoted 4 lines · Khem Raj
fix internal linux headers
From the musl commit which fixed the dirent struct alignment issues it doesn't look like it was armv5te specific, so mentioning armv5te in the commit message could be misleading.
Quoted 8 lines
Quoted 2 lines
https://git.musl-libc.org/cgit/musl/commit/?id=b3fa0f2b1b8c267c1cbe8c62464e484f3a174a4e
commit is in contextual to OE on a particular arch where it was observed, other arches either have
ways to compensate for misaligned access in hardware or compiler does not use 8byte alignment
thats why subject says 'seen'
Great explanation. That's the kind of information which should go in the commit message.
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Signed-off-by Khem Raj <[email protected]>--- meta/recipes-core/musl/musl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/musl/musl_git.bb +1
-2@@ -3,7 +3,7 @@ require musl.inc -SRCREV = "9cad27a3dc1a4eb349b6591e4dc8cc89dce32277" +SRCREV = "f2c6dbe2442027ed8fe0fa869918e41f495534d8" PV = "1.1.19+git${SRCPV}" --2.18.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 13 lines · Andre McCurdy
Quoted 12 lines · Khem Raj
Quoted 11 lines · Andre McCurdy
Quoted 4 lines · Khem Raj
fix internal linux headers
From the musl commit which fixed the dirent struct alignment issues it doesn't look like it was armv5te specific, so mentioning armv5te in the commit message could be misleading.
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines
https://git.musl-libc.org/cgit/musl/commit/?id=b3fa0f2b1b8c267c1cbe8c62464e484f3a174a4e
commit is in contextual to OE on a particular arch where it was observed, other arches either have
ways to compensate for misaligned access in hardware or compiler does not use 8byte alignment
thats why subject says 'seen'
Hi,
I have seen scary align traps in dmesg and bisected back to that musl commit.
Short version: never break alignment for structures used for streaming data
Long version: afais only on armv5(t)e , with DSP feature, the code of readdir.c is miscompiled by gcc when using O2, O3, Os. What happens is, the arm ldrd instruction has specific contraints on armv5(t)e, one of them is the address must be 8 bytes aligned ( doubleword-aligned for doubleword transfers). Interestingly, other toolchains for armv5 were patched to avoid ldrd/strd alltogether.
Cheers
Andrea
Quoted 34 lines
Great explanation. That's the kind of information which should go in the commit message.
Quoted 18 lines
Quoted 18 lines
Quoted 18 lines
Signed-off-by Khem Raj <[email protected]>--- meta/recipes-core/musl/musl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/musl/musl_git.bb +1
-1@@ -3,7 +3,7 @@ require musl.inc -SRCREV = "9cad27a3dc1a4eb349b6591e4dc8cc89dce32277" +SRCREV = "f2c6dbe2442027ed8fe0fa869918e41f495534d8" PV = "1.1.19+git${SRCPV}"Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
--
2.18.0--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core