Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-by: syzbot+7402e6c8042635c93ead@xxxxxxxxxxxxxxxxxxxxxxxxx Tested-by: syzbot+7402e6c8042635c93ead@xxxxxxxxxxxxxxxxxxxxxxxxx Tested on: commit: cffcc47b mm/mlock: set the correct prev on failure git tree: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/ mm-hotfixes-unstable console output: https://syzkaller.appspot.com/x/log.txt?x=1304a630580000 kernel config: https://syzkaller.appspot.com/x/.config?x=6648774f7c39d413 dashboard link: https://syzkaller.appspot.com/bug?extid=7402e6c8042635c93ead compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 Note: no patches were applied. Note: testing is done by a robot and is best-effort only.