1
0
Fork 0
alistair23-linux/net/ncsi
Tao Ren 1c5c12ee30 net/ncsi: handle overflow when incrementing mac address
Previously BMC's MAC address is calculated by simply adding 1 to the
last byte of network controller's MAC address, and it produces incorrect
result when network controller's MAC address ends with 0xFF.

The problem can be fixed by calling eth_addr_inc() function to increment
MAC address; besides, the MAC address is also validated before assigning
to BMC.

Fixes: cb10c7c0df ("net/ncsi: Add NCSI Broadcom OEM command")
Signed-off-by: Tao Ren <taoren@fb.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-23 21:15:15 -07:00
..
Kconfig net/ncsi: Add NCSI Broadcom OEM command 2018-10-17 22:14:54 -07:00
Makefile net/ncsi: Add generic netlink family 2018-03-05 10:43:37 -05:00
internal.h net/ncsi: Add NCSI Mellanox OEM command 2018-11-27 16:37:20 -08:00
ncsi-aen.c net/ncsi: Configure multi-package, multi-channel modes with failover 2018-11-17 21:09:49 -08:00
ncsi-cmd.c net/ncsi: Extend NC-SI Netlink interface to allow user space to send NC-SI command 2018-10-15 22:00:59 -07:00
ncsi-manage.c net/ncsi: Add NCSI Mellanox OEM command 2018-11-27 16:37:20 -08:00
ncsi-netlink.c net: ncsi: fix a missing check for nla_nest_start 2019-03-16 11:44:33 -07:00
ncsi-netlink.h net/ncsi: Extend NC-SI Netlink interface to allow user space to send NC-SI command 2018-10-15 22:00:59 -07:00
ncsi-pkt.h net/ncsi: Add NCSI Mellanox OEM command 2018-11-27 16:37:20 -08:00
ncsi-rsp.c net/ncsi: handle overflow when incrementing mac address 2019-04-23 21:15:15 -07:00