Go to file
Jiri Pirko 1a68525f46 mnl_utils: sanitize incoming netlink payload size in callbacks
Don't trust the kernel to send payload of certain size. Sanitize that by
checking the payload length in mnlu_cb_stop() and mnlu_cb_error() and
only access the payload if it is of required size.

Note that for mnlu_cb_stop(), this is happening already for example
with devlink resource. Kernel sends NLMSG_DONE with zero size payload.

Fixes: 049c58539f ("devlink: mnlg: Add support for extended ack")
Fixes: c934da8aaa ("devlink: mnlg: Catch returned error value of dumpit commands")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2023-12-08 09:30:11 -08:00
bash-completion tc: drop support for ATM qdisc 2023-10-30 14:16:29 -07:00
bridge bridge: mdb: Add get support 2023-11-06 10:08:50 -07:00
dcb dcb: fully initialize flag table 2023-06-28 16:31:33 -07:00
devlink devlink: Support setting port function ipsec_packet cap 2023-10-04 09:23:11 -06:00
doc/actions doc: fix 'infact' --> 'in fact' typo 2022-05-13 16:34:09 -07:00
etc/iproute2 Add Open/R to rt_protos 2021-03-30 03:04:09 +00:00
examples/bpf examples/bpf: add bpf examples with BTF defined maps 2020-11-24 22:14:08 -07:00
genl treewide: fix indentation 2023-06-05 12:49:34 -06:00
include uapi: update stddef.h 2023-12-08 09:27:59 -08:00
ip ip: require RTM_NEWLINK 2023-12-03 10:27:19 -08:00
lib mnl_utils: sanitize incoming netlink payload size in callbacks 2023-12-08 09:30:11 -08:00
man man: allow up to 100 character lines 2023-11-19 08:56:43 -08:00
misc ss: prevent "Process" column from being printed unless requested 2023-12-06 09:41:09 -08:00
netem netem: add SPDX license header 2023-01-14 09:00:34 -08:00
rdma uapi: update headers from 6.7-rc1 2023-11-13 08:38:58 -08:00
schema bridge: add json schema for bridge fdb show 2016-07-20 12:02:02 -07:00
tc Merge branch 'main' of git://git.kernel.org/pub/scm/network/iproute2/iproute2-next 2023-11-06 12:40:38 -08:00
testsuite tc: remove dsmark qdisc 2023-10-30 11:35:32 -07:00
tipc tipc: use SPDX 2023-01-14 09:00:34 -08:00
vdpa vdpa: consume device_features parameter 2023-09-12 09:56:18 -06:00
.clang-format clang-format: add configuration file 2019-01-17 13:38:23 -08:00
.gitignore Remove leftovers from removed Latex documentation 2018-02-13 16:43:19 -08:00
.mailmap mailmap: map David's mail address 2019-05-15 09:50:42 -07:00
configure configure: add the --color option 2023-09-14 09:20:24 -06:00
COPYING Update address of FSF in license 2008-03-08 13:31:03 -08:00
CREDITS CREDITS: add file 2023-05-13 19:25:04 -07:00
MAINTAINERS Add MAINTAINERS file 2023-05-12 15:51:53 -07:00
Makefile Makefile: use /usr/share/iproute2 for config files 2023-11-16 19:21:52 -08:00
README CREDITS: add file 2023-05-13 19:25:04 -07:00
README.devel README: update location of git repositories, remove broken info link 2018-02-13 16:42:51 -08:00
SECURITY.md Add security policy 2023-09-29 16:06:42 -07:00

This is a set of utilities for Linux networking.

Information:
    https://wiki.linuxfoundation.org/networking/iproute2

Download:
    http://www.kernel.org/pub/linux/utils/net/iproute2/

Stable version repository:
    git://git.kernel.org/pub/scm/network/iproute2/iproute2.git

Development repository:
    git://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git

How to compile this.
--------------------
1. libdbm

arpd needs to have the berkeleydb development libraries. For Debian
users this is the package with a name like libdbX.X-dev.
DBM_INCLUDE points to the directory with db_185.h which
is the include file used by arpd to get to the old format Berkeley
database routines.  Often this is in the db-devel package.

2. make

The makefile will automatically build a config.mk file which
contains definitions of libraries that may or may not be available
on the system such as: ATM, ELF, MNL, and SELINUX.

3. include/uapi

This package includes matching sanitized kernel headers because
the build environment may not have up to date versions. See Makefile
if you have special requirements and need to point at different
kernel include files.

Stephen Hemminger
stephen@networkplumber.org

David Ahern
dsahern@gmail.com