linux_dsm_epyc7002/drivers/misc/mei
Tomas Winkler 51072c0f5b mei: hdcp: fix mei_hdcp_verify_mprime() input parameter
wired_cmd_repeater_auth_stream_req_in has a variable
length array at the end. we use struct_size() overflow
macro to determine the size for the allocation and sending
size.
This also fixes bug in case number of streams is > 0 in the original
submission. This bug was not triggered as the number of streams is
always one.

Fixes: c56967d674 (mei: hdcp: Replace one-element array with flexible-array member)
Fixes: 0a1af1b5c1 (misc/mei/hdcp: Verify M_prime)
Cc: <stable@vger.kernel.org> # v5.1+: c56967d674 (mei: hdcp: Replace one-element array with flexible-array member)
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200818075406.2532605-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-18 15:39:38 +02:00
..
hdcp mei: hdcp: fix mei_hdcp_verify_mprime() input parameter 2020-08-18 15:39:38 +02:00
bus-fixup.c mei: bus: use sizeof of variable instead of struct type 2020-07-23 19:33:09 +02:00
bus.c mei: bus: use sizeof of variable instead of struct type 2020-07-23 19:33:09 +02:00
client.c mei: client: use sizeof of variable instead of struct type 2020-07-23 19:33:09 +02:00
client.h mei: bus: add more client attributes to sysfs 2019-11-16 12:58:54 +01:00
debugfs.c Driver Core and debugfs changes for 5.3-rc1 2019-07-12 12:24:03 -07:00
dma-ring.c
hbm.c mei: hbm: use sizeof of variable instead of struct type 2020-07-23 19:33:08 +02:00
hbm.h
hw-me-regs.h mei: me: add MEI device for KBP with ITPS capability 2020-06-29 18:40:26 +02:00
hw-me.c mei: add device kind to sysfs 2020-07-29 16:21:13 +02:00
hw-me.h mei: add device kind to sysfs 2020-07-29 16:21:13 +02:00
hw-txe-regs.h
hw-txe.c mei: hw: use sizeof of variable instead of struct type 2020-07-23 19:33:09 +02:00
hw-txe.h
hw.h mei: hw: don't use one element arrays 2020-07-23 19:33:09 +02:00
init.c mei: abstract fw status register read. 2019-11-07 09:35:49 +01:00
interrupt.c
Kconfig mei: Replace HTTP links with HTTPS ones 2020-07-23 09:27:09 +02:00
main.c mei: add device kind to sysfs 2020-07-29 16:21:13 +02:00
Makefile
mei_dev.h mei: add device kind to sysfs 2020-07-29 16:21:13 +02:00
mei-trace.c
mei-trace.h
pci-me.c mei: add device kind to sysfs 2020-07-29 16:21:13 +02:00
pci-txe.c PM: sleep: core: Rename DPM_FLAG_NEVER_SKIP 2020-04-24 21:33:09 +02:00