[ 10.051163][ T222] GACT probability NOT on [ 10.051178][ T222] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.051180][ T222] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 222, name: modprobe [ 10.051182][ T222] preempt_count: 1, expected: 0 [ 10.051183][ T222] RCU nest depth: 0, expected: 0 [ 10.051184][ T222] locks held by modprobe/222: 4, last CPU#3: [ 10.051186][ T222] #0: ffffffff8577ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.051197][ T222] #1: ffffffff8577de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.051201][ T222] #2: ffffffff8569d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.051205][ T222] #3: ffffffff8569d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.051209][ T222] irq event stamp: 34006 [ 10.051210][ T222] hardirqs last enabled at (34005): [] __down_trylock_console_sem+0x86/0xa0 [ 10.051213][ T222] hardirqs last disabled at (34006): [] console_emit_next_record+0x3d4/0x4c0 [ 10.051215][ T222] softirqs last enabled at (33246): [] handle_softirqs+0x67c/0x900 [ 10.051218][ T222] softirqs last disabled at (33239): [] __irq_exit_rcu+0x145/0x1c0 [ 10.051220][ T222] Preemption disabled at: [ 10.051221][ T222] [] vprintk_emit+0x31b/0x3e0 [ 10.051226][ T222] CPU: 3 UID: 0 PID: 222 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.051230][ T222] Tainted: [W]=WARN [ 10.051231][ T222] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.051232][ T222] Call Trace: [ 10.051234][ T222] [ 10.051235][ T222] dump_stack_lvl+0x6f/0xa0 [ 10.051241][ T222] ? vprintk_emit+0x31b/0x3e0 [ 10.051243][ T222] __might_resched.cold+0x1fe/0x2c1 [ 10.051247][ T222] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.051251][ T222] ? __kmalloc_noprof+0xdb/0x760 [ 10.051255][ T222] __kmalloc_noprof+0x443/0x760 [ 10.051257][ T222] ? alloc_buf.isra.0+0x4b/0x260 [ 10.051263][ T222] ? do_raw_spin_unlock+0x59/0x250 [ 10.051266][ T222] alloc_buf.isra.0+0x4b/0x260 [ 10.051270][ T222] put_chars+0x1e1/0x2f0 [ 10.051271][ T222] ? desc_read_finalized_seq+0x79/0x120 [ 10.051274][ T222] ? __send_to_port+0x420/0x420 [ 10.051276][ T222] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.051280][ T222] ? validate_chain+0x38b/0xc20 [ 10.051284][ T222] hvc_console_print+0x292/0x780 [ 10.051288][ T222] ? __lock_acquire+0x518/0xc20 [ 10.051290][ T222] ? __lock_acquire+0x518/0xc20 [ 10.051294][ T222] ? hvc_write+0x3a0/0x3a0 [ 10.051296][ T222] ? console_emit_next_record+0x1df/0x4c0 [ 10.051299][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.051301][ T222] ? lock_acquire+0x13c/0x160 [ 10.051305][ T222] console_emit_next_record+0x22f/0x4c0 [ 10.051309][ T222] ? devkmsg_read+0x4b0/0x4b0 [ 10.051311][ T222] ? console_flush_one_record+0x106/0x710 [ 10.051314][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.051315][ T222] ? lock_acquire+0x13c/0x160 [ 10.051319][ T222] console_flush_one_record+0x46f/0x710 [ 10.051323][ T222] ? console_emit_next_record+0x4c0/0x4c0 [ 10.051325][ T222] ? __lock_acquire+0x518/0xc20 [ 10.051330][ T222] console_unlock+0xee/0x1f0 [ 10.051333][ T222] ? console_flush_one_record+0x710/0x710 [ 10.051335][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.051336][ T222] ? lock_acquire+0xe0/0x160 [ 10.051340][ T222] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.051342][ T222] ? vprintk_emit+0x320/0x3e0 [ 10.051344][ T222] vprintk_emit+0x37c/0x3e0 [ 10.051348][ T222] ? wake_up_klogd_work_func+0x90/0x90 [ 10.051352][ T222] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 10.051355][ T222] _printk+0xc7/0x100 [ 10.051358][ T222] ? snapshot_read.cold+0x21/0x21 [ 10.051364][ T222] ? do_one_initcall+0x113/0x4f0 [ 10.051368][ T222] gact_init_module+0x15/0x1000 [act_gact] [ 10.051370][ T222] do_one_initcall+0x124/0x4f0 [ 10.051373][ T222] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.051377][ T222] ? do_init_module+0xae/0x8a0 [ 10.051379][ T222] ? kasan_unpoison+0x44/0x70 [ 10.051385][ T222] do_init_module+0x2ad/0x8a0 [ 10.051388][ T222] ? lockdep_hardirqs_on+0x91/0x130 [ 10.051392][ T222] ? free_module+0x470/0x470 [ 10.051394][ T222] ? kfree+0x123/0x590 [ 10.051398][ T222] load_module+0x1424/0x1bb0 [ 10.051403][ T222] ? security_kernel_post_read_file+0x2f/0x60 [ 10.051407][ T222] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.051410][ T222] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.051414][ T222] ? backing_file_read_iter+0x541/0x790 [ 10.051418][ T222] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.051421][ T222] init_module_from_file+0x11f/0x1a0 [ 10.051424][ T222] ? __do_sys_init_module+0x270/0x270 [ 10.051431][ T222] ? __rwlock_init+0x150/0x150 [ 10.051435][ T222] ? do_raw_spin_unlock+0x59/0x250 [ 10.051438][ T222] idempotent_init_module+0x37b/0x7c0 [ 10.051440][ T222] ? init_module_from_file+0x1a0/0x1a0 [ 10.051446][ T222] ? cap_capable+0x1d7/0x3d0 [ 10.051448][ T222] ? __x64_sys_pread64+0x18d/0x250 [ 10.051453][ T222] __x64_sys_finit_module+0xdf/0x190 [ 10.051455][ T222] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.051459][ T222] do_syscall_64+0xff/0x530 [ 10.051461][ T222] ? exc_page_fault+0xee/0x100 [ 10.051464][ T222] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.051466][ T222] RIP: 0033:0x7f9243e3537d [ 10.051469][ T222] 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.051471][ T222] RSP: 002b:00007ffd7b9e4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.051473][ T222] RAX: ffffffffffffffda RBX: 00005572c485a810 RCX: 00007f9243e3537d [ 10.051474][ T222] RDX: 0000000000000000 RSI: 0000557285622ffd RDI: 0000000000000000 [ 10.051475][ T222] RBP: 00007ffd7b9e4200 R08: 0000000000000000 R09: 0000000000000000 [ 10.051476][ T222] R10: 0000000000000000 R11: 0000000000000246 R12: 0000557285622ffd [ 10.051477][ T222] R13: 00005572c485a960 R14: 0000000000040000 R15: 0000000000000000 [ 10.051484][ T222]