Skip to contentSkip to conversation

net: mptcp: reject token 0 in mptcp_token_get_sock()

PATCH Hang Nan 1 participant 1 message Nov 20 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Hang Nan

author
#1 lore raw

Thanks for the report.

The undefined symbol comes from the KUnit case that v5 added for the token 0
guard: it used mptcp_token_exists() to detect whether the socket it had built was reachable from the bucket it expected, and that function is not exported, so mptcp_token_test.ko fails at modpost whenever CONFIG_MPTCP_KUNIT_TEST=m with CONFIG_MPTCP=y. My local runs had the test built in, which is why I missed it - sorry about that.

I am dropping the case in the next version rather than exporting the
symbol: a test for a !token guard is not worth either the lines or a new export, and that also matches the maintainer's comment on the series. Without the case, the only mptcp token symbols the test file references are mptcp_token_{get_sock,new_request,new_connect,accept,destroy, destroy_request}, all of which are EXPORT_SYMBOL_GPL in net/mptcp/token.c, so that config should link again.

No separate patch is needed for this; it will be fixed in the next revision, which I will hold until Netdev Sashiko has finished as requested.