lkml.org 
[lkml]   [2023]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] neighbour: Fix __randomize_layout crash in struct neighbour
From

>> diff --git a/include/net/neighbour.h b/include/net/neighbour.h
>> index 07022bb0d44d..0d28172193fa 100644
>> --- a/include/net/neighbour.h
>> +++ b/include/net/neighbour.h
>> @@ -162,7 +162,7 @@ struct neighbour {
>> struct rcu_head rcu;
>> struct net_device *dev;
>> netdevice_tracker dev_tracker;
>> - u8 primary_key[0];
>> + u8 primary_key[];
>> } __randomize_layout;
>>
>> struct neigh_ops {
>
> Fixes the crash for me!

Awesome. :)

--
Gustavo

\
 
 \ /
  Last update: 2023-11-28 21:12    [W:0.058 / U:1.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site