[ 10.609897][ T193] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 10.609918][ T193] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.609920][ T193] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 193, name: modprobe [ 10.609922][ T193] preempt_count: 1, expected: 0 [ 10.609922][ T193] RCU nest depth: 0, expected: 0 [ 10.609923][ T193] locks held by modprobe/193: 4, last CPU#2: [ 10.609925][ T193] #0: ffffffff8cf7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.609937][ T193] #1: ffffffff8cf7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.609941][ T193] #2: ffffffff8ce9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.609945][ T193] #3: ffffffff8ce9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.609949][ T193] irq event stamp: 44230 [ 10.609950][ T193] hardirqs last enabled at (44229): [] __down_trylock_console_sem+0x86/0xa0 [ 10.609953][ T193] hardirqs last disabled at (44230): [] console_emit_next_record+0x3d4/0x4c0 [ 10.609955][ T193] softirqs last enabled at (40222): [] handle_softirqs+0x67c/0x900 [ 10.609959][ T193] softirqs last disabled at (39309): [] __irq_exit_rcu+0x145/0x1c0 [ 10.609961][ T193] Preemption disabled at: [ 10.609962][ T193] [] vprintk_emit+0x31b/0x3e0 [ 10.609967][ T193] CPU: 2 UID: 0 PID: 193 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.609971][ T193] Tainted: [W]=WARN [ 10.609971][ T193] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.609973][ T193] Call Trace: [ 10.609975][ T193] [ 10.609977][ T193] dump_stack_lvl+0x6f/0xa0 [ 10.609983][ T193] ? vprintk_emit+0x31b/0x3e0 [ 10.609985][ T193] __might_resched.cold+0x1fe/0x2c1 [ 10.609989][ T193] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.609993][ T193] ? __kmalloc_noprof+0xdb/0x760 [ 10.609998][ T193] __kmalloc_noprof+0x443/0x760 [ 10.610000][ T193] ? alloc_buf.isra.0+0x4b/0x260 [ 10.610007][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 10.610010][ T193] alloc_buf.isra.0+0x4b/0x260 [ 10.610016][ T193] put_chars+0x1e1/0x2f0 [ 10.610018][ T193] ? __send_to_port+0x420/0x420 [ 10.610019][ T193] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.610023][ T193] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.610026][ T193] ? validate_chain+0x38b/0xc20 [ 10.610036][ T193] hvc_console_print+0x292/0x780 [ 10.610040][ T193] ? __lock_acquire+0x518/0xc20 [ 10.610045][ T193] ? hvc_write+0x3a0/0x3a0 [ 10.610048][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.610053][ T193] console_emit_next_record+0x22f/0x4c0 [ 10.610057][ T193] ? devkmsg_read+0x4b0/0x4b0 [ 10.610059][ T193] ? console_flush_one_record+0x106/0x710 [ 10.610062][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.610064][ T193] ? lock_acquire+0x13c/0x160 [ 10.610068][ T193] console_flush_one_record+0x46f/0x710 [ 10.610072][ T193] ? console_emit_next_record+0x4c0/0x4c0 [ 10.610074][ T193] ? __lock_acquire+0x518/0xc20 [ 10.610079][ T193] console_unlock+0xee/0x1f0 [ 10.610082][ T193] ? console_flush_one_record+0x710/0x710 [ 10.610084][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.610085][ T193] ? lock_acquire+0xe0/0x160 [ 10.610089][ T193] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.610091][ T193] ? vprintk_emit+0x320/0x3e0 [ 10.610093][ T193] vprintk_emit+0x37c/0x3e0 [ 10.610097][ T193] ? wake_up_klogd_work_func+0x90/0x90 [ 10.610102][ T193] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 10.610106][ T193] _printk+0xc7/0x100 [ 10.610110][ T193] ? snapshot_read.cold+0x21/0x21 [ 10.610116][ T193] ? do_one_initcall+0x113/0x4f0 [ 10.610120][ T193] pg_init+0x1d/0x1000 [pktgen] [ 10.610123][ T193] do_one_initcall+0x124/0x4f0 [ 10.610126][ T193] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.610131][ T193] ? do_init_module+0xae/0x8a0 [ 10.610133][ T193] ? kasan_unpoison+0x44/0x70 [ 10.610139][ T193] do_init_module+0x2ad/0x8a0 [ 10.610142][ T193] ? lockdep_hardirqs_on+0x91/0x130 [ 10.610146][ T193] ? free_module+0x470/0x470 [ 10.610149][ T193] ? kfree+0x123/0x590 [ 10.610152][ T193] load_module+0x1424/0x1bb0 [ 10.610158][ T193] ? security_kernel_post_read_file+0x2f/0x60 [ 10.610162][ T193] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.610166][ T193] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.610169][ T193] ? add_chain_cache+0x12d/0x590 [ 10.610174][ T193] init_module_from_file+0x11f/0x1a0 [ 10.610176][ T193] ? __do_sys_init_module+0x270/0x270 [ 10.610184][ T193] ? __rwlock_init+0x150/0x150 [ 10.610187][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 10.610190][ T193] idempotent_init_module+0x37b/0x7c0 [ 10.610193][ T193] ? init_module_from_file+0x1a0/0x1a0 [ 10.610198][ T193] ? cap_capable+0x1d7/0x3d0 [ 10.610201][ T193] ? __x64_sys_pread64+0x18d/0x250 [ 10.610206][ T193] __x64_sys_finit_module+0xdf/0x190 [ 10.610208][ T193] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.610212][ T193] do_syscall_64+0xff/0x530 [ 10.610215][ T193] ? exc_page_fault+0xee/0x100 [ 10.610218][ T193] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.610220][ T193] RIP: 0033:0x7f67ff52c37d [ 10.610224][ 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 [ 10.610225][ T193] RSP: 002b:00007ffc95753838 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.610228][ T193] RAX: ffffffffffffffda RBX: 000055aa1107a700 RCX: 00007f67ff52c37d [ 10.610229][ T193] RDX: 0000000000000000 RSI: 000055aa0a199ffd RDI: 0000000000000005 [ 10.610230][ T193] RBP: 00007ffc957538d0 R08: 0000000000000000 R09: 0000000000000000 [ 10.610231][ T193] R10: 0000000000000000 R11: 0000000000000246 R12: 000055aa0a199ffd [ 10.610232][ T193] R13: 000055aa1107a820 R14: 0000000000040000 R15: 0000000000000000 [ 10.610238][ T193] [ 10.950039][ T194] pktgen: interface: lo@0 is already stopped [ 12.097063][ T209] pktgen: wrong command format [ 12.097166][ T209] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.097169][ T209] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 209, name: proc_net_pktgen [ 12.097170][ T209] preempt_count: 1, expected: 0 [ 12.097171][ T209] RCU nest depth: 0, expected: 0 [ 12.097172][ T209] locks held by proc_net_pktgen/209: 5, last CPU#1: [ 12.097174][ T209] #0: ff1100000a89c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 12.097187][ T209] #1: ffffffff8cf7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.097192][ T209] #2: ffffffff8cf7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.097197][ T209] #3: ffffffff8ce9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.097201][ T209] #4: ffffffff8ce9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.097205][ T209] irq event stamp: 1026 [ 12.097206][ T209] hardirqs last enabled at (1025): [] __down_trylock_console_sem+0x86/0xa0 [ 12.097209][ T209] hardirqs last disabled at (1026): [] console_emit_next_record+0x3d4/0x4c0 [ 12.097211][ T209] softirqs last enabled at (986): [] handle_softirqs+0x67c/0x900 [ 12.097215][ T209] softirqs last disabled at (981): [] __irq_exit_rcu+0x145/0x1c0 [ 12.097217][ T209] Preemption disabled at: [ 12.097218][ T209] [] vprintk_emit+0x31b/0x3e0 [ 12.097223][ T209] CPU: 1 UID: 0 PID: 209 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.097226][ T209] Tainted: [W]=WARN [ 12.097227][ T209] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.097229][ T209] Call Trace: [ 12.097230][ T209] [ 12.097232][ T209] dump_stack_lvl+0x6f/0xa0 [ 12.097238][ T209] ? vprintk_emit+0x31b/0x3e0 [ 12.097240][ T209] __might_resched.cold+0x1fe/0x2c1 [ 12.097244][ T209] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.097248][ T209] ? __kmalloc_noprof+0xdb/0x760 [ 12.097253][ T209] __kmalloc_noprof+0x443/0x760 [ 12.097255][ T209] ? alloc_buf.isra.0+0x4b/0x260 [ 12.097262][ T209] ? do_raw_spin_unlock+0x59/0x250 [ 12.097265][ T209] alloc_buf.isra.0+0x4b/0x260 [ 12.097269][ T209] put_chars+0x1e1/0x2f0 [ 12.097271][ T209] ? __send_to_port+0x420/0x420 [ 12.097275][ T209] ? validate_chain+0x34a/0xc20 [ 12.097279][ T209] hvc_console_print+0x292/0x780 [ 12.097284][ T209] ? __lock_acquire+0x518/0xc20 [ 12.097285][ T209] ? __lock_acquire+0x518/0xc20 [ 12.097290][ T209] ? hvc_write+0x3a0/0x3a0 [ 12.097292][ T209] ? console_emit_next_record+0x1df/0x4c0 [ 12.097295][ T209] ? rcu_is_watching+0x16/0xd0 [ 12.097298][ T209] ? lock_acquire+0x13c/0x160 [ 12.097302][ T209] console_emit_next_record+0x22f/0x4c0 [ 12.097306][ T209] ? devkmsg_read+0x4b0/0x4b0 [ 12.097308][ T209] ? console_flush_one_record+0x106/0x710 [ 12.097312][ T209] ? rcu_is_watching+0x16/0xd0 [ 12.097313][ T209] ? lock_acquire+0x13c/0x160 [ 12.097318][ T209] console_flush_one_record+0x46f/0x710 [ 12.097322][ T209] ? console_emit_next_record+0x4c0/0x4c0 [ 12.097324][ T209] ? __lock_acquire+0x518/0xc20 [ 12.097329][ T209] console_unlock+0xee/0x1f0 [ 12.097332][ T209] ? console_flush_one_record+0x710/0x710 [ 12.097334][ T209] ? rcu_is_watching+0x16/0xd0 [ 12.097336][ T209] ? lock_acquire+0xe0/0x160 [ 12.097340][ T209] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.097342][ T209] ? vprintk_emit+0x320/0x3e0 [ 12.097345][ T209] vprintk_emit+0x37c/0x3e0 [ 12.097348][ T209] ? wake_up_klogd_work_func+0x90/0x90 [ 12.097350][ T209] ? __lock_acquire+0x518/0xc20 [ 12.097355][ T209] _printk+0xc7/0x100 [ 12.097358][ T209] ? snapshot_read.cold+0x21/0x21 [ 12.097362][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 12.097365][ T209] ? __lock_release.isra.0+0xb3/0x1a0 [ 12.097370][ T209] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 12.097374][ T209] ? __lock_release.isra.0+0x69/0x1a0 [ 12.097379][ T209] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 12.097382][ T209] ? file_update_time_flags+0x197/0x4a0 [ 12.097386][ T209] ? fault_dirty_shared_page+0x229/0x4b0 [ 12.097391][ T209] ? do_pte_missing+0x22c/0xcc0 [ 12.097396][ T209] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.097398][ T209] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.097400][ T209] ? validate_chain+0x38b/0xc20 [ 12.097403][ T209] ? mksaveddirty_shift+0x30/0x30 [ 12.097410][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 12.097412][ T209] ? ksys_write+0x116/0x250 [ 12.097416][ T209] proc_reg_write+0x1bc/0x3b0 [ 12.097421][ T209] vfs_write+0x186/0x970 [ 12.097425][ T209] ksys_write+0x116/0x250 [ 12.097428][ T209] ? __ia32_sys_read+0xc0/0xc0 [ 12.097430][ T209] ? rcu_is_watching+0x16/0xd0 [ 12.097432][ T209] ? rcu_is_watching+0x16/0xd0 [ 12.097435][ T209] do_syscall_64+0xff/0x530 [ 12.097439][ T209] ? exc_page_fault+0xee/0x100 [ 12.097442][ T209] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.097444][ T209] RIP: 0033:0x7f41a751254e [ 12.097447][ 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 [ 12.097449][ T209] RSP: 002b:00007ffe9412cc80 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.097452][ T209] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f41a751254e [ 12.097453][ T209] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 12.097454][ T209] RBP: 00007ffe9412cc90 R08: 0000000000000000 R09: 0000000000000000 [ 12.097455][ T209] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe9412d180 [ 12.097456][ T209] R13: 0000000100000001 R14: 00007f41a749b000 R15: 00007f41a749b000 [ 12.097463][ T209]