[ 8.696879][ T189] ip (189) used greatest stack depth: 23872 bytes left [ 14.634297][ T239] GACT probability NOT on [ 17.063362][ C2] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:623 [ 17.063743][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 480, name: tc [ 17.063966][ C2] preempt_count: 100, expected: 0 [ 17.064132][ C2] RCU nest depth: 0, expected: 0 [ 17.064333][ C2] 1 lock held by tc/480: [ 17.064473][ C2] #0: ffffffff8eb77c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 17.064745][ C2] Preemption disabled at: [ 17.064748][ C2] [] handle_softirqs+0xf7/0x940 [ 17.065076][ C2] CPU: 2 UID: 0 PID: 480 Comm: tc Not tainted 7.1.0-rc5-virtme #1 PREEMPT(full) [ 17.065080][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.065082][ C2] Call Trace: [ 17.065084][ C2] [ 17.065086][ C2] dump_stack_lvl+0x6f/0xa0 [ 17.065093][ C2] ? handle_softirqs+0xf7/0x940 [ 17.065095][ C2] __might_resched.cold+0x20d/0x2d6 [ 17.065098][ C2] ? down_write_killable+0x7a/0x260 [ 17.065103][ C2] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 17.065106][ C2] ? entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.065110][ C2] __mutex_lock+0x118/0x2010 [ 17.065112][ C2] ? validate_chain+0x38b/0xc20 [ 17.065115][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 17.065120][ C2] ? ww_mutex_lock+0x160/0x160 [ 17.065121][ C2] ? __lock_acquire+0x508/0xc10 [ 17.065127][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.065131][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 17.065132][ C2] __tcf_chain_put+0x5f/0xb20 [ 17.065138][ C2] ? free_percpu.part.0+0x5f7/0xc80 [ 17.065149][ C2] tcf_action_rcu_free+0x14f/0x1a0 [ 17.065151][ C2] ? rcu_do_batch+0x2b4/0x1020 [ 17.065153][ C2] rcu_do_batch+0x2b6/0x1020 [ 17.065158][ C2] ? trace_rcu_batch_end+0x330/0x330 [ 17.065161][ C2] ? rcu_is_watching+0x15/0xd0 [ 17.065163][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 17.065166][ C2] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 17.065168][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 17.065169][ C2] ? lockdep_hardirqs_on+0x8c/0x130 [ 17.065173][ C2] rcu_core+0x2bf/0x640 [ 17.065176][ C2] handle_softirqs+0x1d8/0x940 [ 17.065178][ C2] ? find_held_lock+0x2b/0x80 [ 17.065181][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.065183][ C2] ? _local_bh_enable+0xd0/0xd0 [ 17.065187][ C2] __irq_exit_rcu+0x103/0x1c0 [ 17.065189][ C2] irq_exit_rcu+0xe/0x30 [ 17.065191][ C2] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 17.065193][ C2] [ 17.065193][ C2] [ 17.065195][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.065197][ C2] RIP: 0010:lock_is_held_type+0x5d/0x1a0 [ 17.065200][ C2] Code: 8b 2d 97 88 00 02 8b 95 ec 0a 00 00 85 d2 0f 85 e0 00 00 00 48 89 5c 24 08 48 89 fb 4c 89 7c 24 30 41 89 f7 4c 89 74 24 28 9c <58> 49 89 c6 fa 48 c7 c7 cd 44 63 8e e8 12 13 00 00 65 ff 05 ab ce [ 17.065201][ C2] RSP: 0018:ffa0000000c67b80 EFLAGS: 00000246 [ 17.065204][ C2] RAX: 00000000ffffffff RBX: ffffffff8eb77cc0 RCX: 0000000000000000 [ 17.065205][ C2] RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8eb77cc0 [ 17.065206][ C2] RBP: ff1100000d06a340 R08: 0000000000000001 R09: 0000000000000664 [ 17.065207][ C2] R10: 0000000000000002 R11: 0000000000000001 R12: dffffc0000000000 [ 17.065208][ C2] R13: 0000000000000000 R14: ffffffff8deca9e0 R15: 00000000ffffffff [ 17.065214][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.065217][ C2] __might_resched+0x266/0x390 [ 17.065219][ C2] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 17.065221][ C2] ? rcu_read_unlock+0x20/0x70 [ 17.065223][ C2] ? finish_fault+0x586/0xfc0 [ 17.065226][ C2] down_write_killable+0x7a/0x260 [ 17.065229][ C2] ? down_write+0x1f0/0x1f0 [ 17.065232][ C2] ? folio_put+0x50/0x80 [ 17.065234][ C2] do_mprotect_pkey+0x227/0xc10 [ 17.065236][ C2] ? do_pte_missing+0x6ae/0xe40 [ 17.065239][ C2] ? rcu_read_unlock+0x20/0x70 [ 17.065241][ C2] ? mprotect_fixup+0xbd0/0xbd0 [ 17.065243][ C2] ? __pmd_alloc+0x840/0x840 [ 17.065244][ C2] ? lock_vma_under_rcu+0x159/0x410 [ 17.065257][ C2] __x64_sys_mprotect+0x78/0xd0 [ 17.065259][ C2] ? lockdep_hardirqs_on+0x8c/0x130 [ 17.065261][ C2] ? do_syscall_64+0x82/0x590 [ 17.065262][ C2] do_syscall_64+0x117/0x590 [ 17.065264][ C2] ? trace_hardirqs_off+0xd/0x30 [ 17.065265][ C2] ? exc_page_fault+0xee/0x100 [ 17.065268][ C2] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.065269][ C2] RIP: 0033:0x7fabe16488eb [ 17.065272][ C2] Code: 00 41 83 ca 40 0f 05 48 3d 00 f0 ff ff 76 94 f7 d8 89 05 c8 49 01 00 e9 72 ff ff ff 0f 1f 00 f3 0f 1e fa b8 0a 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8d 0d a5 49 01 00 f7 d8 89 01 48 83 [ 17.065273][ C2] RSP: 002b:00007ffc11ef2eb8 EFLAGS: 00000206 ORIG_RAX: 000000000000000a [ 17.065275][ C2] RAX: ffffffffffffffda RBX: 00007fabe1551ab0 RCX: 00007fabe16488eb [ 17.065276][ C2] RDX: 0000000000000001 RSI: 0000000000002000 RDI: 00007fabe1153000 [ 17.065277][ C2] RBP: 00007ffc11ef2ed0 R08: 00007fabe1153000 R09: 00007fabe112faf0 [ 17.065277][ C2] R10: 00007fabe1551ab0 R11: 0000000000000206 R12: 0000000000000000 [ 17.065278][ C2] R13: 0000000000000050 R14: 00007fabe165d2e0 R15: 00007fabe1551ab0 [ 17.065284][ C2] [ 17.077047][ C2] [ 17.077105][ C2] ============================= [ 17.077192][ C2] [ BUG: Invalid wait context ] [ 17.077271][ C2] 7.1.0-rc5-virtme #1 Tainted: G W [ 17.077367][ C2] ----------------------------- [ 17.077443][ C2] tc/480 is trying to lock: [ 17.077561][ C2] ff1100000d27a0b0 (&block->lock){+.+.}-{4:4}, at: __tcf_chain_put+0x5f/0xb20 [ 17.077699][ C2] other info that might help us debug this: [ 17.077793][ C2] context-{3:3} [ 17.077892][ C2] 1 lock held by tc/480: [ 17.077951][ C2] #0: ffffffff8eb77c00 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x389/0x1020 [ 17.078090][ C2] stack backtrace: [ 17.078153][ C2] CPU: 2 UID: 0 PID: 480 Comm: tc Tainted: G W 7.1.0-rc5-virtme #1 PREEMPT(full) [ 17.078156][ C2] Tainted: [W]=WARN [ 17.078156][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.078157][ C2] Call Trace: [ 17.078158][ C2] [ 17.078159][ C2] dump_stack_lvl+0x6f/0xa0 [ 17.078162][ C2] __lock_acquire.cold+0x3a/0x66 [ 17.078165][ C2] ? dump_stack_lvl+0x86/0xa0 [ 17.078167][ C2] lock_acquire.part.0+0xbc/0x260 [ 17.078169][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 17.078171][ C2] ? rcu_is_watching+0x15/0xd0 [ 17.078172][ C2] ? lock_acquire+0x134/0x160 [ 17.078174][ C2] __mutex_lock+0x1ae/0x2010 [ 17.078175][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 17.078177][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 17.078179][ C2] ? ww_mutex_lock+0x160/0x160 [ 17.078180][ C2] ? __lock_acquire+0x508/0xc10 [ 17.078183][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.078185][ C2] ? __tcf_chain_put+0x5f/0xb20 [ 17.078186][ C2] __tcf_chain_put+0x5f/0xb20 [ 17.078188][ C2] ? free_percpu.part.0+0x5f7/0xc80 [ 17.078190][ C2] tcf_action_rcu_free+0x14f/0x1a0 [ 17.078192][ C2] ? rcu_do_batch+0x2b4/0x1020 [ 17.078193][ C2] rcu_do_batch+0x2b6/0x1020 [ 17.078196][ C2] ? trace_rcu_batch_end+0x330/0x330 [ 17.078197][ C2] ? rcu_is_watching+0x15/0xd0 [ 17.078199][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 17.078201][ C2] ? trace_irq_disable.constprop.0+0x9b/0x180 [ 17.078202][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x9a/0x160 [ 17.078203][ C2] ? lockdep_hardirqs_on+0x8c/0x130 [ 17.078206][ C2] rcu_core+0x2bf/0x640 [ 17.078208][ C2] handle_softirqs+0x1d8/0x940 [ 17.078209][ C2] ? find_held_lock+0x2b/0x80 [ 17.078212][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.078213][ C2] ? _local_bh_enable+0xd0/0xd0 [ 17.078215][ C2] __irq_exit_rcu+0x103/0x1c0 [ 17.078216][ C2] irq_exit_rcu+0xe/0x30 [ 17.078217][ C2] sysvec_apic_timer_interrupt+0x9d/0xe0 [ 17.078219][ C2] [ 17.078220][ C2] [ 17.078220][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.078222][ C2] RIP: 0010:lock_is_held_type+0x5d/0x1a0 [ 17.078224][ C2] Code: 8b 2d 97 88 00 02 8b 95 ec 0a 00 00 85 d2 0f 85 e0 00 00 00 48 89 5c 24 08 48 89 fb 4c 89 7c 24 30 41 89 f7 4c 89 74 24 28 9c <58> 49 89 c6 fa 48 c7 c7 cd 44 63 8e e8 12 13 00 00 65 ff 05 ab ce [ 17.078225][ C2] RSP: 0018:ffa0000000c67b80 EFLAGS: 00000246 [ 17.078227][ C2] RAX: 00000000ffffffff RBX: ffffffff8eb77cc0 RCX: 0000000000000000 [ 17.078228][ C2] RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8eb77cc0 [ 17.078229][ C2] RBP: ff1100000d06a340 R08: 0000000000000001 R09: 0000000000000664 [ 17.078230][ C2] R10: 0000000000000002 R11: 0000000000000001 R12: dffffc0000000000 [ 17.078230][ C2] R13: 0000000000000000 R14: ffffffff8deca9e0 R15: 00000000ffffffff [ 17.078233][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 17.078234][ C2] __might_resched+0x266/0x390 [ 17.078236][ C2] ? perf_trace_sched_switch+0x7d0/0x7d0 [ 17.078238][ C2] ? rcu_read_unlock+0x20/0x70 [ 17.078239][ C2] ? finish_fault+0x586/0xfc0 [ 17.078241][ C2] down_write_killable+0x7a/0x260 [ 17.078243][ C2] ? down_write+0x1f0/0x1f0 [ 17.078244][ C2] ? folio_put+0x50/0x80 [ 17.078245][ C2] do_mprotect_pkey+0x227/0xc10 [ 17.078247][ C2] ? do_pte_missing+0x6ae/0xe40 [ 17.078248][ C2] ? rcu_read_unlock+0x20/0x70 [ 17.078250][ C2] ? mprotect_fixup+0xbd0/0xbd0 [ 17.078251][ C2] ? __pmd_alloc+0x840/0x840 [ 17.078252][ C2] ? lock_vma_under_rcu+0x159/0x410 [ 17.078257][ C2] __x64_sys_mprotect+0x78/0xd0 [ 17.078258][ C2] ? lockdep_hardirqs_on+0x8c/0x130 [ 17.078260][ C2] ? do_syscall_64+0x82/0x590 [ 17.078261][ C2] do_syscall_64+0x117/0x590 [ 17.078262][ C2] ? trace_hardirqs_off+0xd/0x30 [ 17.078263][ C2] ? exc_page_fault+0xee/0x100 [ 17.078265][ C2] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.078266][ C2] RIP: 0033:0x7fabe16488eb [ 17.078268][ C2] Code: 00 41 83 ca 40 0f 05 48 3d 00 f0 ff ff 76 94 f7 d8 89 05 c8 49 01 00 e9 72 ff ff ff 0f 1f 00 f3 0f 1e fa b8 0a 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8d 0d a5 49 01 00 f7 d8 89 01 48 83 [ 17.078269][ C2] RSP: 002b:00007ffc11ef2eb8 EFLAGS: 00000206 ORIG_RAX: 000000000000000a [ 17.078270][ C2] RAX: ffffffffffffffda RBX: 00007fabe1551ab0 RCX: 00007fabe16488eb [ 17.078271][ C2] RDX: 0000000000000001 RSI: 0000000000002000 RDI: 00007fabe1153000 [ 17.078272][ C2] RBP: 00007ffc11ef2ed0 R08: 00007fabe1153000 R09: 00007fabe112faf0 [ 17.078273][ C2] R10: 00007fabe1551ab0 R11: 0000000000000206 R12: 0000000000000000 [ 17.078273][ C2] R13: 0000000000000050 R14: 00007fabe165d2e0 R15: 00007fabe1551ab0 [ 17.078275][ C2]