[PATCH linux dev-4.10 0/2] drivers: sbefifo and occ-hwmon: Fix memory corruption

Andrew Jeffery andrew at aj.id.au
Fri Oct 27 10:14:48 AEDT 2017


On Thu, 2017-10-26 at 15:15 -0500, Eddie James wrote:
> > From: "Edward A. James" <eajames at us.ibm.com>
> 
> There was some potential for bad memory access in the sbefifo driver. List
> iteration will access the current position iterator, which in some cases in the
> sbefifo driver was freed. Use a safe loop and delete the member from the list
> first.
> 
> The second, more severe, problem was an incorrect amount of memory allocated
> for the extended sensor attributes in the occ-hwmon driver. That was my mistake
> in initially adding the extended attributes. I suppose we haven't hit much
> memory corruption because the occ doesn't normally return extended sensors.
> 
> Edward A. James (2):
>   drivers (fsi): sbefifo: Fix xfr deletion in lists
>   drivers (hwmon): occ: Fix memory allocation for extended sensors

Thanks, applied to dev-4.10.

Andrew

> 
>  drivers/fsi/fsi-sbefifo.c  | 19 ++++++++++++-------
>  drivers/hwmon/occ/common.c |  2 +-
>  2 files changed, 13 insertions(+), 8 deletions(-)
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20171027/5216128c/attachment.sig>


More information about the openbmc mailing list