This is a note to let you know that I've just added the patch titled drm/edid: fix info leak when failing to get panel id to the 6.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-edid-fix-info-leak-when-failing-to-get-panel-id.patch and it can be found in the queue-6.2 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 4d8457fe0eb9c80ff7795cf8a30962128b71d853 Mon Sep 17 00:00:00 2001 From: Johan Hovold <johan+linaro@xxxxxxxxxx> Date: Thu, 2 Mar 2023 08:47:04 +0100 Subject: drm/edid: fix info leak when failing to get panel id From: Johan Hovold <johan+linaro@xxxxxxxxxx> commit 4d8457fe0eb9c80ff7795cf8a30962128b71d853 upstream. Make sure to clear the transfer buffer before fetching the EDID to avoid leaking slab data to the logs on errors that leave the buffer unchanged. Fixes: 69c7717c20cc ("drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error") Cc: stable@xxxxxxxxxxxxxxx # 6.2 Cc: Douglas Anderson <dianders@xxxxxxxxxxxx> Signed-off-by: Johan Hovold <johan+linaro@xxxxxxxxxx> Reviewed-by: Jani Nikula <jani.nikula@xxxxxxxxx> Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx> Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx> Link: https://patchwork.freedesktop.org/patch/msgid/20230302074704.11371-1-johan+linaro@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/drm_edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 3841aba17abd..8707fe72a028 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2797,7 +2797,7 @@ u32 drm_edid_get_panel_id(struct i2c_adapter *adapter) * the EDID then we'll just return 0. */ - base_block = kmalloc(EDID_LENGTH, GFP_KERNEL); + base_block = kzalloc(EDID_LENGTH, GFP_KERNEL); if (!base_block) return 0; -- 2.40.0 Patches currently in stable-queue which might be from johan+linaro@xxxxxxxxxx are queue-6.2/memory-tegra20-emc-fix-interconnect-registration-race.patch queue-6.2/drm-sun4i-fix-missing-component-unbind-on-bind-errors.patch queue-6.2/memory-tegra124-emc-fix-interconnect-registration-race.patch queue-6.2/interconnect-exynos-fix-registration-race.patch queue-6.2/interconnect-imx-fix-registration-race.patch queue-6.2/memory-tegra30-emc-fix-interconnect-registration-race.patch queue-6.2/interconnect-qcom-msm8974-fix-registration-race.patch queue-6.2/memory-tegra-fix-interconnect-registration-race.patch queue-6.2/interconnect-qcom-rpm-fix-probe-child-node-error-handling.patch queue-6.2/interconnect-qcom-rpm-fix-registration-race.patch queue-6.2/drm-edid-fix-info-leak-when-failing-to-get-panel-id.patch queue-6.2/interconnect-fix-provider-registration-api.patch queue-6.2/interconnect-fix-icc_provider_del-error-handling.patch queue-6.2/interconnect-qcom-rpmh-fix-registration-race.patch queue-6.2/interconnect-fix-mem-leak-when-freeing-nodes.patch queue-6.2/interconnect-qcom-rpmh-fix-probe-child-node-error-handling.patch queue-6.2/interconnect-exynos-fix-node-leak-in-probe-pm-qos-error-path.patch queue-6.2/interconnect-qcom-osm-l3-fix-registration-race.patch