aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorTomas Winkler <[email protected]>2020-02-11 16:05:22 +0000
committerGreg Kroah-Hartman <[email protected]>2020-02-11 22:03:19 +0000
commit3aef021b2df7d8440225a53460c0d34b140297d5 (patch)
treecef331537a1db05d2ba8f39ac50db76efe06c26e /lib/dynamic_debug.c
parentmei: bus: replace zero-length array with flexible-array member (diff)
downloadkernel-3aef021b2df7d8440225a53460c0d34b140297d5.tar.gz
kernel-3aef021b2df7d8440225a53460c0d34b140297d5.zip
mei: limit number of bytes in mei header.
The MEI message header provides only 9 bits for storing the message size, limiting to 511. In theory the host buffer (hbuf) can contain up to 1020 bytes (limited by byte = 255 * 4) With the current hardware and hbuf size 512, this is not a real issue, but as hardening approach we enforce the limit. Signed-off-by: Tomas Winkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions