diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-02-08 08:47:37 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-02-12 18:09:14 +0100 |
| commit | 98682e5e2aefc9aad61354f4f3ac93be96002a2a (patch) | |
| tree | 04d0977ddcf677cc32fe7c8376e79765058406be /sys/linux/socket_netlink_generic.txt | |
| parent | 394d4bf77bc71747a74968f49ef153a8c9ff0cd4 (diff) | |
sys/linux: add ieee802154 descriptions
Diffstat (limited to 'sys/linux/socket_netlink_generic.txt')
| -rw-r--r-- | sys/linux/socket_netlink_generic.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/linux/socket_netlink_generic.txt b/sys/linux/socket_netlink_generic.txt index a4f64ac02..2f925733b 100644 --- a/sys/linux/socket_netlink_generic.txt +++ b/sys/linux/socket_netlink_generic.txt @@ -13,6 +13,20 @@ resource sock_nl_generic[sock_netlink] socket$nl_generic(domain const[AF_NETLINK], type const[SOCK_RAW], proto const[NETLINK_GENERIC]) sock_nl_generic +# This is NETLINK_GENERIC created in init_net namespace. Use with extreme care. +# It's very dangerous to use as it allows the fuzzer to bring down network connectivity +# and destroy the machine in other ways. But it's required for ieee802154 testing and +# some other netlink protocols that can be used only in init_net (.netnsok = false). +# It is specifically not derived from fd/sock, so that fuzzer does not try to use it other ways. +# However, it's still easy to abuse it since fd number is low and can easily be used +# as the result of race or something. If this proves to be problematic, we can either +# create a pseudo syscall that creates socket, moves it to a high fd and then changes namespace, +# and/or create a pseudo syscall that both creates the socket and send netlink message, +# or improve kernel to properly support namespaces for ieee802154. +resource sock_nl_generic_init[int32]: -1 + +syz_init_net_socket$nl_generic(domain const[AF_NETLINK], type const[SOCK_RAW], proto const[NETLINK_GENERIC]) sock_nl_generic_init + sendmsg$nl_generic(fd sock_nl_generic, msg ptr[in, msghdr_nl_generic], f flags[send_flags]) type msghdr_nl_generic msghdr_netlink[netlink_msg_t[netlink_random_msg_type, genlmsghdr, nl_generic_attr]] |
