syzbot


BUG: sleeping function called from invalid context in procfs_procmap_ioctl

Status: upstream: reported syz repro on 2025/07/02 09:59
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+6246a83e7bd9f8a3e239@syzkaller.appspotmail.com
First crash: 3d02h, last: 1d02h
Cause bisection: introduced by (bisect log) :
commit 8b877c5aaaaf9b5170928d0e033ea9b0c538fc94
Author: Suren Baghdasaryan <surenb@google.com>
Date: Tue Jun 24 19:33:59 2025 +0000

  mm/maps: execute PROCMAP_QUERY ioctl under per-vma locks

Crash: BUG: sleeping function called from invalid context in procfs_procmap_ioctl (log)
Repro: syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH next] mm/maps: move kmalloc() call location in do_procmap_query() out of RCU critical section 3 (3) 2025/07/02 23:34
[syzbot] [fs?] BUG: sleeping function called from invalid context in procfs_procmap_ioctl 3 (6) 2025/07/02 15:44
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/07/02 11:53 47m aha310510@gmail.com patch linux-next OK log
2025/07/02 11:24 24m aha310510@gmail.com patch linux-next error

Sample crash report:
BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:321
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5987, name: syz.0.16
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
2 locks held by syz.0.16/5987:
 #0: ffffffff8e33bee0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
 #0: ffffffff8e33bee0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
 #0: ffffffff8e33bee0 (rcu_read_lock){....}-{1:3}, at: query_vma_setup+0x18/0x110 fs/proc/task_mmu.c:499
 #1: ffff88806218f308 (vm_lock){++++}-{0:0}, at: lock_next_vma+0x146/0xdc0 mm/mmap_lock.c:220
CPU: 0 UID: 0 PID: 5987 Comm: syz.0.16 Not tainted 6.16.0-rc4-next-20250630-syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 __might_resched+0x495/0x610 kernel/sched/core.c:8687
 might_alloc include/linux/sched/mm.h:321 [inline]
 slab_pre_alloc_hook mm/slub.c:4131 [inline]
 slab_alloc_node mm/slub.c:4209 [inline]
 __do_kmalloc_node mm/slub.c:4364 [inline]
 __kmalloc_noprof+0xbc/0x4f0 mm/slub.c:4377
 kmalloc_noprof include/linux/slab.h:909 [inline]
 do_procmap_query fs/proc/task_mmu.c:690 [inline]
 procfs_procmap_ioctl+0x877/0xd10 fs/proc/task_mmu.c:748
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff566d8e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd651d6e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff566fb5fa0 RCX: 00007ff566d8e929
RDX: 0000200000000180 RSI: 00000000c0686611 RDI: 0000000000000003
RBP: 00007ff566e10b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff566fb5fa0 R14: 00007ff566fb5fa0 R15: 0000000000000003
 </TASK>

Crashes (80):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/01 14:41 linux-next 1343433ed389 6e83b42d .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 16:02 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 15:15 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 14:43 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 13:38 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 12:59 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 12:25 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:59 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:33 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:05 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 10:33 linux-next 1343433ed389 fc9d8ee5 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/07/02 08:09 linux-next 1343433ed389 ffe4b334 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/07/02 03:41 linux-next 1343433ed389 ffe4b334 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/07/01 22:55 linux-next 1343433ed389 ffe4b334 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/07/01 19:44 linux-next 1343433ed389 ffe4b334 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/07/01 05:50 linux-next 1343433ed389 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 23:15 linux-next 1343433ed389 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 20:40 linux-next 1343433ed389 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 19:26 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 17:13 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 16:08 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:17 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:16 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:13 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:13 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:13 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:13 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:12 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:10 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:10 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:10 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 11:09 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 10:03 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 10:03 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:40 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:39 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:29 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:29 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:23 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:20 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:16 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:16 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:09 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:09 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:09 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:09 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:05 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 09:05 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:53 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:53 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:50 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:50 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:46 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:46 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:43 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:42 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:38 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:38 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:32 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
2025/06/30 08:32 linux-next 1343433ed389 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in procfs_procmap_ioctl
* Struck through repros no longer work on HEAD.