mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+5250c4727db03e3436cc@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [mm?] general protection fault in mremap
Date: Sun,  6 Apr 2025 10:02:27 +0800	[thread overview]
Message-ID: <tencent_58BA62BBDD331C9E981BDB4B611B6725A508@qq.com> (raw)
In-Reply-To: <67f1c7df.050a0220.0a13.0256.GAE@google.com>

#syz test

diff --git a/mm/mremap.c b/mm/mremap.c
index 0865387531ed..7db9da609c84 100644
--- a/mm/mremap.c
+++ b/mm/mremap.c
@@ -1561,11 +1561,12 @@ static unsigned long expand_vma_in_place(struct vma_remap_struct *vrm)
 	 * adjacent to the expanded vma and otherwise
 	 * compatible.
 	 */
-	vma = vrm->vma = vma_merge_extend(&vmi, vma, vrm->delta);
+	vma = vma_merge_extend(&vmi, vma, vrm->delta);
 	if (!vma) {
 		vrm_uncharge(vrm);
 		return -ENOMEM;
 	}
+	vrm->vma = vma;
 
 	vrm_stat_account(vrm, vrm->delta);
 


  reply	other threads:[~2025-04-06  2:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-06  0:16 syzbot
2025-04-06  2:02 ` Edward Adam Davis [this message]
2025-04-06  3:24   ` syzbot
2025-04-07 10:12     ` Lorenzo Stoakes
2025-04-07 10:09 ` Lorenzo Stoakes
2025-04-07 10:13   ` Aleksandr Nogikh
2025-04-07 10:28     ` Lorenzo Stoakes
2025-04-09 14:57       ` Aleksandr Nogikh
2025-04-09 17:30         ` Lorenzo Stoakes
2025-04-14 15:15           ` Aleksandr Nogikh
2025-05-14 13:58 ` 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=tencent_58BA62BBDD331C9E981BDB4B611B6725A508@qq.com \
    --to=eadavis@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+5250c4727db03e3436cc@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®