linux/drivers/misc/mei
Alexander Usyskin ad6dcc7833 mei: bus: fix received data size check in NFC fixup
commit 582ab27a06 upstream.

NFC version reply size checked against only header size, not against
full message size. That may lead potentially to uninitialized memory access
in version data.

That leads to warnings when version data is accessed:
drivers/misc/mei/bus-fixup.c: warning: '*((void *)&ver+11)' may be used uninitialized in this function [-Wuninitialized]:  => 212:2

Reported in
Build regressions/improvements in v4.9-rc3
https://lkml.org/lkml/2016/10/30/57

Fixes: 59fcd7c63a (mei: nfc: Initial nfc implementation)
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.16:
 - Drop change in mei_phy.c
 - Adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-02-23 03:54:26 +00:00
..
amthif.c mei: fix format string in debug prints 2016-05-01 00:05:49 +02:00
bus.c mei: bus: fix possible boundaries violation 2014-10-30 09:40:13 -07:00
client.c mei: fix format string in debug prints 2016-05-01 00:05:49 +02:00
client.h mei: client.h fix checkpatch errors 2014-03-17 15:57:43 -07:00
debugfs.c mei: export active connections to debugfs 2014-02-07 15:09:35 -08:00
hbm.c mei: fix memory leak of mei_clients array 2014-05-27 14:15:25 -07:00
hbm.h mei: fix memory leak of mei_clients array 2014-05-27 14:15:25 -07:00
hw-me-regs.h mei: me: introduce power gating registers 2014-05-03 19:20:23 -04:00
hw-me.c mei: me: release hw from reset only during the reset flow 2015-03-02 13:17:06 +00:00
hw-me.h mei: me: move probe quirk to cfg structure 2014-05-27 14:16:38 -07:00
hw-txe-regs.h mei: extract fw status registers 2014-05-03 19:21:22 -04:00
hw-txe.c mei: txe: don't clean an unprocessed interrupt cause. 2017-02-23 03:54:20 +00:00
hw-txe.h mei: add per device configuration 2014-05-27 14:16:38 -07:00
hw.h mei: me: bump hbm version to 1.1 to support power gating 2014-05-03 19:20:25 -04:00
init.c mei: make device disabled on stop unconditionally 2015-03-18 15:06:06 +00:00
interrupt.c mei: fix format string in debug prints 2016-05-01 00:05:49 +02:00
Kconfig mei: fix compilation error with missing WATCHDOG_CORE 2014-02-14 10:13:46 -08:00
main.c mei: fix format string in debug prints 2016-05-01 00:05:49 +02:00
Makefile mei: txe: add Kbuild for TXE device 2014-02-07 15:08:46 -08:00
mei_dev.h mei: fix possible integer overflow issue 2016-05-01 00:05:49 +02:00
nfc.c mei: bus: fix received data size check in NFC fixup 2017-02-23 03:54:26 +00:00
pci-me.c mei: don't schedule suspend in pm idle 2014-09-05 16:36:27 -07:00
pci-txe.c mei: don't schedule suspend in pm idle 2014-09-05 16:36:27 -07:00
wd.c mei: set connecting state just upon connection request is sent to the fw 2014-05-03 19:21:56 -04:00