Eric Dumazet 1af7f88af2 inet: fix inet_fill_ifaddr() flags truncation
I missed that (struct ifaddrmsg)->ifa_flags was only 8bits,
while (struct in_ifaddr)->ifa_flags is 32bits.

Use a temporary 32bit variable as I did in set_ifa_lifetime()
and check_lifetime().

Fixes: 3ddc2231c810 ("inet: annotate data-races around ifa->ifa_flags")
Reported-by: Yu Watanabe <watanabe.yu@gmail.com>
Dianosed-by: Yu Watanabe <watanabe.yu@gmail.com>
Closes: https://github.com/systemd/systemd/pull/32666#issuecomment-2103977928
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240510072932.2678952-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-05-13 13:53:01 -07:00
..
2024-02-20 10:50:19 +01:00
2024-02-28 19:36:39 -08:00
2024-01-23 15:13:55 +01:00
2024-01-04 10:23:10 -08:00
2023-10-16 21:05:33 -07:00
2024-02-28 19:36:39 -08:00
2021-05-17 15:29:35 -07:00
2022-12-20 03:13:45 +01:00
2023-09-14 16:16:36 +02:00
2023-08-29 17:39:15 -07:00