Messages in this thread | | | Date | Tue, 28 Nov 2023 14:12:08 -0600 | Subject | Re: [PATCH] neighbour: Fix __randomize_layout crash in struct neighbour | From | "Gustavo A. R. Silva" <> |
| |
>> 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
| |