Re: [PATCH] compiler, clang: handle randomizable anonymous structs

2017-12-04 Thread Greg KH
On Fri, Dec 01, 2017 at 06:18:08PM -0800, Alexei Starovoitov wrote: > On Thu, Nov 09, 2017 at 12:16:45PM +0530, Sandipan Das wrote: > > The GCC randomize layout plugin can randomize the member > > offsets of sensitive kernel data structures. To use this > > feature, certain annotations and members

Re: [PATCH] compiler, clang: handle randomizable anonymous structs

2017-12-01 Thread Alexei Starovoitov
On Thu, Nov 09, 2017 at 12:16:45PM +0530, Sandipan Das wrote: > The GCC randomize layout plugin can randomize the member > offsets of sensitive kernel data structures. To use this > feature, certain annotations and members are added to the > structures which affect the member offsets even if this >

[PATCH] compiler, clang: handle randomizable anonymous structs

2017-11-08 Thread Sandipan Das
The GCC randomize layout plugin can randomize the member offsets of sensitive kernel data structures. To use this feature, certain annotations and members are added to the structures which affect the member offsets even if this plugin is not used. All of these structures are completely randomized,