[ 17.273718][ T294] GACT probability NOT on [ 17.273736][ T294] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.273739][ T294] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 294, name: modprobe [ 17.273740][ T294] preempt_count: 1, expected: 0 [ 17.273741][ T294] RCU nest depth: 0, expected: 0 [ 17.273742][ T294] locks held by modprobe/294: 4, last CPU#3: [ 17.273745][ T294] #0: ffffffffaa169cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.273757][ T294] #1: ffffffffaa169d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.273761][ T294] #2: ffffffffaa089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.273765][ T294] #3: ffffffffaa089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 17.273769][ T294] irq event stamp: 17606 [ 17.273770][ T294] hardirqs last enabled at (17605): [] __down_trylock_console_sem+0x86/0xa0 [ 17.273772][ T294] hardirqs last disabled at (17606): [] console_emit_next_record+0x3d4/0x4c0 [ 17.273774][ T294] softirqs last enabled at (16514): [] handle_softirqs+0x67c/0x900 [ 17.273777][ T294] softirqs last disabled at (15985): [] __irq_exit_rcu+0x145/0x1c0 [ 17.273779][ T294] Preemption disabled at: [ 17.273780][ T294] [] vprintk_emit+0x31b/0x3e0 [ 17.273785][ T294] CPU: 3 UID: 0 PID: 294 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.273789][ T294] Tainted: [W]=WARN [ 17.273790][ T294] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.273791][ T294] Call Trace: [ 17.273793][ T294] [ 17.273795][ T294] dump_stack_lvl+0x6f/0xa0 [ 17.273800][ T294] ? vprintk_emit+0x31b/0x3e0 [ 17.273802][ T294] __might_resched.cold+0x1fe/0x2c1 [ 17.273807][ T294] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.273811][ T294] ? __kmalloc_noprof+0xdb/0x760 [ 17.273816][ T294] __kmalloc_noprof+0x443/0x760 [ 17.273818][ T294] ? alloc_buf.isra.0+0x4b/0x260 [ 17.273824][ T294] ? do_raw_spin_unlock+0x59/0x250 [ 17.273826][ T294] alloc_buf.isra.0+0x4b/0x260 [ 17.273830][ T294] put_chars+0x1e1/0x2f0 [ 17.273832][ T294] ? desc_read_finalized_seq+0x79/0x120 [ 17.273834][ T294] ? __send_to_port+0x420/0x420 [ 17.273836][ T294] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.273840][ T294] ? validate_chain+0x38b/0xc20 [ 17.273844][ T294] hvc_console_print+0x292/0x780 [ 17.273847][ T294] ? __lock_acquire+0x518/0xc20 [ 17.273848][ T294] ? __lock_acquire+0x518/0xc20 [ 17.273853][ T294] ? hvc_write+0x3a0/0x3a0 [ 17.273854][ T294] ? console_emit_next_record+0x1df/0x4c0 [ 17.273857][ T294] ? rcu_is_watching+0x16/0xd0 [ 17.273860][ T294] ? lock_acquire+0x13c/0x160 [ 17.273864][ T294] console_emit_next_record+0x22f/0x4c0 [ 17.273867][ T294] ? devkmsg_read+0x4b0/0x4b0 [ 17.273869][ T294] ? console_flush_one_record+0x106/0x710 [ 17.273872][ T294] ? rcu_is_watching+0x16/0xd0 [ 17.273874][ T294] ? lock_acquire+0x13c/0x160 [ 17.273878][ T294] console_flush_one_record+0x46f/0x710 [ 17.273882][ T294] ? console_emit_next_record+0x4c0/0x4c0 [ 17.273884][ T294] ? __lock_acquire+0x518/0xc20 [ 17.273889][ T294] console_unlock+0xee/0x1f0 [ 17.273892][ T294] ? console_flush_one_record+0x710/0x710 [ 17.273893][ T294] ? rcu_is_watching+0x16/0xd0 [ 17.273896][ T294] ? lock_acquire+0x60/0x160 [ 17.273899][ T294] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.273901][ T294] ? vprintk_emit+0x320/0x3e0 [ 17.273904][ T294] vprintk_emit+0x37c/0x3e0 [ 17.273908][ T294] ? wake_up_klogd_work_func+0x90/0x90 [ 17.273913][ T294] ? gact_cleanup_module+0xf0/0xf0 [act_gact] [ 17.273916][ T294] _printk+0xc7/0x100 [ 17.273920][ T294] ? snapshot_read.cold+0x21/0x21 [ 17.273926][ T294] ? do_one_initcall+0x113/0x4f0 [ 17.273929][ T294] gact_init_module+0x15/0x1000 [act_gact] [ 17.273931][ T294] do_one_initcall+0x124/0x4f0 [ 17.273934][ T294] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 17.273938][ T294] ? do_init_module+0xae/0x8a0 [ 17.273942][ T294] ? kasan_unpoison+0x44/0x70 [ 17.273946][ T294] do_init_module+0x2ad/0x8a0 [ 17.273950][ T294] ? lockdep_hardirqs_on+0x91/0x130 [ 17.273954][ T294] ? free_module+0x470/0x470 [ 17.273957][ T294] ? kfree+0x123/0x590 [ 17.273961][ T294] load_module+0x1424/0x1bb0 [ 17.273968][ T294] ? layout_and_allocate.isra.0+0x680/0x680 [ 17.273972][ T294] ? __ia32_sys_fsconfig+0x180/0x180 [ 17.273975][ T294] ? ovl_real_file+0x172/0x1e0 [ 17.273979][ T294] ? backing_file_read_iter+0x541/0x790 [ 17.273982][ T294] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 17.273986][ T294] init_module_from_file+0x11f/0x1a0 [ 17.273989][ T294] ? __do_sys_init_module+0x220/0x220 [ 17.273996][ T294] ? __rwlock_init+0x150/0x150 [ 17.274000][ T294] ? do_raw_spin_unlock+0x59/0x250 [ 17.274003][ T294] idempotent_init_module+0x37b/0x7c0 [ 17.274006][ T294] ? init_module_from_file+0x1a0/0x1a0 [ 17.274012][ T294] ? rcu_is_watching+0x16/0xd0 [ 17.274014][ T294] ? cap_capable+0x1d7/0x3d0 [ 17.274020][ T294] __x64_sys_finit_module+0xdf/0x190 [ 17.274022][ T294] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 17.274026][ T294] do_syscall_64+0xff/0x530 [ 17.274028][ T294] ? exc_page_fault+0xee/0x100 [ 17.274030][ T294] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.274033][ T294] RIP: 0033:0x7f43f7d6537d [ 17.274036][ T294] 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 [ 17.274038][ T294] RSP: 002b:00007ffd0b9b2268 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 17.274041][ T294] RAX: ffffffffffffffda RBX: 0000561ad0802810 RCX: 00007f43f7d6537d [ 17.274042][ T294] RDX: 0000000000000000 RSI: 0000561a9871effd RDI: 0000000000000000 [ 17.274043][ T294] RBP: 00007ffd0b9b2300 R08: 0000000000000000 R09: 0000000000000000 [ 17.274044][ T294] R10: 0000000000000000 R11: 0000000000000246 R12: 0000561a9871effd [ 17.274045][ T294] R13: 0000561ad0802960 R14: 0000000000040000 R15: 0000000000000000 [ 17.274051][ T294]