https://github.com/torvalds/linux
Revision 1840bb13c22f5b8fd2e242e36c8d6ea3f312be67 authored by Thomas Graf on 24 February 2008, 03:54:36 UTC, committed by David S. Miller on 24 February 2008, 03:54:36 UTC
RTM_NEWLINK allows for already existing links to be modified. For this
purpose do_setlink() is called which expects address attributes with a
payload length of at least dev->addr_len. This patch adds the necessary
validation for the RTM_NEWLINK case.

The address length for links to be created is not checked for now as the
actual attribute length is used when copying the address to the netdevice
structure. It might make sense to report an error if less than addr_len
bytes are provided but enforcing this might break drivers trying to be
smart with not transmitting all zero addresses.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 759afc3
History
Tip revision: 1840bb13c22f5b8fd2e242e36c8d6ea3f312be67 authored by Thomas Graf on 24 February 2008, 03:54:36 UTC
[RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK
Tip revision: 1840bb1
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 636 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.4 KB
Kbuild -rw-r--r-- 1.6 KB
MAINTAINERS -rw-r--r-- 94.3 KB
Makefile -rw-r--r-- 52.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top