From: Thomas Gleixner <tglx@linutronix.de>
To: syzbot <syzbot+1dab15008502531a13d2@syzkaller.appspotmail.com>,
linux-kernel@vger.kernel.org
Cc: lizhi.xu@windriver.com, Peter Zijlstra <peterz@infradead.org>
Subject: Re: [syzbot] [syzbot] [kernel?] inconsistent lock state in sock_hash_delete_elem
Date: Sat, 13 Apr 2024 13:10:16 +0200 [thread overview]
Message-ID: <8734rpzffr.ffs@tglx> (raw)
In-Reply-To: <00000000000045aaf30615035889@google.com>
On Sun, Mar 31 2024 at 23:46, syzbot wrote:
> For archival purposes, forwarding an incoming command email to
> linux-kernel@vger.kernel.org.
>
> ***
>
> Subject: [syzbot] [kernel?] inconsistent lock state in sock_hash_delete_elem
> Author: lizhi.xu@windriver.com
>
> #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fe46a7dd189e
>
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index d44efa0d0611..07a3c1d2c2d8 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -5676,7 +5676,7 @@ void scheduler_tick(void)
>
> sched_clock_tick();
>
> - rq_lock(rq, &rf);
> + rq_lock_irqsave(rq, &rf);
That's just wrong. scheduler_tick() is invoked from hard interrupt
context with interrupts disabled.
> update_rq_clock(rq);
> thermal_pressure = arch_scale_thermal_pressure(cpu_of(rq));
> @@ -5688,7 +5688,7 @@ void scheduler_tick(void)
> sched_core_tick(rq);
> task_tick_mm_cid(rq, curr);
>
> - rq_unlock(rq, &rf);
> + rq_unlock_irqrestore(rq, &rf);
>
> if (sched_feat(LATENCY_WARN) && resched_latency)
> resched_latency_warn(cpu, resched_latency);
next prev parent reply other threads:[~2024-04-13 11:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-31 19:40 [syzbot] [kernel?] inconsistent lock state in sock_hash_delete_elem syzbot
2024-04-01 6:46 ` [syzbot] " syzbot
2024-04-13 11:10 ` Thomas Gleixner [this message]
2024-04-01 7:47 ` syzbot
2024-04-01 8:36 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734rpzffr.ffs@tglx \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lizhi.xu@windriver.com \
--cc=peterz@infradead.org \
--cc=syzbot+1dab15008502531a13d2@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox