linux/drivers/greybus
Pengpeng Hou 18b6510f64 greybus: manifest: validate string descriptor header
identify_descriptor() computes a string descriptor size from
desc->string.length.

Require the descriptor to contain the fixed string descriptor header
before reading the variable string length. The existing descriptor-size
check then reports the short descriptor.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260706091935.78020-1-pengpeng@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 16:14:10 +02:00
..
arpc.h greybus: Replace zero-length array with flexible-array 2020-05-13 13:59:13 +02:00
bundle.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
connection.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
control.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
core.c greybus: Use bus methods for .probe() and .remove() 2026-01-16 16:32:03 +01:00
debugfs.c
es2.c greybus: es2: drop redundant device reference 2026-04-02 15:55:01 +02:00
gb-beagleplay.c greybus: gb-beagleplay: bound bootloader receive buffering 2026-04-02 15:55:09 +02:00
greybus_trace.h greybus: remove h from printk format specifier 2021-01-05 15:18:23 +01:00
hd.c greybus: Remove usage of the deprecated ida_simple_xx() API 2024-03-07 21:41:38 +00:00
interface.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig greybus: gb-beagleplay: Add firmware upload API 2024-09-12 09:04:09 +02:00
Makefile greybus: Add BeaglePlay Linux Driver 2023-10-27 13:19:04 +02:00
manifest.c greybus: manifest: validate string descriptor header 2026-07-17 16:14:10 +02:00
module.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
operation.c greybus: add WQ_PERCPU to alloc_workqueue users 2025-11-26 14:40:53 +01:00
svc_watchdog.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
svc.c greybus: svc: use kzalloc_flex 2026-04-02 15:55:01 +02:00