Skip to content

Commit e4aad64

Browse files
segherKAGA-KOKO
authored andcommitted
x86/vdso: Fix building on big endian host
We need to call GET_LE to read hdr->e_type. Fixes: 57f90c3 ("x86/vdso: Error out if the vDSO isn't a valid DSO") Reported-by: Paul Gortmaker <[email protected]> Signed-off-by: Segher Boessenkool <[email protected]> Acked-by: Andy Lutomirski <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 192d1dc commit e4aad64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/entry/vdso/vdso2c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
2222

2323
ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff));
2424

25-
if (hdr->e_type != ET_DYN)
25+
if (GET_LE(&hdr->e_type) != ET_DYN)
2626
fail("input is not a shared object\n");
2727

2828
/* Walk the segment table. */

0 commit comments

Comments
 (0)