linux/drivers/misc/mei
Alexander Usyskin 2c34622d9c mei: trace: treat reg parameter as string
[ Upstream commit 06d5a7afe1 ]

The commit
afd2627f72 ("tracing: Check "%s" dereference via the field and not the TP_printk format")
forbids to emit event with a plain char* without a wrapper.

The reg parameter always passed as static string and wrapper
is not strictly required, contrary to dev parameter.
Use the string wrapper anyway to check sanity of the reg parameters,
store it value independently and prevent internal kernel data leaks.

Since some code refactoring has taken place, explicit backporting may
be needed for kernels older than 6.10.

Cc: stable@vger.kernel.org  # v6.11+
Fixes: a0a927d06d ("mei: me: add io register tracing")
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://patch.msgid.link/20260111145125.1754912-1-alexander.usyskin@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ adapted __assign_str() calls to use two arguments ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-02-06 16:42:03 +01:00
..
hdcp misc/mei/hdcp: Use correct macros to initialize uuid_le 2023-03-10 09:39:38 +01:00
bus-fixup.c mei: bus-fixup:upon error print return values of send and receive 2023-03-11 13:57:34 +01:00
bus.c Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
client.c misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write 2023-12-13 18:36:45 +01:00
client.h mei: constify passed buffers and structures 2021-07-29 17:08:04 +02:00
debugfs.c mei: add support for client dma capability 2021-02-06 15:48:11 +01:00
dma-ring.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hbm.c mei: hbm: drop capability response on early shutdown 2022-06-22 14:22:03 +02:00
hbm.h mei: implement client dma setup. 2021-02-06 15:48:11 +01:00
hw-me-regs.h mei: me: add nova lake point S DID 2026-01-19 13:10:13 +01:00
hw-me.c mei: me: disable driver on the ign firmware 2022-04-08 14:22:49 +02:00
hw-me.h mei: add device kind to sysfs 2020-07-29 16:21:13 +02:00
hw-txe-regs.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw-txe.c mei: hw: use sizeof of variable instead of struct type 2020-07-23 19:33:09 +02:00
hw-txe.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw.h mei: revamp mei extension header structure layout. 2021-06-22 12:40:31 +02:00
init.c mei: allow clients on bus to communicate in remove callback 2021-02-06 15:48:11 +01:00
interrupt.c mei: avoid iterator usage outside of list_for_each_entry 2022-04-08 14:22:49 +02:00
Kconfig Revert "mei: virtio: virtualization frontend driver" 2020-12-06 10:36:17 +01:00
main.c mei: demote client disconnect warning on suspend to debug 2024-07-27 10:46:10 +02:00
Makefile Revert "mei: virtio: virtualization frontend driver" 2020-12-06 10:36:17 +01:00
mei-trace.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
mei-trace.h mei: trace: treat reg parameter as string 2026-02-06 16:42:03 +01:00
mei_dev.h mei: constify passed buffers and structures 2021-07-29 17:08:04 +02:00
pci-me.c mei: me: add nova lake point S DID 2026-01-19 13:10:13 +01:00
pci-txe.c mei: fix kdoc in the driver 2021-06-22 12:40:31 +02:00