* Re: [PATCH v2] intel_th: core: fix null pointer dereference in intel_th_irq
[not found] <20251118212106.541728-1-darcari@redhat.com>
@ 2025-11-19 12:55 ` Markus Elfring
2025-11-20 12:32 ` David Arcari
0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2025-11-19 12:55 UTC (permalink / raw)
To: David Arcari, kernel-janitors, Alexander Shishkin; +Cc: LKML, Jerry Hoemann
> 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
2. You may occasionally put more than 60 characters into text lines
of such a change description.
3. Would a summary phrase like “Prevent null pointer dereference
in intel_th_output_enable()” be more appropriate?
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] intel_th: core: fix null pointer dereference in intel_th_irq
2025-11-19 12:55 ` [PATCH v2] intel_th: core: fix null pointer dereference in intel_th_irq Markus Elfring
@ 2025-11-20 12:32 ` David Arcari
2025-11-20 13:07 ` [v2] " Markus Elfring
0 siblings, 1 reply; 5+ messages in thread
From: David Arcari @ 2025-11-20 12:32 UTC (permalink / raw)
To: Markus Elfring, kernel-janitors, Alexander Shishkin; +Cc: LKML, Jerry Hoemann
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?
>
> 2. You may occasionally put more than 60 characters into text lines
> of such a change description.
I can redo the body of the commit and submit a v3 if the maintainer is
interested in applying a patch of this nature.
>
> 3. Would a summary phrase like “Prevent null pointer dereference
> in intel_th_output_enable()” be more appropriate?
The null pointer deference occurs in intel_th_irq. So I could change it
to "Prevent null pointer dererference in intel_th_irq".
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v2] intel_th: core: fix null pointer dereference in intel_th_irq
2025-11-20 12:32 ` David Arcari
@ 2025-11-20 13:07 ` Markus Elfring
2025-11-20 13:22 ` David Arcari
0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2025-11-20 13:07 UTC (permalink / raw)
To: David Arcari; +Cc: LKML, kernel-janitors, Alexander Shishkin
…>>> 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.
Perhaps?
> However, do you have alternate wording you would like to suggest?
Under which circumstances would you get into the mood to convert the wording approach
“can be fixed by” into an imperative one?
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v2] intel_th: core: fix null pointer dereference in intel_th_irq
2025-11-20 13:07 ` [v2] " Markus Elfring
@ 2025-11-20 13:22 ` David Arcari
2026-01-16 12:49 ` Alexander Shishkin
0 siblings, 1 reply; 5+ messages in thread
From: David Arcari @ 2025-11-20 13:22 UTC (permalink / raw)
To: Markus Elfring; +Cc: LKML, kernel-janitors, Alexander Shishkin
On 11/20/25 8:07 AM, Markus Elfring wrote:
> …>>> 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.
>
> Perhaps?
>
>
>> However, do you have alternate wording you would like to suggest?
>
> Under which circumstances would you get into the mood to convert the wording approach
> “can be fixed by” into an imperative one?
I see. I will make that change if a v3 is in order. Naturally, I'd like
to hear back from Alexander before putting more effort into this.
Best,
-DA
>
> Regards,
> Markus
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v2] intel_th: core: fix null pointer dereference in intel_th_irq
2025-11-20 13:22 ` David Arcari
@ 2026-01-16 12:49 ` Alexander Shishkin
0 siblings, 0 replies; 5+ messages in thread
From: Alexander Shishkin @ 2026-01-16 12:49 UTC (permalink / raw)
To: David Arcari; +Cc: alexander.shishkin, LKML, kernel-janitors
David Arcari <darcari@redhat.com> writes:
> On 11/20/25 8:07 AM, Markus Elfring wrote:
>> …>>> 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.
>>
>> Perhaps?
>>
>>
>>> However, do you have alternate wording you would like to suggest?
>>
>> Under which circumstances would you get into the mood to convert the wording approach
>> “can be fixed by” into an imperative one?
>
> I see. I will make that change if a v3 is in order. Naturally, I'd like
> to hear back from Alexander before putting more effort into this.
Sorry for the delay, I found a working intel_th, so I'm looking into it,
I'll get back to you shortly.
Thanks,
--
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-16 12:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20251118212106.541728-1-darcari@redhat.com>
2025-11-19 12:55 ` [PATCH v2] intel_th: core: fix null pointer dereference in intel_th_irq Markus Elfring
2025-11-20 12:32 ` David Arcari
2025-11-20 13:07 ` [v2] " Markus Elfring
2025-11-20 13:22 ` David Arcari
2026-01-16 12:49 ` Alexander Shishkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox