commit: d85daa9ff86b2761cd1156c29b8f2edd6a802da5 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Fri Dec 1 17:46:45 2023 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Fri Dec 1 17:46:45 2023 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d85daa9f
neighbour: Fix __randomize_layout crash in struct neighbour Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> 0000_README | 4 ++++ 2010_Fix_randomize_layout_crash_in_struct_neigh.patch | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/0000_README b/0000_README index 5b0c512c..52122716 100644 --- a/0000_README +++ b/0000_README @@ -863,6 +863,10 @@ Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 +Patch: 2010_Fix_randomize_layout_crash_in_struct_neigh.patch +From: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=45b3fae4675d +Desc: neighbour: Fix __randomize_layout crash in struct neighbour + Patch: 2900_tmp513-Fix-build-issue-by-selecting-CONFIG_REG.patch From: https://bugs.gentoo.org/710790 Desc: tmp513 requies REGMAP_I2C to build. Select it by default in Kconfig. See bug #710790. Thanks to Phil Stracchino diff --git a/2010_Fix_randomize_layout_crash_in_struct_neigh.patch b/2010_Fix_randomize_layout_crash_in_struct_neigh.patch new file mode 100644 index 00000000..8364902a --- /dev/null +++ b/2010_Fix_randomize_layout_crash_in_struct_neigh.patch @@ -0,0 +1,11 @@ +--- a/include/net/neighbour.h 2023-12-01 12:42:53.249733734 -0500 ++++ b/include/net/neighbour.h 2023-12-01 12:43:07.539739154 -0500 +@@ -157,7 +157,7 @@ struct neighbour { + struct list_head gc_list; + struct rcu_head rcu; + struct net_device *dev; +- u8 primary_key[0]; ++ u8 primary_key[]; + } __randomize_layout; + + struct neigh_ops {