diff options
| author | Alexander Mikhalitsyn <[email protected]> | 2024-05-28 20:30:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-30 01:43:42 +0000 |
| commit | b8c8abefc07b47f0dc9342530b7618237df96724 (patch) | |
| tree | b1d24a1a969d70a81d35587cc010fc2827cb3bb5 /net/unix/af_unix.c | |
| parent | net: fix __dst_negative_advice() race (diff) | |
| download | kernel-b8c8abefc07b47f0dc9342530b7618237df96724.tar.gz kernel-b8c8abefc07b47f0dc9342530b7618237df96724.zip | |
ipv4: correctly iterate over the target netns in inet_dump_ifaddr()
A recent change to inet_dump_ifaddr had the function incorrectly iterate
over net rather than tgt_net, resulting in the data coming for the
incorrect network namespace.
Fixes: cdb2f80f1c10 ("inet: use xa_array iterator to implement inet_dump_ifaddr()")
Reported-by: Stéphane Graber <[email protected]>
Closes: https://github.com/lxc/incus/issues/892
Bisected-by: Stéphane Graber <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Tested-by: Stéphane Graber <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Reviewed-by: Eric Dumazet <[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
