Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

From: Eric Dumazet
Date: Tue Feb 05 2019 - 15:23:22 EST




On 02/05/2019 12:18 PM, Joe Perches wrote:

> I still think adding __align(<even#>) is unnecessary here unless
> it follows something like a bool or a u8.

This would be some historical side effect, and we do not want to rely on that.

A security feature could in fact ask a compiler to perform random
shuffling of automatic variables.

( a la __randomize_layout )