Brown, Len wrote: > >>>../include/acpi/actypes.h:115 >>>Replace s64 with u64 and it at least compiles. > > I published this initial version while at OLS, > having tested it only on ia32. > > I tested it now on x86_64 and ran into the same problem as you. > The fix, however, is to use the typedef used in the kernel, > a signed long long, in this case. > > After this change it works fine for me on x86_64 -- I'll > push a new version momentarily. > Thanks. Works with -O2 compile flag, it segfaults with -g. The bad line is: memcpy(&rsdt, tbl, tbl->length); (line 196) The rsdt has an undefined amount of pointers to other ACPI tables in the end, therefore tbl->length > sizeof(struct rsdt), memcpy writes outside &rsdt. Patch to avoid memcpy attached. Don't know how to integrate it nicer/shorter, please review. Thanks, Thomas