public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+b7a3118f6a494674077f@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [mm?] BUG: corrupted list in do_compact_page
Date: Thu,  3 Oct 2024 18:59:34 +0800	[thread overview]
Message-ID: <20241003105934.1979-1-hdanton@sina.com> (raw)
In-Reply-To: <66fe2a10.050a0220.28a3b.0209.GAE@google.com>

On Wed, 02 Oct 2024 22:22:24 -0700
> syzbot has found a reproducer for the following issue on:
> 
> HEAD commit:    f23aa4c0761a Merge tag 'hid-for-linus-2024090201' of git:/..
> git tree:       upstream
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=174ab580580000

#syz test

--- x/mm/z3fold.c
+++ y/mm/z3fold.c
@@ -1351,8 +1351,11 @@ static void z3fold_page_putback(struct p
 	pool = zhdr_to_pool(zhdr);
 
 	z3fold_page_lock(zhdr);
-	if (!list_empty(&zhdr->buddy))
+	if (!list_empty(&zhdr->buddy)) {
+		spin_lock(&pool->lock);
 		list_del_init(&zhdr->buddy);
+		spin_unlock(&pool->lock);
+	}
 	INIT_LIST_HEAD(&page->lru);
 	if (put_z3fold_locked(zhdr))
 		return;
--

  reply	other threads:[~2024-10-03 10:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-18 11:58 [syzbot] [mm?] BUG: corrupted list in do_compact_page syzbot
2024-10-03  5:22 ` syzbot
2024-10-03 10:59   ` Hillf Danton [this message]
2024-10-03 11: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=20241003105934.1979-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+b7a3118f6a494674077f@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