From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f77.google.com (mail-ot1-f77.google.com [209.85.210.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23AC31E2606 for ; Mon, 8 Dec 2025 07:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765179692; cv=none; b=rlvJCE0pw1gi8iP/ZRi+aH0fhLLrBusfEMVOf+5xO82Ua0X41aa48sygBRlp5z/YOPvbEO1lBVLYg18kDq9idEBDLSlhnQaSVgoJo9Qyx/TGoO/e1adofac4/Ws/1ngQUU5i6US2YMKxSw+8HxuhOoy1nb/QehXtuwqz52FNbgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765179692; c=relaxed/simple; bh=vAu71k63TDtNbRV5jEC77YFSMtTNACrX6zrkz4bt2GM=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=LmSMmuSvEL4yjH/+y+cehsnGKc54NrlkohUegtIriVQcGI4Y78GhXeccEKLgyPhCYkm/v0Ro+fd6nyQwBcIRZYl9IChs9twkLqzyQ9yNIeyExinS0etSc6aZVSQHjvHSkhuijHOoswlv6UoSKQ8KrdR/3T1uVEmNBIbU+GZXCcM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.210.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f77.google.com with SMTP id 46e09a7af769-7c705ffd76fso4321438a34.3 for ; Sun, 07 Dec 2025 23:41:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765179690; x=1765784490; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HAJLktDUT5UAtTvUMmyn8iaBW7gi9xsVys20jnFN8zA=; b=r2tXYdzXfYKaTgbPilvlN+uGWakyJDJiRWIu93Yk+F/IgMYGA6OkE2LsvgKtXsmBw7 32PeCzGQmWM5tyH8sAnEyH3Rct7HDtiqofxZDD+a19fBTSYsWn6YzQOf7cOC6ndTksFj H5J/swZTQlfFcHELPMq1EF8wq3nORUPxzl93a2DFPoyyQHfyIgX7ITccxGzdrB4CjIYr xDH1ccQhGvVQcD/OHnD/liipwZrKgzZupVCeTpy//tH4A3odWFnAXNUSajVa+OoPCM+e Abr1/6ARpz0Fe3RE67axbqIHjE71RP7q2Hdq9my5HQXcJAuOQWfpsJVEvJHoex8qorlo F+eg== X-Forwarded-Encrypted: i=1; AJvYcCU2TlWuSTsaEQ20z0oWZ+KICRa+yuwohSHBqQMRRDr4MC0gJU6gHBCD/gNG+RUqvnzkF1HEwVe9cXwJFV8=@vger.kernel.org X-Gm-Message-State: AOJu0YzLX+/Ye8tuwTJBlXvgr6impL8yxHqt1HH4RakgOx4v4gi2h4lM Ds7Lqr4bb0N/qXqRv2Ye6dFhvJW48+xS7DI8tOe+jnBHhYaa2ADKFtrFmhE11hK4zxOYQXBfnwV e0Mh7gTR/ubzBWXhGCbXm21WMFyUg7wiucWfXR4LqKat7IjrbUQoPcmBSI4Q= X-Google-Smtp-Source: AGHT+IHHUhiHxMQodLBXeULNXQ0OrFhXJXKuhMghr5VAzQPOCwO/WjmqVlj4CKi/5XbQ01Sa2V/LDdpKuTjP9TepslLAIIrvk04f Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:607:b0:659:9a49:8dd9 with SMTP id 006d021491bc7-6599a8e96fbmr2538934eaf.27.1765179690145; Sun, 07 Dec 2025 23:41:30 -0800 (PST) Date: Sun, 07 Dec 2025 23:41:30 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6936812a.a70a0220.38f243.0090.GAE@google.com> Subject: [syzbot] [mm?] BUG: sleeping function called from invalid context in kvm_mmu_notifier_invalidate_range_start From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhocko@suse.com, rientjes@google.com, shakeel.butt@linux.dev, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 37bb2e7217b0 Merge tag 'staging-6.19-rc1' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=159b2992580000 kernel config: https://syzkaller.appspot.com/x/.config?x=8750900a7c493a0b dashboard link: https://syzkaller.appspot.com/bug?extid=c3178b6b512446632bac compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/461486e4058d/disk-37bb2e72.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/844c0aeb98b9/vmlinux-37bb2e72.xz kernel image: https://storage.googleapis.com/syzbot-assets/20fb43a5a012/bzImage-37bb2e72.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c3178b6b512446632bac@syzkaller.appspotmail.com BUG: sleeping function called from invalid context at kernel/locking/spinlock_rt.c:48 in_atomic(): 0, irqs_disabled(): 0, non_block: 1, pid: 39, name: oom_reaper preempt_count: 0, expected: 0 RCU nest depth: 0, expected: 0 4 locks held by oom_reaper/39: #0: ffff888030a29070 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_trylock include/linux/mmap_lock.h:410 [inline] #0: ffff888030a29070 (&mm->mmap_lock){++++}-{4:4}, at: oom_reap_task_mm mm/oom_kill.c:582 [inline] #0: ffff888030a29070 (&mm->mmap_lock){++++}-{4:4}, at: oom_reap_task mm/oom_kill.c:625 [inline] #0: ffff888030a29070 (&mm->mmap_lock){++++}-{4:4}, at: oom_reaper+0x27e/0xa90 mm/oom_kill.c:666 #1: ffffffff8d6ce600 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: mmu_notifier_invalidate_range_start_nonblock include/linux/mmu_notifier.h:456 [inline] #1: ffffffff8d6ce600 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: __oom_reap_task_mm+0x268/0x490 mm/oom_kill.c:558 #2: ffffffff8d6ce658 (srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:185 [inline] #2: ffffffff8d6ce658 (srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:277 [inline] #2: ffffffff8d6ce658 (srcu){.+.+}-{0:0}, at: mn_hlist_invalidate_range_start mm/mmu_notifier.c:468 [inline] #2: ffffffff8d6ce658 (srcu){.+.+}-{0:0}, at: __mmu_notifier_invalidate_range_start+0x30b/0x840 mm/mmu_notifier.c:533 #3: ffff8880276bcaf8 (&kvm->mn_invalidate_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock_rt.h:44 [inline] #3: ffff8880276bcaf8 (&kvm->mn_invalidate_lock){+.+.}-{3:3}, at: kvm_mmu_notifier_invalidate_range_start+0x1bd/0xae0 virt/kvm/kvm_main.c:750 CPU: 1 UID: 0 PID: 39 Comm: oom_reaper Tainted: G L syzkaller #0 PREEMPT_{RT,(full)} Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 __might_resched+0x44b/0x5d0 kernel/sched/core.c:8827 __rt_spin_lock kernel/locking/spinlock_rt.c:48 [inline] rt_spin_lock+0xc7/0x3e0 kernel/locking/spinlock_rt.c:57 spin_lock include/linux/spinlock_rt.h:44 [inline] kvm_mmu_notifier_invalidate_range_start+0x1bd/0xae0 virt/kvm/kvm_main.c:750 mn_hlist_invalidate_range_start mm/mmu_notifier.c:478 [inline] __mmu_notifier_invalidate_range_start+0x440/0x840 mm/mmu_notifier.c:533 mmu_notifier_invalidate_range_start_nonblock include/linux/mmu_notifier.h:459 [inline] __oom_reap_task_mm+0x2cb/0x490 mm/oom_kill.c:558 oom_reap_task_mm mm/oom_kill.c:601 [inline] oom_reap_task mm/oom_kill.c:625 [inline] oom_reaper+0x3aa/0xa90 mm/oom_kill.c:666 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 oom_reaper: reaped process 20496 (syz.8.2014), now anon-rss:24kB, file-rss:21692kB, shmem-rss:128kB --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup