aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2021-12-01 13:25:27 +0000
committerGreg Kroah-Hartman <[email protected]>2021-12-21 09:14:52 +0000
commit433b7cd1e702b0918ef90cbf06c3da24313625d2 (patch)
tree3bfe692bdd9e3d13aae9916b19ec7e7f1782c401 /drivers/iio/trigger/stm32-timer-trigger.c
parentfirmware: qemu_fw_cfg: fix kobject leak in probe error path (diff)
downloadkernel-433b7cd1e702b0918ef90cbf06c3da24313625d2.tar.gz
kernel-433b7cd1e702b0918ef90cbf06c3da24313625d2.zip
firmware: qemu_fw_cfg: fix sysfs information leak
Make sure to always NUL-terminate file names retrieved from the firmware to avoid accessing data beyond the entry slab buffer and exposing it through sysfs in case the firmware data is corrupt. Fixes: 75f3e8e47f38 ("firmware: introduce sysfs driver for QEMU's fw_cfg device") Cc: [email protected] # 4.6 Cc: Gabriel Somlo <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions