[ 10.918567][ T224] GACT probability NOT on [ 10.918585][ T224] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.918588][ T224] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 224, name: modprobe [ 10.918589][ T224] preempt_count: 1, expected: 0 [ 10.918590][ T224] RCU nest depth: 0, expected: 0 [ 10.918591][ T224] locks held by modprobe/224: 4, last CPU#1: [ 10.918593][ T224] #0: ffffffff87f7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.918605][ T224] #1: ffffffff87f7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.918610][ T224] #2: ffffffff87e9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.918614][ T224] #3: ffffffff87e9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.918618][ T224] irq event stamp: 17150 [ 10.918619][ T224] hardirqs last enabled at (17149): [] __down_trylock_console_sem+0x86/0xa0 [ 10.918622][ T224] hardirqs last disabled at (17150): [] console_emit_next_record+0x3d4/0x4c0 [ 10.918624][ T224] softirqs last enabled at (15994): [] handle_softirqs+0x67c/0x900 [ 10.918627][ T224] softirqs last disabled at (15987): [] __irq_exit_rcu+0x145/0x1c0 [ 10.918630][ T224] Preemption disabled at: [ 10.918630][ T224] [] vprintk_emit+0x31b/0x3e0 [ 10.918636][ T224] CPU: 1 UID: 0 PID: 224 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.918639][ T224] Tainted: [W]=WARN [ 10.918640][ T224] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.918642][ T224] Call Trace: [ 10.918643][ T224] [ 10.918645][ T224] dump_stack_lvl+0x6f/0xa0 [ 10.918651][ T224] ? vprintk_emit+0x31b/0x3e0 [ 10.918653][ T224] __might_resched.cold+0x1fe/0x2c1 [ 10.918657][ T224] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.918661][ T224] ? __kmalloc_noprof+0xdb/0x760 [ 10.918666][ T224] __kmalloc_noprof+0x443/0x760 [ 10.918667][ T224] ? alloc_buf.isra.0+0x4b/0x260 [ 10.918674][ T224] ? do_raw_spin_unlock+0x59/0x250 [ 10.918677][ T224] alloc_buf.isra.0+0x4b/0x260 [ 10.918681][ T224] put_chars+0x1e1/0x2f0 [ 10.918683][ T224] ? desc_read_finalized_seq+0x79/0x120 [ 10.918685][ T224] ? __send_to_port+0x420/0x420 [ 10.918688][ T224] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.918691][ T224] ? validate_chain+0x38b/0xc20 [ 10.918696][ T224] hvc_console_print+0x292/0x780 [ 10.918699][ T224] ? __lock_acquire+0x518/0xc20 [ 10.918701][ T224] ? __lock_acquire+0x518/0xc20 [ 10.918706][ T224] ? hvc_write+0x3a0/0x3a0 [ 10.918707][ T224] ? console_emit_next_record+0x1df/0x4c0 [ 10.918711][ T224] ? rcu_is_watching+0x16/0xd0 [ 10.918713][ T224] ? lock_acquire+0x13c/0x160 [ 10.918717][ T224] console_emit_next_record+0x22f/0x4c0 [ 10.918721][ T224] ? devkmsg_read+0x4b0/0x4b0 [ 10.918723][ T224] ? console_flush_one_record+0x106/0x710 [ 10.918726][ T224] ? rcu_is_watching+0x16/0xd0 [ 10.918727][ T224] ? lock_acquire+0x13c/0x160 [ 10.918731][ T224] console_flush_one_record+0x46f/0x710 [ 10.918735][ T224] ? console_emit_next_record+0x4c0/0x4c0 [ 10.918737][ T224] ? __lock_acquire+0x518/0xc20 [ 10.918743][ T224] console_unlock+0xee/0x1f0 [ 10.918745][ T224] ? console_flush_one_record+0x710/0x710 [ 10.918747][ T224] ? rcu_is_watching+0x16/0xd0 [ 10.918749][ T224] ? lock_acquire+0xe0/0x160 [ 10.918753][ T224] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.918754][ T224] ? vprintk_emit+0x320/0x3e0 [ 10.918757][ T224] vprintk_emit+0x37c/0x3e0 [ 10.918761][ T224] ? wake_up_klogd_work_func+0x90/0x90 [ 10.918766][ T224] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 10.918769][ T224] _printk+0xc7/0x100 [ 10.918772][ T224] ? snapshot_read.cold+0x21/0x21 [ 10.918778][ T224] ? do_one_initcall+0x113/0x4f0 [ 10.918782][ T224] gact_init_module+0x15/0x1000 [act_gact] [ 10.918784][ T224] do_one_initcall+0x124/0x4f0 [ 10.918787][ T224] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.918791][ T224] ? do_init_module+0xae/0x8a0 [ 10.918794][ T224] ? kasan_unpoison+0x44/0x70 [ 10.918800][ T224] do_init_module+0x2ad/0x8a0 [ 10.918803][ T224] ? lockdep_hardirqs_on+0x91/0x130 [ 10.918807][ T224] ? free_module+0x470/0x470 [ 10.918809][ T224] ? kfree+0x123/0x590 [ 10.918813][ T224] load_module+0x1424/0x1bb0 [ 10.918818][ T224] ? security_kernel_post_read_file+0x2f/0x60 [ 10.918823][ T224] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.918827][ T224] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.918831][ T224] ? backing_file_read_iter+0x541/0x790 [ 10.918834][ T224] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.918838][ T224] init_module_from_file+0x11f/0x1a0 [ 10.918840][ T224] ? __do_sys_init_module+0x270/0x270 [ 10.918848][ T224] ? __rwlock_init+0x150/0x150 [ 10.918851][ T224] ? do_raw_spin_unlock+0x59/0x250 [ 10.918854][ T224] idempotent_init_module+0x37b/0x7c0 [ 10.918857][ T224] ? init_module_from_file+0x1a0/0x1a0 [ 10.918862][ T224] ? cap_capable+0x1d7/0x3d0 [ 10.918865][ T224] ? __x64_sys_pread64+0x18d/0x250 [ 10.918870][ T224] __x64_sys_finit_module+0xdf/0x190 [ 10.918871][ T224] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.918875][ T224] do_syscall_64+0xff/0x530 [ 10.918878][ T224] ? exc_page_fault+0xee/0x100 [ 10.918881][ T224] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.918883][ T224] RIP: 0033:0x7f13e668337d [ 10.918886][ T224] 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.918888][ T224] RSP: 002b:00007ffec25b8d48 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.918891][ T224] RAX: ffffffffffffffda RBX: 00005609c207f810 RCX: 00007f13e668337d [ 10.918892][ T224] RDX: 0000000000000000 RSI: 0000560990b34ffd RDI: 0000000000000000 [ 10.918893][ T224] RBP: 00007ffec25b8de0 R08: 0000000000000000 R09: 0000000000000000 [ 10.918894][ T224] R10: 0000000000000000 R11: 0000000000000246 R12: 0000560990b34ffd [ 10.918895][ T224] R13: 00005609c207f960 R14: 0000000000040000 R15: 0000000000000000 [ 10.918901][ T224]