[ 10.741135][ T215] GACT probability NOT on [ 10.741154][ T215] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.741157][ T215] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 215, name: modprobe [ 10.741159][ T215] preempt_count: 1, expected: 0 [ 10.741160][ T215] RCU nest depth: 0, expected: 0 [ 10.741161][ T215] locks held by modprobe/215: 4, last CPU#0: [ 10.741163][ T215] #0: ffffffffaab7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.741174][ T215] #1: ffffffffaab7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.741179][ T215] #2: ffffffffaaa9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.741184][ T215] #3: ffffffffaaa9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.741188][ T215] irq event stamp: 19010 [ 10.741189][ T215] hardirqs last enabled at (19009): [] __down_trylock_console_sem+0x86/0xa0 [ 10.741192][ T215] hardirqs last disabled at (19010): [] console_emit_next_record+0x3d4/0x4c0 [ 10.741194][ T215] softirqs last enabled at (19004): [] handle_softirqs+0x67c/0x900 [ 10.741198][ T215] softirqs last disabled at (17959): [] __irq_exit_rcu+0x145/0x1c0 [ 10.741200][ T215] Preemption disabled at: [ 10.741201][ T215] [] vprintk_emit+0x31b/0x3e0 [ 10.741206][ T215] CPU: 0 UID: 0 PID: 215 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.741210][ T215] Tainted: [W]=WARN [ 10.741211][ T215] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.741213][ T215] Call Trace: [ 10.741214][ T215] [ 10.741216][ T215] dump_stack_lvl+0x6f/0xa0 [ 10.741222][ T215] ? vprintk_emit+0x31b/0x3e0 [ 10.741224][ T215] __might_resched.cold+0x1fe/0x2c1 [ 10.741228][ T215] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.741233][ T215] ? __kmalloc_noprof+0xdb/0x760 [ 10.741237][ T215] __kmalloc_noprof+0x443/0x760 [ 10.741239][ T215] ? alloc_buf.isra.0+0x4b/0x260 [ 10.741246][ T215] ? do_raw_spin_unlock+0x59/0x250 [ 10.741249][ T215] alloc_buf.isra.0+0x4b/0x260 [ 10.741253][ T215] put_chars+0x1e1/0x2f0 [ 10.741255][ T215] ? desc_read_finalized_seq+0x79/0x120 [ 10.741257][ T215] ? __send_to_port+0x420/0x420 [ 10.741260][ T215] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.741263][ T215] ? validate_chain+0x38b/0xc20 [ 10.741268][ T215] hvc_console_print+0x292/0x780 [ 10.741272][ T215] ? __lock_acquire+0x518/0xc20 [ 10.741274][ T215] ? __lock_acquire+0x518/0xc20 [ 10.741279][ T215] ? hvc_write+0x3a0/0x3a0 [ 10.741280][ T215] ? console_emit_next_record+0x1df/0x4c0 [ 10.741284][ T215] ? rcu_is_watching+0x16/0xd0 [ 10.741286][ T215] ? lock_acquire+0x13c/0x160 [ 10.741290][ T215] console_emit_next_record+0x22f/0x4c0 [ 10.741294][ T215] ? devkmsg_read+0x4b0/0x4b0 [ 10.741296][ T215] ? console_flush_one_record+0x106/0x710 [ 10.741300][ T215] ? rcu_is_watching+0x16/0xd0 [ 10.741301][ T215] ? lock_acquire+0x13c/0x160 [ 10.741305][ T215] console_flush_one_record+0x46f/0x710 [ 10.741310][ T215] ? console_emit_next_record+0x4c0/0x4c0 [ 10.741312][ T215] ? __lock_acquire+0x518/0xc20 [ 10.741317][ T215] console_unlock+0xee/0x1f0 [ 10.741320][ T215] ? console_flush_one_record+0x710/0x710 [ 10.741322][ T215] ? rcu_is_watching+0x16/0xd0 [ 10.741324][ T215] ? lock_acquire+0xe0/0x160 [ 10.741328][ T215] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.741329][ T215] ? vprintk_emit+0x320/0x3e0 [ 10.741332][ T215] vprintk_emit+0x37c/0x3e0 [ 10.741336][ T215] ? wake_up_klogd_work_func+0x90/0x90 [ 10.741341][ T215] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 10.741345][ T215] _printk+0xc7/0x100 [ 10.741348][ T215] ? snapshot_read.cold+0x21/0x21 [ 10.741352][ T215] ? rcu_is_watching+0x16/0xd0 [ 10.741353][ T215] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.741357][ T215] ? lockdep_hardirqs_on+0x91/0x130 [ 10.741361][ T215] ? irqentry_exit+0x21c/0x790 [ 10.741363][ T215] ? do_one_initcall+0x113/0x4f0 [ 10.741367][ T215] gact_init_module+0x15/0x1000 [act_gact] [ 10.741369][ T215] do_one_initcall+0x124/0x4f0 [ 10.741372][ T215] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.741377][ T215] ? __asan_register_globals+0x2d/0x70 [ 10.741380][ T215] ? kasan_unpoison+0x44/0x70 [ 10.741385][ T215] do_init_module+0x2ad/0x8a0 [ 10.741389][ T215] ? lockdep_hardirqs_on+0x91/0x130 [ 10.741392][ T215] ? free_module+0x470/0x470 [ 10.741394][ T215] ? kfree+0x123/0x590 [ 10.741398][ T215] load_module+0x1424/0x1bb0 [ 10.741403][ T215] ? security_kernel_post_read_file+0x2f/0x60 [ 10.741408][ T215] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.741412][ T215] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.741415][ T215] ? find_held_lock+0x2b/0x80 [ 10.741418][ T215] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.741422][ T215] init_module_from_file+0x11f/0x1a0 [ 10.741424][ T215] ? __do_sys_init_module+0x270/0x270 [ 10.741432][ T215] ? __rwlock_init+0x150/0x150 [ 10.741436][ T215] ? do_raw_spin_unlock+0x59/0x250 [ 10.741439][ T215] idempotent_init_module+0x37b/0x7c0 [ 10.741442][ T215] ? init_module_from_file+0x1a0/0x1a0 [ 10.741448][ T215] ? cap_capable+0x1d7/0x3d0 [ 10.741450][ T215] ? exc_page_fault+0x87/0x100 [ 10.741455][ T215] __x64_sys_finit_module+0xdf/0x190 [ 10.741456][ T215] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.741459][ T215] do_syscall_64+0xff/0x530 [ 10.741462][ T215] ? exc_page_fault+0xee/0x100 [ 10.741465][ T215] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.741467][ T215] RIP: 0033:0x7fc55f49837d [ 10.741471][ T215] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 8b 0d 4b aa 0f 00 f7 d8 64 89 01 48 [ 10.741472][ T215] RSP: 002b:00007ffe7cb9a698 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.741475][ T215] RAX: ffffffffffffffda RBX: 000055df2ba85810 RCX: 00007fc55f49837d [ 10.741477][ T215] RDX: 0000000000000000 RSI: 000055df16ca9ffd RDI: 0000000000000000 [ 10.741477][ T215] RBP: 00007ffe7cb9a730 R08: 0000000000000000 R09: 0000000000000000 [ 10.741478][ T215] R10: 0000000000000000 R11: 0000000000000246 R12: 000055df16ca9ffd [ 10.741479][ T215] R13: 000055df2ba85960 R14: 0000000000040000 R15: 0000000000000000 [ 10.741486][ T215] [ 10.796098][ T213] tc (213) used greatest stack depth: 24064 bytes left