[PATCH net] net/ncsi: Fix array size in dumpit handler

David Miller davem at davemloft.net
Fri Jun 1 05:59:30 AEST 2018


From: Samuel Mendoza-Jonas <sam at mendozajonas.com>
Date: Thu, 31 May 2018 14:10:04 +1000

> With CONFIG_CC_STACKPROTECTOR enabled the kernel panics as below when
> parsing a NCSI_CMD_PKG_INFO command:
 ...
> This turns out to be because the attrs array in ncsi_pkg_info_all_nl()
> is initialised to a length of NCSI_ATTR_MAX which is the maximum
> attribute number, not the number of attributes.
> 
> Fixes: 955dc68cb9b2 ("net/ncsi: Add generic netlink family")
> Signed-off-by: Samuel Mendoza-Jonas <sam at mendozajonas.com>

Applied, thanks.


More information about the openbmc mailing list