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

From: Alexander Potapenko

Date: Tue Jul 07 2026 - 11:24:28 EST


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?