diff options
| -rw-r--r-- | executor/common_linux.h | 3 | ||||
| -rw-r--r-- | sys/linux/test/tipc | 3 | ||||
| -rw-r--r-- | sys/linux/vnet.txt | 5 |
3 files changed, 10 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index 00c78c6af..de3744ad9 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -1658,7 +1658,8 @@ static int namespace_sandbox_proc(void* arg) // We setup tun here as it needs to be in the test net namespace, // which in turn needs to be in the test user namespace. // However, IFF_NAPI_FRAGS will fail as we are not root already. - // There does not seem to be a call sequence that would satisfy all of that. + // TODO: we should create tun in the init net namespace and use setns + // to move it to the target namespace. initialize_tun(); #endif #if SYZ_EXECUTOR || SYZ_ENABLE_NETDEV diff --git a/sys/linux/test/tipc b/sys/linux/test/tipc new file mode 100644 index 000000000..24e4ec749 --- /dev/null +++ b/sys/linux/test/tipc @@ -0,0 +1,3 @@ +r0 = socket$nl_generic(0x10, 0x3, 0x10) +r1 = syz_genetlink_get_family_id$tipc2(&(0x7f0000000000)='TIPCv2\x00') +sendmsg$TIPC_NL_BEARER_ENABLE(r0, &AUTO={0x0, 0x0, &AUTO={&AUTO={AUTO, r1, 0x1, 0x123, 0x234, {0x3, 0x0, 0x0}, [@TIPC_NLA_BEARER={AUTO, AUTO, [@TIPC_NLA_BEARER_NAME={AUTO, AUTO, @udp='udp:syz0'}, @TIPC_NLA_BEARER_UDP_OPTS={AUTO, AUTO, {{AUTO, AUTO, @in={AUTO, 0x4e20, @loopback=AUTO}}, {AUTO, AUTO, @in={AUTO, 0x4e20, @loopback=AUTO}}}}]}]}, AUTO}, 0x1, 0x0, 0x0, 0x0}, 0x0) diff --git a/sys/linux/vnet.txt b/sys/linux/vnet.txt index 155770b63..8bb8d5e7f 100644 --- a/sys/linux/vnet.txt +++ b/sys/linux/vnet.txt @@ -1359,6 +1359,11 @@ mpls_payload [ # http://tipc.sourceforge.net/protocol.html # http://tipc.sourceforge.net/protocol.html#anchor50 +# TODO: describe more TIPC packets, the current description is far from being complete. +# But first we need to ensure that syzkaller manages to enable TIPC receiving, +# because currently it always crashes kernel earlier. +# Also, do we need to nest TIPC packets in UDP for UDP media? + include <uapi/linux/tipc.h> include <net/tipc/msg.h> |
