Re: [PATCH v5] kcov: fix data corruption and race conditions on PREEMPT_RT by moving saved remote state to task_struct

From: Tetsuo Handa

Date: Tue Jul 07 2026 - 18:08:02 EST


On 2026/07/08 0:00, Alexander Potapenko wrote:
> On Tue, Jul 7, 2026 at 3:36 PM Tetsuo Handa
> <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:
>>
>> On 2026/06/27 18:58, Tetsuo Handa wrote:
>>> Only compile tested. This version preserves kcov_percpu_data.lock which the past
>>> versions attempted to remove ( https://sashiko.dev/#/message/7aff4d71-a6a0-4898-9491-2a3973e9d0cc%40I-love.SAKURA.ne.jp )
>>> and explicitly passes context type instead of relying on buffer size in case
>>> a task context by chance requested buffer size which is equals to the size of
>>> buffers preallocated for the softirq context.
>>
>> Since sashiko did not find new problem, can we start testing this version?
>> ( https://sashiko.dev/#/patchset/8eef915c-96d4-4901-b404-60a19d5f9f54@xxxxxxxxxxxxxxxxxxx )
>>
> Hi Tetsuo,
>
> Sorry, this has been on my plate, I will take a look tomorrow.
> Do you want to test this patch by pulling it into linux-next?

I can test this patch in linux-next using my tree (where changes will be
later reverted by "git push -f") so that we can see whether this patch can
close syzbot reports, before you commit this patch as a permanent change
via your tree.