[ 8.946827][ T193] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 8.946845][ T193] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 8.946847][ T193] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 193, name: modprobe [ 8.946848][ T193] preempt_count: 1, expected: 0 [ 8.946849][ T193] RCU nest depth: 0, expected: 0 [ 8.946850][ T193] locks held by modprobe/193: 4, last CPU#1: [ 8.946852][ T193] #0: ffffffff9817ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 8.946863][ T193] #1: ffffffff9817de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 8.946868][ T193] #2: ffffffff9809d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 8.946873][ T193] #3: ffffffff9809d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 8.946877][ T193] irq event stamp: 35598 [ 8.946878][ T193] hardirqs last enabled at (35597): [] __down_trylock_console_sem+0x86/0xa0 [ 8.946880][ T193] hardirqs last disabled at (35598): [] console_emit_next_record+0x3d4/0x4c0 [ 8.946883][ T193] softirqs last enabled at (33968): [] handle_softirqs+0x67c/0x900 [ 8.946886][ T193] softirqs last disabled at (33067): [] __irq_exit_rcu+0x145/0x1c0 [ 8.946889][ T193] Preemption disabled at: [ 8.946889][ T193] [] vprintk_emit+0x31b/0x3e0 [ 8.946894][ T193] CPU: 1 UID: 0 PID: 193 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 8.946897][ T193] Tainted: [W]=WARN [ 8.946898][ T193] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 8.946900][ T193] Call Trace: [ 8.946901][ T193] [ 8.946903][ T193] dump_stack_lvl+0x6f/0xa0 [ 8.946909][ T193] ? vprintk_emit+0x31b/0x3e0 [ 8.946910][ T193] __might_resched.cold+0x1fe/0x2c1 [ 8.946915][ T193] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 8.946919][ T193] ? __kmalloc_noprof+0xdb/0x760 [ 8.946923][ T193] __kmalloc_noprof+0x443/0x760 [ 8.946925][ T193] ? alloc_buf.isra.0+0x4b/0x260 [ 8.946931][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 8.946934][ T193] alloc_buf.isra.0+0x4b/0x260 [ 8.946937][ T193] put_chars+0x1e1/0x2f0 [ 8.946940][ T193] ? __send_to_port+0x420/0x420 [ 8.946941][ T193] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 8.946945][ T193] ? rcu_read_lock_any_held+0x3c/0x90 [ 8.946948][ T193] ? validate_chain+0x38b/0xc20 [ 8.946953][ T193] hvc_console_print+0x292/0x780 [ 8.946956][ T193] ? __lock_acquire+0x518/0xc20 [ 8.946961][ T193] ? hvc_write+0x3a0/0x3a0 [ 8.946964][ T193] ? rcu_is_watching+0x16/0xd0 [ 8.946968][ T193] console_emit_next_record+0x22f/0x4c0 [ 8.946972][ T193] ? devkmsg_read+0x4b0/0x4b0 [ 8.946974][ T193] ? console_flush_one_record+0x106/0x710 [ 8.946977][ T193] ? rcu_is_watching+0x16/0xd0 [ 8.946979][ T193] ? lock_acquire+0x13c/0x160 [ 8.946983][ T193] console_flush_one_record+0x46f/0x710 [ 8.946987][ T193] ? console_emit_next_record+0x4c0/0x4c0 [ 8.946989][ T193] ? __lock_acquire+0x518/0xc20 [ 8.946994][ T193] console_unlock+0xee/0x1f0 [ 8.946997][ T193] ? console_flush_one_record+0x710/0x710 [ 8.946998][ T193] ? rcu_is_watching+0x16/0xd0 [ 8.947000][ T193] ? lock_acquire+0xe0/0x160 [ 8.947004][ T193] ? __down_trylock_console_sem+0x5e/0xa0 [ 8.947005][ T193] ? vprintk_emit+0x320/0x3e0 [ 8.947008][ T193] vprintk_emit+0x37c/0x3e0 [ 8.947011][ T193] ? wake_up_klogd_work_func+0x90/0x90 [ 8.947016][ T193] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 8.947019][ T193] _printk+0xc7/0x100 [ 8.947023][ T193] ? snapshot_read.cold+0x21/0x21 [ 8.947029][ T193] ? do_one_initcall+0x113/0x4f0 [ 8.947032][ T193] pg_init+0x1d/0x1000 [pktgen] [ 8.947035][ T193] do_one_initcall+0x124/0x4f0 [ 8.947038][ T193] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 8.947042][ T193] ? do_init_module+0xae/0x8a0 [ 8.947045][ T193] ? kasan_unpoison+0x44/0x70 [ 8.947050][ T193] do_init_module+0x2ad/0x8a0 [ 8.947053][ T193] ? lockdep_hardirqs_on+0x91/0x130 [ 8.947057][ T193] ? free_module+0x470/0x470 [ 8.947059][ T193] ? kfree+0x123/0x590 [ 8.947063][ T193] load_module+0x1424/0x1bb0 [ 8.947068][ T193] ? security_kernel_post_read_file+0x2f/0x60 [ 8.947072][ T193] ? layout_and_allocate.isra.0+0x680/0x680 [ 8.947075][ T193] ? __ia32_sys_fsconfig+0x180/0x180 [ 8.947078][ T193] ? add_chain_cache+0x12d/0x590 [ 8.947083][ T193] init_module_from_file+0x11f/0x1a0 [ 8.947086][ T193] ? __do_sys_init_module+0x270/0x270 [ 8.947093][ T193] ? __rwlock_init+0x150/0x150 [ 8.947096][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 8.947099][ T193] idempotent_init_module+0x37b/0x7c0 [ 8.947102][ T193] ? init_module_from_file+0x1a0/0x1a0 [ 8.947107][ T193] ? cap_capable+0x1d7/0x3d0 [ 8.947110][ T193] ? __x64_sys_pread64+0x18d/0x250 [ 8.947115][ T193] __x64_sys_finit_module+0xdf/0x190 [ 8.947116][ T193] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 8.947120][ T193] do_syscall_64+0xff/0x530 [ 8.947123][ T193] ? exc_page_fault+0xee/0x100 [ 8.947126][ T193] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 8.947128][ T193] RIP: 0033:0x7fd94d19337d [ 8.947134][ T193] 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 [ 8.947136][ T193] RSP: 002b:00007fffdb869e88 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 8.947138][ T193] RAX: ffffffffffffffda RBX: 000056020329f700 RCX: 00007fd94d19337d [ 8.947139][ T193] RDX: 0000000000000000 RSI: 00005601d7f38ffd RDI: 0000000000000005 [ 8.947140][ T193] RBP: 00007fffdb869f20 R08: 0000000000000000 R09: 0000000000000000 [ 8.947141][ T193] R10: 0000000000000000 R11: 0000000000000246 R12: 00005601d7f38ffd [ 8.947142][ T193] R13: 000056020329f820 R14: 0000000000040000 R15: 0000000000000000 [ 8.947148][ T193] [ 8.982921][ T193] modprobe (193) used greatest stack depth: 24432 bytes left [ 9.183145][ T194] pktgen: interface: lo@0 is already stopped [ 10.278523][ T209] pktgen: wrong command format [ 10.278581][ T209] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.278583][ T209] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 209, name: proc_net_pktgen [ 10.278584][ T209] preempt_count: 1, expected: 0 [ 10.278585][ T209] RCU nest depth: 0, expected: 0 [ 10.278586][ T209] locks held by proc_net_pktgen/209: 5, last CPU#1: [ 10.278588][ T209] #0: ff1100000a72c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.278601][ T209] #1: ffffffff9817ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.278606][ T209] #2: ffffffff9817de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.278611][ T209] #3: ffffffff9809d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.278615][ T209] #4: ffffffff9809d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.278619][ T209] irq event stamp: 1068 [ 10.278619][ T209] hardirqs last enabled at (1067): [] __down_trylock_console_sem+0x86/0xa0 [ 10.278622][ T209] hardirqs last disabled at (1068): [] console_emit_next_record+0x3d4/0x4c0 [ 10.278624][ T209] softirqs last enabled at (896): [] handle_softirqs+0x67c/0x900 [ 10.278627][ T209] softirqs last disabled at (887): [] __irq_exit_rcu+0x145/0x1c0 [ 10.278630][ T209] Preemption disabled at: [ 10.278630][ T209] [] vprintk_emit+0x31b/0x3e0 [ 10.278635][ T209] CPU: 1 UID: 0 PID: 209 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.278639][ T209] Tainted: [W]=WARN [ 10.278639][ T209] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.278641][ T209] Call Trace: [ 10.278643][ T209] [ 10.278644][ T209] dump_stack_lvl+0x6f/0xa0 [ 10.278650][ T209] ? vprintk_emit+0x31b/0x3e0 [ 10.278651][ T209] __might_resched.cold+0x1fe/0x2c1 [ 10.278656][ T209] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.278660][ T209] ? __kmalloc_noprof+0xdb/0x760 [ 10.278664][ T209] __kmalloc_noprof+0x443/0x760 [ 10.278666][ T209] ? alloc_buf.isra.0+0x4b/0x260 [ 10.278672][ T209] ? do_raw_spin_unlock+0x59/0x250 [ 10.278675][ T209] alloc_buf.isra.0+0x4b/0x260 [ 10.278678][ T209] put_chars+0x1e1/0x2f0 [ 10.278680][ T209] ? __send_to_port+0x420/0x420 [ 10.278684][ T209] ? validate_chain+0x34a/0xc20 [ 10.278688][ T209] hvc_console_print+0x292/0x780 [ 10.278692][ T209] ? __lock_acquire+0x518/0xc20 [ 10.278693][ T209] ? __lock_acquire+0x518/0xc20 [ 10.278698][ T209] ? hvc_write+0x3a0/0x3a0 [ 10.278700][ T209] ? console_emit_next_record+0x1df/0x4c0 [ 10.278703][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.278706][ T209] ? lock_acquire+0x13c/0x160 [ 10.278710][ T209] console_emit_next_record+0x22f/0x4c0 [ 10.278713][ T209] ? devkmsg_read+0x4b0/0x4b0 [ 10.278715][ T209] ? console_flush_one_record+0x106/0x710 [ 10.278718][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.278720][ T209] ? lock_acquire+0x13c/0x160 [ 10.278724][ T209] console_flush_one_record+0x46f/0x710 [ 10.278728][ T209] ? console_emit_next_record+0x4c0/0x4c0 [ 10.278729][ T209] ? __lock_acquire+0x518/0xc20 [ 10.278734][ T209] console_unlock+0xee/0x1f0 [ 10.278737][ T209] ? console_flush_one_record+0x710/0x710 [ 10.278739][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.278741][ T209] ? lock_acquire+0xe0/0x160 [ 10.278744][ T209] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.278746][ T209] ? vprintk_emit+0x320/0x3e0 [ 10.278749][ T209] vprintk_emit+0x37c/0x3e0 [ 10.278752][ T209] ? wake_up_klogd_work_func+0x90/0x90 [ 10.278753][ T209] ? __lock_acquire+0x518/0xc20 [ 10.278758][ T209] _printk+0xc7/0x100 [ 10.278761][ T209] ? snapshot_read.cold+0x21/0x21 [ 10.278764][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 10.278767][ T209] ? __lock_release.isra.0+0xb3/0x1a0 [ 10.278771][ T209] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 10.278775][ T209] ? __lock_release.isra.0+0x69/0x1a0 [ 10.278780][ T209] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 10.278783][ T209] ? file_update_time_flags+0x197/0x4a0 [ 10.278787][ T209] ? fault_dirty_shared_page+0x229/0x4b0 [ 10.278791][ T209] ? do_pte_missing+0x22c/0xcc0 [ 10.278796][ T209] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.278798][ T209] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.278800][ T209] ? validate_chain+0x38b/0xc20 [ 10.278803][ T209] ? mksaveddirty_shift+0x30/0x30 [ 10.278809][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 10.278811][ T209] ? ksys_write+0x116/0x250 [ 10.278814][ T209] proc_reg_write+0x1bc/0x3b0 [ 10.278819][ T209] vfs_write+0x186/0x970 [ 10.278823][ T209] ksys_write+0x116/0x250 [ 10.278825][ T209] ? __ia32_sys_read+0xc0/0xc0 [ 10.278827][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.278829][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.278832][ T209] do_syscall_64+0xff/0x530 [ 10.278836][ T209] ? exc_page_fault+0xee/0x100 [ 10.278839][ T209] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.278841][ T209] RIP: 0033:0x7f1cc23c554e [ 10.278844][ T209] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 10.278846][ T209] RSP: 002b:00007ffe1e12bb90 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.278848][ T209] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1cc23c554e [ 10.278850][ T209] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 10.278850][ T209] RBP: 00007ffe1e12bba0 R08: 0000000000000000 R09: 0000000000000000 [ 10.278851][ T209] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe1e12c090 [ 10.278852][ T209] R13: 0000000100000001 R14: 00007f1cc234e000 R15: 00007f1cc234e000 [ 10.278859][ T209]