[ 9.058467][ T193] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 9.058484][ T193] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.058486][ T193] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 193, name: modprobe [ 9.058487][ T193] preempt_count: 1, expected: 0 [ 9.058488][ T193] RCU nest depth: 0, expected: 0 [ 9.058489][ T193] locks held by modprobe/193: 4, last CPU#3: [ 9.058491][ T193] #0: ffffffffa917ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.058502][ T193] #1: ffffffffa917de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.058506][ T193] #2: ffffffffa909d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.058510][ T193] #3: ffffffffa909d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.058514][ T193] irq event stamp: 39156 [ 9.058515][ T193] hardirqs last enabled at (39155): [] __down_trylock_console_sem+0x86/0xa0 [ 9.058518][ T193] hardirqs last disabled at (39156): [] console_emit_next_record+0x3d4/0x4c0 [ 9.058520][ T193] softirqs last enabled at (35106): [] handle_softirqs+0x67c/0x900 [ 9.058523][ T193] softirqs last disabled at (35099): [] __irq_exit_rcu+0x145/0x1c0 [ 9.058526][ T193] Preemption disabled at: [ 9.058526][ T193] [] vprintk_emit+0x31b/0x3e0 [ 9.058531][ T193] CPU: 3 UID: 0 PID: 193 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.058535][ T193] Tainted: [W]=WARN [ 9.058536][ T193] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.058538][ T193] Call Trace: [ 9.058539][ T193] [ 9.058540][ T193] dump_stack_lvl+0x6f/0xa0 [ 9.058546][ T193] ? vprintk_emit+0x31b/0x3e0 [ 9.058547][ T193] __might_resched.cold+0x1fe/0x2c1 [ 9.058552][ T193] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.058556][ T193] ? __kmalloc_noprof+0xdb/0x760 [ 9.058560][ T193] __kmalloc_noprof+0x443/0x760 [ 9.058562][ T193] ? alloc_buf.isra.0+0x4b/0x260 [ 9.058569][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 9.058571][ T193] alloc_buf.isra.0+0x4b/0x260 [ 9.058575][ T193] put_chars+0x1e1/0x2f0 [ 9.058578][ T193] ? __send_to_port+0x420/0x420 [ 9.058579][ T193] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.058582][ T193] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.058585][ T193] ? validate_chain+0x38b/0xc20 [ 9.058590][ T193] hvc_console_print+0x292/0x780 [ 9.058594][ T193] ? __lock_acquire+0x518/0xc20 [ 9.058598][ T193] ? hvc_write+0x3a0/0x3a0 [ 9.058601][ T193] ? rcu_is_watching+0x16/0xd0 [ 9.058606][ T193] console_emit_next_record+0x22f/0x4c0 [ 9.058611][ T193] ? devkmsg_read+0x4b0/0x4b0 [ 9.058613][ T193] ? console_flush_one_record+0x106/0x710 [ 9.058616][ T193] ? rcu_is_watching+0x16/0xd0 [ 9.058618][ T193] ? lock_acquire+0x13c/0x160 [ 9.058622][ T193] console_flush_one_record+0x46f/0x710 [ 9.058626][ T193] ? console_emit_next_record+0x4c0/0x4c0 [ 9.058628][ T193] ? __lock_acquire+0x518/0xc20 [ 9.058633][ T193] console_unlock+0xee/0x1f0 [ 9.058639][ T193] ? console_flush_one_record+0x710/0x710 [ 9.058640][ T193] ? rcu_is_watching+0x16/0xd0 [ 9.058642][ T193] ? lock_acquire+0xe0/0x160 [ 9.058646][ T193] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.058647][ T193] ? vprintk_emit+0x320/0x3e0 [ 9.058650][ T193] vprintk_emit+0x37c/0x3e0 [ 9.058653][ T193] ? wake_up_klogd_work_func+0x90/0x90 [ 9.058658][ T193] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 9.058661][ T193] _printk+0xc7/0x100 [ 9.058665][ T193] ? snapshot_read.cold+0x21/0x21 [ 9.058671][ T193] ? do_one_initcall+0x113/0x4f0 [ 9.058674][ T193] pg_init+0x1d/0x1000 [pktgen] [ 9.058677][ T193] do_one_initcall+0x124/0x4f0 [ 9.058679][ T193] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.058684][ T193] ? do_init_module+0xae/0x8a0 [ 9.058686][ T193] ? kasan_unpoison+0x44/0x70 [ 9.058692][ T193] do_init_module+0x2ad/0x8a0 [ 9.058695][ T193] ? lockdep_hardirqs_on+0x91/0x130 [ 9.058699][ T193] ? free_module+0x470/0x470 [ 9.058701][ T193] ? kfree+0x123/0x590 [ 9.058705][ T193] load_module+0x1424/0x1bb0 [ 9.058710][ T193] ? security_kernel_post_read_file+0x2f/0x60 [ 9.058714][ T193] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.058717][ T193] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.058720][ T193] ? add_chain_cache+0x12d/0x590 [ 9.058726][ T193] init_module_from_file+0x11f/0x1a0 [ 9.058728][ T193] ? __do_sys_init_module+0x270/0x270 [ 9.058735][ T193] ? __rwlock_init+0x150/0x150 [ 9.058739][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 9.058742][ T193] idempotent_init_module+0x37b/0x7c0 [ 9.058744][ T193] ? init_module_from_file+0x1a0/0x1a0 [ 9.058750][ T193] ? cap_capable+0x1d7/0x3d0 [ 9.058752][ T193] ? __x64_sys_pread64+0x18d/0x250 [ 9.058757][ T193] __x64_sys_finit_module+0xdf/0x190 [ 9.058759][ T193] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.058763][ T193] do_syscall_64+0xff/0x530 [ 9.058765][ T193] ? exc_page_fault+0xee/0x100 [ 9.058768][ T193] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.058770][ T193] RIP: 0033:0x7fc9df6e637d [ 9.058773][ 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 [ 9.058774][ T193] RSP: 002b:00007fffbd3afdd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.058777][ T193] RAX: ffffffffffffffda RBX: 00005638d97a4700 RCX: 00007fc9df6e637d [ 9.058778][ T193] RDX: 0000000000000000 RSI: 00005638c5671ffd RDI: 0000000000000005 [ 9.058779][ T193] RBP: 00007fffbd3afe70 R08: 0000000000000000 R09: 0000000000000000 [ 9.058780][ T193] R10: 0000000000000000 R11: 0000000000000246 R12: 00005638c5671ffd [ 9.058781][ T193] R13: 00005638d97a4820 R14: 0000000000040000 R15: 0000000000000000 [ 9.058787][ T193] [ 9.390619][ T194] pktgen: interface: lo@0 is already stopped [ 10.466929][ T208] pktgen: wrong command format [ 10.466984][ T208] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.466986][ T208] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 208, name: proc_net_pktgen [ 10.466988][ T208] preempt_count: 1, expected: 0 [ 10.466989][ T208] RCU nest depth: 0, expected: 0 [ 10.466990][ T208] locks held by proc_net_pktgen/208: 5, last CPU#1: [ 10.466992][ T208] #0: ff1100000906c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.467003][ T208] #1: ffffffffa917ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.467009][ T208] #2: ffffffffa917de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.467013][ T208] #3: ffffffffa909d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.467016][ T208] #4: ffffffffa909d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.467020][ T208] irq event stamp: 1052 [ 10.467021][ T208] hardirqs last enabled at (1051): [] __down_trylock_console_sem+0x86/0xa0 [ 10.467024][ T208] hardirqs last disabled at (1052): [] console_emit_next_record+0x3d4/0x4c0 [ 10.467026][ T208] softirqs last enabled at (340): [] fpu_clone+0xd9/0x410 [ 10.467030][ T208] softirqs last disabled at (338): [] fpu_clone+0x82/0x410 [ 10.467032][ T208] Preemption disabled at: [ 10.467033][ T208] [] vprintk_emit+0x31b/0x3e0 [ 10.467038][ T208] CPU: 1 UID: 0 PID: 208 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.467041][ T208] Tainted: [W]=WARN [ 10.467042][ T208] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.467043][ T208] Call Trace: [ 10.467045][ T208] [ 10.467046][ T208] dump_stack_lvl+0x6f/0xa0 [ 10.467051][ T208] ? vprintk_emit+0x31b/0x3e0 [ 10.467053][ T208] __might_resched.cold+0x1fe/0x2c1 [ 10.467057][ T208] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.467061][ T208] ? __kmalloc_noprof+0xdb/0x760 [ 10.467065][ T208] __kmalloc_noprof+0x443/0x760 [ 10.467067][ T208] ? alloc_buf.isra.0+0x4b/0x260 [ 10.467074][ T208] ? do_raw_spin_unlock+0x59/0x250 [ 10.467076][ T208] alloc_buf.isra.0+0x4b/0x260 [ 10.467080][ T208] put_chars+0x1e1/0x2f0 [ 10.467082][ T208] ? __send_to_port+0x420/0x420 [ 10.467085][ T208] ? validate_chain+0x34a/0xc20 [ 10.467090][ T208] hvc_console_print+0x292/0x780 [ 10.467094][ T208] ? __lock_acquire+0x518/0xc20 [ 10.467096][ T208] ? __lock_acquire+0x518/0xc20 [ 10.467101][ T208] ? hvc_write+0x3a0/0x3a0 [ 10.467102][ T208] ? console_emit_next_record+0x1df/0x4c0 [ 10.467105][ T208] ? rcu_is_watching+0x16/0xd0 [ 10.467108][ T208] ? lock_acquire+0x13c/0x160 [ 10.467112][ T208] console_emit_next_record+0x22f/0x4c0 [ 10.467115][ T208] ? devkmsg_read+0x4b0/0x4b0 [ 10.467117][ T208] ? console_flush_one_record+0x106/0x710 [ 10.467120][ T208] ? rcu_is_watching+0x16/0xd0 [ 10.467122][ T208] ? lock_acquire+0x13c/0x160 [ 10.467126][ T208] console_flush_one_record+0x46f/0x710 [ 10.467130][ T208] ? console_emit_next_record+0x4c0/0x4c0 [ 10.467132][ T208] ? __lock_acquire+0x518/0xc20 [ 10.467137][ T208] console_unlock+0xee/0x1f0 [ 10.467140][ T208] ? console_flush_one_record+0x710/0x710 [ 10.467141][ T208] ? rcu_is_watching+0x16/0xd0 [ 10.467143][ T208] ? lock_acquire+0xe0/0x160 [ 10.467147][ T208] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.467148][ T208] ? vprintk_emit+0x320/0x3e0 [ 10.467151][ T208] vprintk_emit+0x37c/0x3e0 [ 10.467154][ T208] ? wake_up_klogd_work_func+0x90/0x90 [ 10.467156][ T208] ? __lock_acquire+0x518/0xc20 [ 10.467160][ T208] _printk+0xc7/0x100 [ 10.467164][ T208] ? snapshot_read.cold+0x21/0x21 [ 10.467167][ T208] ? lock_acquire.part.0+0xd4/0x280 [ 10.467170][ T208] ? __lock_release.isra.0+0xb3/0x1a0 [ 10.467174][ T208] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 10.467178][ T208] ? __lock_release.isra.0+0x69/0x1a0 [ 10.467183][ T208] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 10.467185][ T208] ? file_update_time_flags+0x197/0x4a0 [ 10.467189][ T208] ? fault_dirty_shared_page+0x229/0x4b0 [ 10.467194][ T208] ? do_pte_missing+0x22c/0xcc0 [ 10.467198][ T208] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.467200][ T208] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.467203][ T208] ? validate_chain+0x38b/0xc20 [ 10.467206][ T208] ? mksaveddirty_shift+0x30/0x30 [ 10.467212][ T208] ? lock_acquire.part.0+0xd4/0x280 [ 10.467213][ T208] ? ksys_write+0x116/0x250 [ 10.467217][ T208] proc_reg_write+0x1bc/0x3b0 [ 10.467222][ T208] vfs_write+0x186/0x970 [ 10.467226][ T208] ksys_write+0x116/0x250 [ 10.467228][ T208] ? __ia32_sys_read+0xc0/0xc0 [ 10.467230][ T208] ? rcu_is_watching+0x16/0xd0 [ 10.467232][ T208] ? rcu_is_watching+0x16/0xd0 [ 10.467235][ T208] do_syscall_64+0xff/0x530 [ 10.467238][ T208] ? exc_page_fault+0xee/0x100 [ 10.467241][ T208] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.467243][ T208] RIP: 0033:0x7f92dc2ef54e [ 10.467246][ T208] 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.467248][ T208] RSP: 002b:00007ffcd0e44c00 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.467251][ T208] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f92dc2ef54e [ 10.467252][ T208] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 10.467253][ T208] RBP: 00007ffcd0e44c10 R08: 0000000000000000 R09: 0000000000000000 [ 10.467254][ T208] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffcd0e45100 [ 10.467254][ T208] R13: 0000000100000001 R14: 00007f92dc278000 R15: 00007f92dc278000 [ 10.467261][ T208]