Re: BUG: early intel microcode update violating alignment rules

From: H. Peter Anvin
Date: Mon Aug 11 2014 - 10:52:50 EST


On 08/09/2014 04:19 PM, Henrique de Moraes Holschuh wrote:
>
> This will only happen when the microcode update file data inside the early
> initramfs archive is not 16-byte aligned. Unfortunately, the cpio format
> used in the early initramfs aligns the member file data just to 4-byte
> boundaries.
>
> Is there a way to fix this in the kernel for the BSP? We already have
> several microcode updates that are >16KiB in size and they seem to be
> getting bigger and bigger, so doing it on the stack is out.
>
> Maybe there is a 64KiB scratch area that could be used just to get the BSP
> microcode update done? vmalloc isn't available that early, but it can be
> used to fix the issue for the APs.
>

We could put a buffer in the initdata region (we really could use an
initbss region!) or in the brk.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/