Files
linux/include/net
Qingfang DENG e010dc3625 UPSTREAM: neighbour: fix unaligned access to pneigh_entry
[ Upstream commit ed779fe4c9 ]

After the blamed commit, the member key is longer 4-byte aligned. On
platforms that do not support unaligned access, e.g., MIPS32R2 with
unaligned_action set to 1, this will trigger a crash when accessing
an IPv6 pneigh_entry, as the key is cast to an in6_addr pointer.

Change the type of the key to u32 to make it aligned.

Fixes: 62dd93181a ("[IPV6] NDISC: Set per-entry is_router flag in Proxy NA.")
Change-Id: I51f20602275108df08d17710c24aad9ee42fc1db
Signed-off-by: Qingfang DENG <qingfang.deng@siflower.com.cn>
Link: https://lore.kernel.org/r/20230601015432.159066-1-dqfext@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit ab0eca3f54)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-06-16 20:15:39 +00:00
..
2021-07-01 13:19:48 -07:00
2022-08-04 15:18:41 +02:00
2016-04-25 16:44:27 -04:00
2016-04-25 16:44:27 -04:00
2020-05-05 13:23:29 -07:00
2019-12-09 10:36:44 -08:00
2020-06-22 21:12:44 -07:00
2022-11-28 16:08:50 +00:00
2021-07-27 13:05:56 +01:00
2021-10-18 13:47:09 +01:00
2017-11-08 16:12:33 +09:00
2020-03-04 13:25:55 -08:00
2018-05-16 07:23:35 +02:00
2021-08-04 10:01:26 +01:00
2019-04-22 21:47:25 -07:00
2019-10-05 16:29:00 -07:00
2021-08-03 13:05:26 +01:00
2022-07-22 17:43:50 +02:00
2020-06-18 20:46:23 -07:00
2019-12-09 10:28:43 -08:00