diff options
author | Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> | 2024-05-28 22:30:30 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-29 18:43:42 -0700 |
commit | b8c8abefc07b47f0dc9342530b7618237df96724 (patch) | |
tree | b1d24a1a969d70a81d35587cc010fc2827cb3bb5 /net/xdp | |
parent | 92f1655aa2b2294d0b49925f3b875a634bd3b59e (diff) | |
download | lwn-b8c8abefc07b47f0dc9342530b7618237df96724.tar.gz lwn-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 <stgraber@stgraber.org>
Closes: https://github.com/lxc/incus/issues/892
Bisected-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Tested-by: Stéphane Graber <stgraber@stgraber.org>
Acked-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240528203030.10839-1-aleksandr.mikhalitsyn@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/xdp')
0 files changed, 0 insertions, 0 deletions