Re: [PATCH v2] intel_th: core: fix null pointer dereference in intel_th_irq
From: David Arcari
Date: Thu Nov 20 2025 - 07:32:11 EST
Hi,
On 11/19/25 7:55 AM, Markus Elfring wrote:
In certain cases intel_th_irq can reference a null entry in
the th->thdev array. This results in the splat shown below.
The problem is that intel_th_output_enable() can modify the
thdev[] array at the same time intel_th_irq is referencing
the same array. This can be fixed by disabling interrupts
during the call to intel_th_output_enable().
1. Would another imperative wording become helpful for an improved change description?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc6#n94
I feel like the description explains the problem well. However, do you have alternate wording you would like to suggest?
I can redo the body of the commit and submit a v3 if the maintainer is interested in applying a patch of this nature.
2. You may occasionally put more than 60 characters into text lines
of such a change description.
The null pointer deference occurs in intel_th_irq. So I could change it to "Prevent null pointer dererference in intel_th_irq".
3. Would a summary phrase like “Prevent null pointer dereference
in intel_th_output_enable()” be more appropriate?
Before I do anything else with this patch I'd like to hear back from Alexander. There's no reason to refactor a patch that won't be committed.
Thanks,
-DA
Regards,
Markus