Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/linux: mptcp: Add netlink-API for MPTCP path-management #1815

Merged
merged 1 commit into from Jun 11, 2020

Conversation

cpaasch
Copy link
Contributor

@cpaasch cpaasch commented Jun 11, 2020

MPTCP exposes a generic netlink API to control address advertisement and
subflow-creation. syzkaller should make use of this interface.


Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md


@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #1815 into master will decrease coverage by 0.0%.
The diff coverage is n/a.

Impacted Files Coverage Δ
prog/target.go 61.5% <0.0%> (-5.8%) ⬇️
prog/prog.go 79.1% <0.0%> (-3.3%) ⬇️
pkg/csource/csource.go 82.7% <0.0%> (+0.6%) ⬆️
prog/mutation.go 90.4% <0.0%> (+0.9%) ⬆️
prog/any.go 84.7% <0.0%> (+0.9%) ⬆️

MPTCP_PM_ATTR_SUBFLOWS nlattr[MPTCP_PM_ATTR_SUBFLOWS, int32[0:8]]
] [varlen]

mptcp_nl_addr_attr [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the existing kernel policy names. For this one it is: mptcp_pm_addr_policy:
https://elixir.bootlin.com/linux/latest/source/net/mptcp/pm_netlink.c#L383
This will allow syz-check to produce sys/linux/*.warn files and generally makes searching of the corresponding things in kernel easier.

sendmsg$MPTCP_PM_CMD_SET_LIMITS(fd sock_nl_generic, msg ptr[in, msghdr_nl_mptcp[MPTCP_PM_CMD_SET_LIMITS]], f flags[send_flags])
sendmsg$MPTCP_PM_CMD_GET_LIMITS(fd sock_nl_generic, msg ptr[in, msghdr_nl_mptcp[MPTCP_PM_CMD_GET_LIMITS]], f flags[send_flags])

mptcp_nl_attr [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,40 @@
# Copyright 2018 syzkaller project authors. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/2018/2020/

MPTCP exposes a generic netlink API to control address advertisement and
subflow-creation. syzkaller should make use of this interface.
@cpaasch
Copy link
Contributor Author

cpaasch commented Jun 11, 2020

@dvyukov - thanks for your feedback! I applied all the requested changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants