BUG: sleeping function called from invalid context at block/blk-sysfs.c:766
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 9804, name: syz-executor.2
preempt_count: 101, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 9804 Comm: syz-executor.2 Tainted: G W 5.17.0-syzkaller-13564-gb423e54ba965 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
__might_resched.cold+0x222/0x26b kernel/sched/core.c:9733
blk_release_queue+0x1f/0x320 block/blk-sysfs.c:766
kobject_cleanup lib/kobject.c:705 [inline]
kobject_release lib/kobject.c:736 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x1c8/0x540 lib/kobject.c:753
blkg_free.part.0+0x112/0x1f0 block/blk-cgroup.c:86
blkg_free block/blk-cgroup.c:78 [inline]
__blkg_release+0x105/0x160 block/blk-cgroup.c:102
rcu_do_batch kernel/rcu/tree.c:2535 [inline]
rcu_core+0x7b1/0x1880 kernel/rcu/tree.c:2786
__do_softirq+0x29b/0x9c2 kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x123/0x180 kernel/softirq.c:637
irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:folio_test_anon include/linux/page-flags.h:651 [inline]
RIP: 0010:PageAnon include/linux/page-flags.h:656 [inline]
RIP: 0010:mm_counter include/linux/mm.h:2043 [inline]
RIP: 0010:zap_pte_range mm/memory.c:1388 [inline]
RIP: 0010:zap_pmd_range mm/memory.c:1497 [inline]
RIP: 0010:zap_pud_range mm/memory.c:1526 [inline]
RIP: 0010:zap_p4d_range mm/memory.c:1547 [inline]
RIP: 0010:unmap_page_range+0xf6f/0x3fa0 mm/memory.c:1568
Code: e3 01 48 89 de e8 b1 25 c8 ff 48 85 db 0f 85 f8 15 00 00 e8 13 23 c8 ff 0f 1f 44 00 00 e8 09 23 c8 ff 4c 89 fb e8 01 23 c8 ff <48> 8d 7b 18 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 4c 29 00 00
RSP: 0018:ffffc90004797788 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffffea00019fdec0 RCX: 0000000000000000
RDX: ffff88804be20000 RSI: ffffffff81b0ffdf RDI: 0000000000000003
RBP: ffffea00019fdec8 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81b0ffbf R11: 0000000000000000 R12: 8000000067f7b007
R13: 00007f03a266a000 R14: dffffc0000000000 R15: ffffea00019fdec0
unmap_single_vma+0x198/0x310 mm/memory.c:1613
unmap_vmas+0x16b/0x2f0 mm/memory.c:1645
exit_mmap+0x1c4/0x4a0 mm/mmap.c:3148
__mmput+0x122/0x4b0 kernel/fork.c:1183
mmput+0x56/0x60 kernel/fork.c:1205
exit_mm kernel/exit.c:510 [inline]
do_exit+0xa12/0x2a00 kernel/exit.c:782
do_group_exit+0xd2/0x2f0 kernel/exit.c:925
get_signal+0x22df/0x24c0 kernel/signal.c:2904
arch_do_signal_or_restart+0x82/0x20f0 arch/x86/kernel/signal.c:867
exit_to_user_mode_loop kernel/entry/common.c:180 [inline]
exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:215
__syscall_exit_to_user_mode_work kernel/entry/common.c:297 [inline]
syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:308
do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f03a2a89049
Code: Unable to access opcode bytes at RIP 0x7f03a2a8901f.
RSP: 002b:00007f03a3c29218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f03a2b9bf68 RCX: 00007f03a2a89049
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f03a2b9bf68
RBP: 00007f03a2b9bf60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f03a2b9bf6c
R13: 00007ffff98bc79f R14: 00007f03a3c29300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: e3 01 jrcxz 0x3
2: 48 89 de mov %rbx,%rsi
5: e8 b1 25 c8 ff callq 0xffc825bb
a: 48 85 db test %rbx,%rbx
d: 0f 85 f8 15 00 00 jne 0x160b
13: e8 13 23 c8 ff callq 0xffc8232b
18: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
1d: e8 09 23 c8 ff callq 0xffc8232b
22: 4c 89 fb mov %r15,%rbx
25: e8 01 23 c8 ff callq 0xffc8232b
* 2a: 48 8d 7b 18 lea 0x18(%rbx),%rdi <-- trapping instruction
2e: 48 89 f8 mov %rdi,%rax
31: 48 c1 e8 03 shr $0x3,%rax
35: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1)
3a: 0f 85 4c 29 00 00 jne 0x298c