Re: [PATCH net] bnxt_en: Fix memory fault in bnxt_ethtool_init()

2018-04-19 Thread David Miller
From: Michael Chan Date: Thu, 19 Apr 2018 03:16:16 -0400 > From: Vasundhara Volam > > In some firmware images, the length of BNX_DIR_TYPE_PKG_LOG nvram type > could be greater than the fixed buffer length of 4096 bytes allocated by > the driver. This was causing HWRM_NVM_READ to copy more data

[PATCH net] bnxt_en: Fix memory fault in bnxt_ethtool_init()

2018-04-19 Thread Michael Chan
From: Vasundhara Volam In some firmware images, the length of BNX_DIR_TYPE_PKG_LOG nvram type could be greater than the fixed buffer length of 4096 bytes allocated by the driver. This was causing HWRM_NVM_READ to copy more data to the buffer than the allocated size, causing general protection fa