BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W 5.17.0-syzkaller #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:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:116 [inline] RIP: 0010:acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:556 Code: 89 de e8 bd 19 17 f8 84 db 75 ac e8 d4 15 17 f8 e8 3f 5e 1d f8 eb 0c e8 c8 15 17 f8 0f 00 2d 41 31 d0 00 e8 bc 15 17 f8 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 37 18 17 f8 48 85 db RSP: 0018:ffffc90000177d18 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888010ee9d00 RSI: ffffffff89620d24 RDI: ffffffff89620d11 RBP: ffff888145af6064 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff817f6b88 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888145af6000 R14: ffff888145af6064 R15: ffff8881477a6004 acpi_idle_enter+0x361/0x500 drivers/acpi/processor_idle.c:692 cpuidle_enter_state+0x1b1/0xc80 drivers/cpuidle/cpuidle.c:237 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351 call_cpuidle kernel/sched/idle.c:155 [inline] cpuidle_idle_call kernel/sched/idle.c:236 [inline] do_idle+0x3e8/0x590 kernel/sched/idle.c:303 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:400 start_secondary+0x265/0x340 arch/x86/kernel/smpboot.c:266 secondary_startup_64_no_verify+0xc3/0xcb BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22216, name: syz-executor.3 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 22216 Comm: syz-executor.3 Tainted: G W 5.17.0-syzkaller #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:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x13/0x60 kernel/kcov.c:199 Code: 02 66 0f 1f 44 00 00 48 8b be a8 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 8b 05 d9 4c 89 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 <65> 48 8b 14 25 00 70 02 00 a9 00 01 ff 00 74 0e 85 c9 74 35 8b 82 RSP: 0018:ffffc9000ae2fb00 EFLAGS: 00000246 RAX: 0000000080000001 RBX: ffff88801aadcf10 RCX: 0000000000000000 RDX: ffff888024cfd700 RSI: ffffffff81b8cd26 RDI: ffff888018ae0f78 RBP: ffffc90003d21000 R08: ffffc90003d21000 R09: 0000000000000003 R10: ffffffff81b8ccfd R11: 0000000000000000 R12: dffffc0000000000 R13: ffff888018ae0f60 R14: ffffc90003d21000 R15: 0000000000000000 __find_vmap_area mm/vmalloc.c:823 [inline] find_vmap_area mm/vmalloc.c:1817 [inline] find_vm_area mm/vmalloc.c:2538 [inline] __vunmap+0x126/0xe10 mm/vmalloc.c:2652 __vfree+0x3c/0xd0 mm/vmalloc.c:2723 vfree+0x5a/0x90 mm/vmalloc.c:2754 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:884 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1041 [inline] do_ip6t_get_ctl+0x82f/0xa10 net/ipv6/netfilter/ip6_tables.c:1672 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x1be/0x270 net/ipv6/ipv6_sockglue.c:1504 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:4295 __sys_getsockopt+0x21f/0x6a0 net/socket.c:2224 __do_sys_getsockopt net/socket.c:2239 [inline] __se_sys_getsockopt net/socket.c:2236 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2236 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f61a508a66a Code: 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd96dd28f8 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000029 RCX: 00007f61a508a66a RDX: 0000000000000041 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 00007ffd96dd2920 R08: 00007ffd96dd291c R09: ff78736871746264 R10: 00007ffd96dd2980 R11: 0000000000000212 R12: 00007ffd96dd2980 R13: 0000000000000003 R14: 00007ffd96dd291c R15: 00007f61a516c660 ---------------- Code disassembly (best guess): 0: 89 de mov %ebx,%esi 2: e8 bd 19 17 f8 callq 0xf81719c4 7: 84 db test %bl,%bl 9: 75 ac jne 0xffffffb7 b: e8 d4 15 17 f8 callq 0xf81715e4 10: e8 3f 5e 1d f8 callq 0xf81d5e54 15: eb 0c jmp 0x23 17: e8 c8 15 17 f8 callq 0xf81715e4 1c: 0f 00 2d 41 31 d0 00 verw 0xd03141(%rip) # 0xd03164 23: e8 bc 15 17 f8 callq 0xf81715e4 28: fb sti 29: f4 hlt * 2a: 9c pushfq <-- trapping instruction 2b: 5b pop %rbx 2c: 81 e3 00 02 00 00 and $0x200,%ebx 32: fa cli 33: 31 ff xor %edi,%edi 35: 48 89 de mov %rbx,%rsi 38: e8 37 18 17 f8 callq 0xf8171874 3d: 48 85 db test %rbx,%rbx