diff options
| author | Eric Dumazet <[email protected]> | 2024-05-10 07:29:32 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-13 20:53:01 +0000 |
| commit | 1af7f88af269c4e06a4dc3bc920ff6cdf7471124 (patch) | |
| tree | e1512b0d3b87964022d45e950827eca7c631ee3b /net/unix/af_unix.c | |
| parent | Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf... (diff) | |
| download | kernel-1af7f88af269c4e06a4dc3bc920ff6cdf7471124.tar.gz kernel-1af7f88af269c4e06a4dc3bc920ff6cdf7471124.zip | |
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 <[email protected]>
Dianosed-by: Yu Watanabe <[email protected]>
Closes: https://github.com/systemd/systemd/pull/32666#issuecomment-2103977928
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Larysa Zaremba <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
