Re: [PATCH] bpf: don't call mmap_read_trylock() from IRQ context

From: Tetsuo Handa
Date: Fri Jun 14 2024 - 12:18:45 EST


On 2024/06/08 20:04, Tetsuo Handa wrote:
> On 2024/06/08 19:53, Tetsuo Handa wrote:
>> inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage.
>
> Oops, "inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage." example was
> found at https://syzkaller.appspot.com/text?tag=CrashReport&x=14f0179a980000 .
>
> Then, do we want to
>
> - if (in_hardirq()) {
> + if (!in_task()) {
>
> instead?
>

"inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage." upon unlock from IRQ work
was reported at https://syzkaller.appspot.com/bug?extid=40905bca570ae6784745 .