Opened 14 years ago

Last modified 14 years ago

#6280 closed bug

Long network interface names cause problems — at Initial Version

Reported by: atis.elsts Owned by: nobody
Priority: normal Milestone: R1
Component: Network & Internet Version: R1/alpha2
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

There is a potential crash when the length of an interface name is equal to IF_NAMESIZE. In this case the C string in the ifr_name field may not be null-terminated. This situation should be taken in account everywhere when the struct ifreq is used in the kernel and in the userspace.

To repeat: try to configure intarface alias with name '/dev/net/etherpci/0:123456789012': ifconfig /dev/net/etherpci/0:123456789012 1.2.3.4

Change History (0)

Note: See TracTickets for help on using tickets.