| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | sys/linux: fix error defined attributes | Lin Ma | 2025-04-07 | 1 | -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-check | Dmitry Vyukov | 2022-01-13 | 1 | -9/+24 |
| | | | | | Update #590 | ||||
| * | sys/linux: change netlink policies to the new $ convention | Dmitry Vyukov | 2022-01-13 | 1 | -169/+169 |
| | | |||||
| * | sys/linux: don't use len/flags/const/proc types in out fields | Dmitry Vyukov | 2022-01-11 | 1 | -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 descriptions | Dmitry Vyukov | 2021-02-12 | 1 | -1/+1 |
| | | |||||
| * | sys/linux: add 802.11 frame descriptions | Aleksandr Nogikh | 2020-10-05 | 1 | -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 descriptions | Aleksandr Nogikh | 2020-10-01 | 1 | -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 directions | Aleksandr Nogikh | 2020-09-22 | 1 | -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.txt | Aleksandr Nogikh | 2020-09-22 | 1 | -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 attrs | Dmitry Vyukov | 2020-01-23 | 1 | -0/+1 |
| | | | | | Update #590 | ||||
| * | sys/linux: fix more netlink warnings | Dmitry Vyukov | 2020-01-23 | 1 | -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 sizes | Dmitry Vyukov | 2020-01-22 | 1 | -3/+3 |
| | | | | | Update #590 | ||||
| * | sys/linux: mark all nested netlink attributes as nlnest | Dmitry Vyukov | 2020-01-22 | 1 | -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 attributes | Dmitry Vyukov | 2020-01-22 | 1 | -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 warnings | Dmitry Vyukov | 2020-01-22 | 1 | -0/+1 |
| | | | | | Update #590 | ||||
| * | sys/linux: add AF_NETLINK/NETLINK_NETFILTER/NFNL_SUBSYS_CTNETLINK descriptions | Dmitry Vyukov | 2020-01-05 | 1 | -0/+3 |
| | | |||||
| * | sys/linux: add 80211 descriptions | Dmitry Vyukov | 2020-01-03 | 1 | -0/+428 |
