* [PATCH net] neighbour: add RTNL_FLAG_DUMP_SPLIT_NLM_DONE to RTM_GETNEIGH
@ 2024-06-13 14:12 Maciej Żenczykowski
2024-06-15 2:03 ` Jakub Kicinski
0 siblings, 1 reply; 3+ messages in thread
From: Maciej Żenczykowski @ 2024-06-13 14:12 UTC (permalink / raw)
To: Maciej Żenczykowski
Cc: Linux Network Development Mailing List, David S . Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Maciej Żenczykowski
without this Android's net test, available at:
https://cs.android.com/android/platform/superproject/main/+/main:kernel/tests/net/test/
run via:
/...aosp-tests.../net/test/run_net_test.sh --builder neighbour_test.py
fails with:
TypeError: NLMsgHdr requires a bytes object of length 16, got 4
Fixes: 3e41af90767d ("rtnetlink: use xarray iterator to implement rtnl_dump_ifinfo()")
Fixes: cdb2f80f1c10 ("inet: use xa_array iterator to implement inet_dump_ifaddr()")
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Eric Dumazet <edumazet@google.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
---
net/core/neighbour.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 45fd88405b6b..e1d12c6ac5b6 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -3892,7 +3892,7 @@ static int __init neigh_init(void)
rtnl_register(PF_UNSPEC, RTM_NEWNEIGH, neigh_add, NULL, 0);
rtnl_register(PF_UNSPEC, RTM_DELNEIGH, neigh_delete, NULL, 0);
rtnl_register(PF_UNSPEC, RTM_GETNEIGH, neigh_get, neigh_dump_info,
- RTNL_FLAG_DUMP_UNLOCKED);
+ RTNL_FLAG_DUMP_UNLOCKED | RTNL_FLAG_DUMP_SPLIT_NLM_DONE);
rtnl_register(PF_UNSPEC, RTM_GETNEIGHTBL, NULL, neightbl_dump_info,
0);
--
2.45.2.505.gda0bf45e8d-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] neighbour: add RTNL_FLAG_DUMP_SPLIT_NLM_DONE to RTM_GETNEIGH
2024-06-13 14:12 [PATCH net] neighbour: add RTNL_FLAG_DUMP_SPLIT_NLM_DONE to RTM_GETNEIGH Maciej Żenczykowski
@ 2024-06-15 2:03 ` Jakub Kicinski
2024-06-15 11:29 ` Maciej Żenczykowski
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2024-06-15 2:03 UTC (permalink / raw)
To: Maciej Żenczykowski
Cc: Maciej Żenczykowski, Linux Network Development Mailing List,
David S . Miller, Eric Dumazet, Paolo Abeni
On Thu, 13 Jun 2024 07:12:15 -0700 Maciej Żenczykowski wrote:
> Fixes: 3e41af90767d ("rtnetlink: use xarray iterator to implement rtnl_dump_ifinfo()")
> Fixes: cdb2f80f1c10 ("inet: use xa_array iterator to implement inet_dump_ifaddr()")
Did you just copy / paste those from the fix I pointed at?
I really think it should be:
Fixes: 7e4975f7e7fb ("neighbour: fix neigh_dump_info() return value")
Please double check that, correct, and resend. Same story for the other
patch.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] neighbour: add RTNL_FLAG_DUMP_SPLIT_NLM_DONE to RTM_GETNEIGH
2024-06-15 2:03 ` Jakub Kicinski
@ 2024-06-15 11:29 ` Maciej Żenczykowski
0 siblings, 0 replies; 3+ messages in thread
From: Maciej Żenczykowski @ 2024-06-15 11:29 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Linux Network Development Mailing List, David S . Miller,
Eric Dumazet, Paolo Abeni
On Sat, Jun 15, 2024 at 4:03 AM Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Thu, 13 Jun 2024 07:12:15 -0700 Maciej Żenczykowski wrote:
> > Fixes: 3e41af90767d ("rtnetlink: use xarray iterator to implement rtnl_dump_ifinfo()")
> > Fixes: cdb2f80f1c10 ("inet: use xa_array iterator to implement inet_dump_ifaddr()")
>
> Did you just copy / paste those from the fix I pointed at?
I did, since this was caught in rc and never went into any 6.9 or earlier LTS,
I didn't put much thought into the fixes tag, thinking it didn't matter.
> I really think it should be:
>
> Fixes: 7e4975f7e7fb ("neighbour: fix neigh_dump_info() return value")
reverting the above does indeed fix things. I'm resending.
I'll figure out what fixes the other one and resend too.
>
> Please double check that, correct, and resend. Same story for the other
> patch.
--
Maciej Żenczykowski, Kernel Networking Developer @ Google
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-15 11:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13 14:12 [PATCH net] neighbour: add RTNL_FLAG_DUMP_SPLIT_NLM_DONE to RTM_GETNEIGH Maciej Żenczykowski
2024-06-15 2:03 ` Jakub Kicinski
2024-06-15 11:29 ` Maciej Żenczykowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).