mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+c104904eeb2c0edbdb06@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [block?] BUG: corrupted list in loop_process_work
Date: Sun, 16 Feb 2025 07:40:07 +0800	[thread overview]
Message-ID: <20250215234008.2328-1-hdanton@sina.com> (raw)
In-Reply-To: <67afa060.050a0220.21dd3.0051.GAE@google.com>

On Fri, 14 Feb 2025 11:58:24 -0800
> syzbot found the following issue on:
> 
> HEAD commit:    c674aa7c289e Add linux-next specific files for 20250212
> git tree:       linux-next
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=17e18aa4580000

#syz test

--- x/drivers/block/loop.c
+++ y/drivers/block/loop.c
@@ -1974,7 +1974,8 @@ static void loop_process_work(struct loo
 	 */
 	if (worker && !work_pending(&worker->work)) {
 		worker->last_ran_at = jiffies;
-		list_add_tail(&worker->idle_list, &lo->idle_worker_list);
+		if (list_empty(&worker->idle_list))
+			list_add_tail(&worker->idle_list, &lo->idle_worker_list);
 		loop_set_timer(lo);
 	}
 	spin_unlock_irq(&lo->lo_work_lock);
--

  reply	other threads:[~2025-02-15 23:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-14 19:58 syzbot
2025-02-15 23:40 ` Hillf Danton [this message]
2025-02-16  2:00   ` syzbot
2025-02-17  5:57 ` reply: " 黄朝阳 (Zhaoyang Huang)
2025-02-18  2:49   ` Zhaoyang Huang
2025-02-18  3:33     ` Ming Lei

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=20250215234008.2328-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+c104904eeb2c0edbdb06@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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

all inboxes | Powered by JetHome®