aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/socket_netlink_generic_80211.txt
Commit message (Collapse)AuthorAgeFilesLines
* sys/linux: fix error defined attributesLin Ma2025-04-071-5/+9
| | | | | | | | | | | | Definitions for attribute `NBD_ATTR_SOCKETS`, `NL80211_ATTR_BSS_SELECT`, `NL80211_ATTR_PEER_MEASUREMENTS`, and `NL80211_ATTR_SCHED_SCAN_MATCH` have some errors. Fix them carefully, Check related parse functions: nbd_genl_reconfigure, parse_bss_select, nl80211_pmsr_start and nl80211_parse_sched_scan for details. Signed-off-by: Lin Ma <linma@zju.edu.cn>
* sys/linux: fix bugs pointed out by syz-checkDmitry Vyukov2022-01-131-9/+24
| | | | Update #590
* sys/linux: change netlink policies to the new $ conventionDmitry Vyukov2022-01-131-169/+169
|
* sys/linux: don't use len/flags/const/proc types in out fieldsDmitry Vyukov2022-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove all uses of len/flags/const/proc types in explicitly marked out fields. Use of these types for out fields does not make sense: a len[b, int32] (out) b flags[foo, int32] (out) Since kernel fills these fields, that's unnecessary details or bugs in descriptions. In particular all of these are actually bugs: ioctl$TUNSETQUEUE(fd fd_tun, cmd const[TUNSETQUEUE], arg ptr[in, ifreq_t[flags[tun_queue_flags, int16]]]) ioctl$TUNSETIFF(fd fd_tun, cmd const[TUNSETIFF], arg ptr[in, ifreq_t[flags[tun_setiff_flags, int16]]]) ioctl$SIOCSIFHWADDR(fd fd_tun, cmd const[SIOCSIFHWADDR], arg ptr[in, ifreq_t[mac_addr]]) ioctl$sock_inet_SIOCSIFADDR(fd sock, cmd const[SIOCSIFADDR], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFBRDADDR(fd sock, cmd const[SIOCSIFBRDADDR], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFNETMASK(fd sock, cmd const[SIOCSIFNETMASK], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFDSTADDR(fd sock, cmd const[SIOCSIFDSTADDR], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFPFLAGS(fd sock, cmd const[SIOCSIFPFLAGS], arg ptr[inout, ifreq_t[int32]]) ioctl$SIOCSIFMTU(fd sock_pppl2tp, cmd const[SIOCSIFMTU], arg ptr[in, ifreq_t[int32]]) ioctl$sock_SIOCETHTOOL(fd sock, cmd const[SIOCETHTOOL], arg ptr[inout, ifreq_t[ptr[inout, ethtool_cmd_u]]]) We pretend that we pass in some flags or addresses, but the ifreq field was marked as (out), so we actually did not pass anything in.
* sys/linux: add ieee802154 descriptionsDmitry Vyukov2021-02-121-1/+1
|
* sys/linux: add 802.11 frame descriptionsAleksandr Nogikh2020-10-051-2/+2
| | | | | | | | | | | | This commit enables accurate generation of 802.11 frames for injection. The descriptions only include frames/fields/elements that are supported by mac80211. Also, this commit includes fixes to tests that were affected by modification of the existing descriptions. The validity of the frames was verified by capturing the generated packets and examining them in Wirehark.
* sys/linux: enhance nl80211 descriptionsAleksandr Nogikh2020-10-011-116/+760
| | | | | Completed netlink descriptions for nl80211. Verified by executing syzkaller locally and exploring coverage of the corresponding code.
* sys/linux: enhance ifreq_dev_t definition by setting attribute directionsAleksandr Nogikh2020-09-221-1/+1
| | | | | This modification allows to remove [opt] modified for all uses of ifreq_dev_t and ifreq_t
* sys/linux: adjust nl80211 descriptions to match net_80211.txtAleksandr Nogikh2020-09-221-23/+27
| | | | | | | nl80211 descriptions depend on a variety of parameters specific to the wireless devices/networks that we act upon. This patch adjusts these values to match the hard-coded parameters of the pre-created virtual wireless devices.
* sys/linux: check for missing/duplicate netlink attrsDmitry Vyukov2020-01-231-0/+1
| | | | Update #590
* sys/linux: fix more netlink warningsDmitry Vyukov2020-01-231-5/+8
| | | | | | | | | | Handle NLA_BITFIELD32. Match string attribtues better. Calculate and check min size for varlen structs. Fix NLA_UNSPEC size check. Fix some things in descriptions. Update #590
* sys/linux: fix incorrect nlattr sizesDmitry Vyukov2020-01-221-3/+3
| | | | Update #590
* sys/linux: mark all nested netlink attributes as nlnestDmitry Vyukov2020-01-221-16/+16
| | | | | | | | | | | As far as I understand most subsystems don't care about the nest flag, but some do. But marking them as nest won't harm (?). Let's mark all of them. Caught several cases where should have been used array[policy] but used just policy. Update #590
* tools/syz-check: improve matching netlink attributesDmitry Vyukov2020-01-221-51/+50
| | | | | | | | | | 1. Match policies that has a _suffix in our descriptions (we frequently do this to improve precision or avoid dup names). 2. Rename policies in descriptions to match kernel names. 3. Match policy if there are several such names in kernel. 4. Recognize policies with helper sub-policies. Update #590
* sys/linux: add new netlink warningsDmitry Vyukov2020-01-221-0/+1
| | | | Update #590
* sys/linux: add AF_NETLINK/NETLINK_NETFILTER/NFNL_SUBSYS_CTNETLINK descriptionsDmitry Vyukov2020-01-051-0/+3
|
* sys/linux: add 80211 descriptionsDmitry Vyukov2020-01-031-0/+428