linux/drivers/misc/mei
Tomas Winkler f862b6b24f mei: fix possible integer overflow issue
There is a possible integer overflow following by a buffer overflow
when accumulating messages coming from the FW to compose a full payload.
Occurrence of wrap around has to be prevented for next message size
calculation.
For unsigned integer the addition overflow has occurred when the
result is smaller than one of the arguments.
To simplify the fix, the types of buf.size and buf_idx are set to the
same width, namely size_t also to be aligned with the type of length
parameter in file read/write ops.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-07 14:47:20 -08:00
..
amthif.c mei: fix possible integer overflow issue 2016-02-07 14:47:20 -08:00
bus-fixup.c mei: bus: whitelist the watchdog client 2016-02-06 22:11:06 -08:00
bus.c mei: bus: set the device name before running fixup 2015-10-29 09:02:16 +09:00
client.c mei: fix possible integer overflow issue 2016-02-07 14:47:20 -08:00
client.h mei: wd: drop the watchdog code from the core mei driver 2016-02-06 22:11:06 -08:00
debugfs.c mei: debugfs: allow hbm features list dump in earlier stages 2016-02-07 14:47:20 -08:00
hbm.c mei: fix the KDoc formating 2015-10-17 21:45:05 -07:00
hbm.h mei: me: d0i3: add d0i3 enter/exit state machine 2015-08-03 17:33:55 -07:00
hw-me-regs.h mei: me: add sunrise point device ids 2015-08-03 17:33:55 -07:00
hw-me.c mei: trace pci configuration space io 2016-02-07 13:00:52 -08:00
hw-me.h mei: me: d0i3: enable d0i3 interrupts 2015-08-03 17:33:54 -07:00
hw-txe-regs.h mei: extract fw status registers 2014-05-03 19:21:22 -04:00
hw-txe.c mei: trace pci configuration space io 2016-02-07 13:00:52 -08:00
hw-txe.h mei: fix kernel-doc warnings 2014-09-29 11:56:02 -04:00
hw.h mei: hbm: bump supported HBM version to 2.0 2015-08-03 17:33:55 -07:00
init.c mei: wd: drop the watchdog code from the core mei driver 2016-02-06 22:11:06 -08:00
interrupt.c mei: fix possible integer overflow issue 2016-02-07 14:47:20 -08:00
Kconfig mei: wd: drop the watchdog code from the core mei driver 2016-02-06 22:11:06 -08:00
main.c mei: fix possible integer overflow issue 2016-02-07 14:47:20 -08:00
Makefile mei: wd: drop the watchdog code from the core mei driver 2016-02-06 22:11:06 -08:00
mei_dev.h mei: fix possible integer overflow issue 2016-02-07 14:47:20 -08:00
mei-trace.c mei: trace pci configuration space io 2016-02-07 13:00:52 -08:00
mei-trace.h mei: trace pci configuration space io 2016-02-07 13:00:52 -08:00
pci-me.c PM / Domains: add setter for dev.pm_domain 2016-01-08 01:12:06 +01:00
pci-txe.c PM / Domains: add setter for dev.pm_domain 2016-01-08 01:12:06 +01:00