From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+c641706ad4e9688cccdf@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [mm?] WARNING: bad unlock balance in madvise_cold_or_pageout_pte_range
Date: Thu, 4 Apr 2024 19:44:50 +0800 [thread overview]
Message-ID: <20240404114450.4136-1-hdanton@sina.com> (raw)
In-Reply-To: <000000000000b92a9d0615433065@google.com>
On Thu, 04 Apr 2024 03:56:24 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 727900b675b7 Add linux-next specific files for 20240403
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13764a3d180000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 727900b675b7
--- x/mm/madvise.c
+++ y/mm/madvise.c
@@ -482,10 +482,7 @@ restart:
err = split_folio(folio);
folio_unlock(folio);
folio_put(folio);
- if (err)
- continue;
- start_pte = pte =
- pte_offset_map_lock(mm, pmd, addr, &ptl);
+ start_pte = pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
if (!start_pte)
break;
arch_enter_lazy_mmu_mode();
--
next prev parent reply other threads:[~2024-04-04 11:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-02 17:32 [syzbot] [mm?] WARNING: bad unlock balance in madvise_cold_or_pageout_pte_range syzbot
2024-04-03 8:55 ` David Hildenbrand
2024-04-03 10:04 ` Ryan Roberts
2024-04-04 10:56 ` syzbot
2024-04-04 11:23 ` Ryan Roberts
2024-04-04 20:35 ` syzbot
2024-04-04 11:44 ` Hillf Danton [this message]
2024-04-04 22:19 ` 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=20240404114450.4136-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+c641706ad4e9688cccdf@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