[ 10.759652][ T194] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 10.759671][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.759673][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: modprobe [ 10.759675][ T194] preempt_count: 1, expected: 0 [ 10.759676][ T194] RCU nest depth: 0, expected: 0 [ 10.759677][ T194] locks held by modprobe/194: 4, last CPU#1: [ 10.759679][ T194] #0: ffffffff8557ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.759690][ T194] #1: ffffffff8557de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.759695][ T194] #2: ffffffff8549d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.759699][ T194] #3: ffffffff8549d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.759703][ T194] irq event stamp: 36186 [ 10.759704][ T194] hardirqs last enabled at (36185): [] __down_trylock_console_sem+0x86/0xa0 [ 10.759713][ T194] hardirqs last disabled at (36186): [] console_emit_next_record+0x3d4/0x4c0 [ 10.759715][ T194] softirqs last enabled at (34352): [] handle_softirqs+0x67c/0x900 [ 10.759718][ T194] softirqs last disabled at (34343): [] __irq_exit_rcu+0x145/0x1c0 [ 10.759721][ T194] Preemption disabled at: [ 10.759721][ T194] [] vprintk_emit+0x31b/0x3e0 [ 10.759727][ T194] CPU: 1 UID: 0 PID: 194 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.759730][ T194] Tainted: [W]=WARN [ 10.759731][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.759733][ T194] Call Trace: [ 10.759734][ T194] [ 10.759735][ T194] dump_stack_lvl+0x6f/0xa0 [ 10.759741][ T194] ? vprintk_emit+0x31b/0x3e0 [ 10.759743][ T194] __might_resched.cold+0x1fe/0x2c1 [ 10.759747][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.759752][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 10.759756][ T194] __kmalloc_noprof+0x443/0x760 [ 10.759758][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 10.759764][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.759767][ T194] alloc_buf.isra.0+0x4b/0x260 [ 10.759771][ T194] put_chars+0x1e1/0x2f0 [ 10.759773][ T194] ? __send_to_port+0x420/0x420 [ 10.759775][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.759778][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.759781][ T194] ? validate_chain+0x38b/0xc20 [ 10.759786][ T194] hvc_console_print+0x292/0x780 [ 10.759789][ T194] ? __lock_acquire+0x518/0xc20 [ 10.759794][ T194] ? hvc_write+0x3a0/0x3a0 [ 10.759797][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.759802][ T194] console_emit_next_record+0x22f/0x4c0 [ 10.759805][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 10.759807][ T194] ? console_flush_one_record+0x106/0x710 [ 10.759810][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.759812][ T194] ? lock_acquire+0x13c/0x160 [ 10.759816][ T194] console_flush_one_record+0x46f/0x710 [ 10.759820][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 10.759822][ T194] ? __lock_acquire+0x518/0xc20 [ 10.759827][ T194] console_unlock+0xee/0x1f0 [ 10.759830][ T194] ? console_flush_one_record+0x710/0x710 [ 10.759832][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.759833][ T194] ? lock_acquire+0xe0/0x160 [ 10.759837][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.759839][ T194] ? vprintk_emit+0x320/0x3e0 [ 10.759841][ T194] vprintk_emit+0x37c/0x3e0 [ 10.759845][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 10.759849][ T194] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 10.759857][ T194] _printk+0xc7/0x100 [ 10.759861][ T194] ? snapshot_read.cold+0x21/0x21 [ 10.759867][ T194] ? do_one_initcall+0x113/0x4f0 [ 10.759870][ T194] pg_init+0x1d/0x1000 [pktgen] [ 10.759874][ T194] do_one_initcall+0x124/0x4f0 [ 10.759877][ T194] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.759881][ T194] ? do_init_module+0xae/0x8a0 [ 10.759884][ T194] ? kasan_unpoison+0x44/0x70 [ 10.759889][ T194] do_init_module+0x2ad/0x8a0 [ 10.759892][ T194] ? lockdep_hardirqs_on+0x91/0x130 [ 10.759896][ T194] ? free_module+0x470/0x470 [ 10.759899][ T194] ? kfree+0x123/0x590 [ 10.759902][ T194] load_module+0x1424/0x1bb0 [ 10.759907][ T194] ? security_kernel_post_read_file+0x2f/0x60 [ 10.759912][ T194] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.759915][ T194] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.759918][ T194] ? add_chain_cache+0x12d/0x590 [ 10.759923][ T194] init_module_from_file+0x11f/0x1a0 [ 10.759925][ T194] ? __do_sys_init_module+0x270/0x270 [ 10.759932][ T194] ? __rwlock_init+0x150/0x150 [ 10.759936][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.759939][ T194] idempotent_init_module+0x37b/0x7c0 [ 10.759941][ T194] ? init_module_from_file+0x1a0/0x1a0 [ 10.759947][ T194] ? cap_capable+0x1d7/0x3d0 [ 10.759949][ T194] ? __x64_sys_pread64+0x18d/0x250 [ 10.759954][ T194] __x64_sys_finit_module+0xdf/0x190 [ 10.759956][ T194] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.759960][ T194] do_syscall_64+0xff/0x530 [ 10.759963][ T194] ? exc_page_fault+0xee/0x100 [ 10.759965][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.759967][ T194] RIP: 0033:0x7f5caec0637d [ 10.759971][ T194] 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.759972][ T194] RSP: 002b:00007ffe9befd458 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.759975][ T194] RAX: ffffffffffffffda RBX: 00005629b9f2f700 RCX: 00007f5caec0637d [ 10.759976][ T194] RDX: 0000000000000000 RSI: 0000562992d34ffd RDI: 0000000000000005 [ 10.759977][ T194] RBP: 00007ffe9befd4f0 R08: 0000000000000000 R09: 0000000000000000 [ 10.759978][ T194] R10: 0000000000000000 R11: 0000000000000246 R12: 0000562992d34ffd [ 10.759979][ T194] R13: 00005629b9f2f820 R14: 0000000000040000 R15: 0000000000000000 [ 10.759985][ T194] [ 11.092866][ T195] pktgen: interface: lo@0 is already stopped [ 12.261848][ T211] pktgen: wrong command format [ 12.261964][ T211] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.261966][ T211] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 211, name: proc_net_pktgen [ 12.261968][ T211] preempt_count: 1, expected: 0 [ 12.261969][ T211] RCU nest depth: 0, expected: 0 [ 12.261970][ T211] locks held by proc_net_pktgen/211: 5, last CPU#0: [ 12.261972][ T211] #0: ff1100000a6d4438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 12.261984][ T211] #1: ffffffff8557ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.261989][ T211] #2: ffffffff8557de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.261994][ T211] #3: ffffffff8549d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.261997][ T211] #4: ffffffff8549d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.262001][ T211] irq event stamp: 1078 [ 12.262002][ T211] hardirqs last enabled at (1077): [] __down_trylock_console_sem+0x86/0xa0 [ 12.262005][ T211] hardirqs last disabled at (1078): [] console_emit_next_record+0x3d4/0x4c0 [ 12.262007][ T211] softirqs last enabled at (682): [] handle_softirqs+0x67c/0x900 [ 12.262010][ T211] softirqs last disabled at (675): [] __irq_exit_rcu+0x145/0x1c0 [ 12.262012][ T211] Preemption disabled at: [ 12.262013][ T211] [] vprintk_emit+0x31b/0x3e0 [ 12.262018][ T211] CPU: 0 UID: 0 PID: 211 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.262022][ T211] Tainted: [W]=WARN [ 12.262023][ T211] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.262024][ T211] Call Trace: [ 12.262026][ T211] [ 12.262027][ T211] dump_stack_lvl+0x6f/0xa0 [ 12.262033][ T211] ? vprintk_emit+0x31b/0x3e0 [ 12.262035][ T211] __might_resched.cold+0x1fe/0x2c1 [ 12.262039][ T211] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.262043][ T211] ? __kmalloc_noprof+0xdb/0x760 [ 12.262047][ T211] __kmalloc_noprof+0x443/0x760 [ 12.262050][ T211] ? alloc_buf.isra.0+0x4b/0x260 [ 12.262057][ T211] ? do_raw_spin_unlock+0x59/0x250 [ 12.262060][ T211] alloc_buf.isra.0+0x4b/0x260 [ 12.262064][ T211] put_chars+0x1e1/0x2f0 [ 12.262066][ T211] ? __send_to_port+0x420/0x420 [ 12.262070][ T211] ? validate_chain+0x34a/0xc20 [ 12.262074][ T211] hvc_console_print+0x292/0x780 [ 12.262078][ T211] ? __lock_acquire+0x518/0xc20 [ 12.262080][ T211] ? __lock_acquire+0x518/0xc20 [ 12.262084][ T211] ? hvc_write+0x3a0/0x3a0 [ 12.262086][ T211] ? console_emit_next_record+0x1df/0x4c0 [ 12.262089][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.262092][ T211] ? lock_acquire+0x13c/0x160 [ 12.262096][ T211] console_emit_next_record+0x22f/0x4c0 [ 12.262100][ T211] ? devkmsg_read+0x4b0/0x4b0 [ 12.262102][ T211] ? console_flush_one_record+0x106/0x710 [ 12.262105][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.262107][ T211] ? lock_acquire+0x13c/0x160 [ 12.262111][ T211] console_flush_one_record+0x46f/0x710 [ 12.262115][ T211] ? console_emit_next_record+0x4c0/0x4c0 [ 12.262117][ T211] ? __lock_acquire+0x518/0xc20 [ 12.262122][ T211] console_unlock+0xee/0x1f0 [ 12.262125][ T211] ? console_flush_one_record+0x710/0x710 [ 12.262127][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.262128][ T211] ? lock_acquire+0xe0/0x160 [ 12.262132][ T211] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.262134][ T211] ? vprintk_emit+0x320/0x3e0 [ 12.262137][ T211] vprintk_emit+0x37c/0x3e0 [ 12.262140][ T211] ? wake_up_klogd_work_func+0x90/0x90 [ 12.262141][ T211] ? __lock_acquire+0x518/0xc20 [ 12.262146][ T211] _printk+0xc7/0x100 [ 12.262150][ T211] ? snapshot_read.cold+0x21/0x21 [ 12.262153][ T211] ? lock_acquire.part.0+0xd4/0x280 [ 12.262156][ T211] ? __lock_release.isra.0+0xb3/0x1a0 [ 12.262160][ T211] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 12.262165][ T211] ? __lock_release.isra.0+0x69/0x1a0 [ 12.262170][ T211] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 12.262172][ T211] ? file_update_time_flags+0x197/0x4a0 [ 12.262176][ T211] ? fault_dirty_shared_page+0x229/0x4b0 [ 12.262181][ T211] ? do_pte_missing+0x22c/0xcc0 [ 12.262185][ T211] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.262187][ T211] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.262190][ T211] ? validate_chain+0x38b/0xc20 [ 12.262193][ T211] ? mksaveddirty_shift+0x30/0x30 [ 12.262198][ T211] ? lock_acquire.part.0+0xd4/0x280 [ 12.262200][ T211] ? ksys_write+0x116/0x250 [ 12.262204][ T211] proc_reg_write+0x1bc/0x3b0 [ 12.262209][ T211] vfs_write+0x186/0x970 [ 12.262213][ T211] ksys_write+0x116/0x250 [ 12.262215][ T211] ? __ia32_sys_read+0xc0/0xc0 [ 12.262217][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.262219][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.262222][ T211] do_syscall_64+0xff/0x530 [ 12.262226][ T211] ? exc_page_fault+0xee/0x100 [ 12.262229][ T211] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.262231][ T211] RIP: 0033:0x7f0441e4f54e [ 12.262234][ T211] 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.262236][ T211] RSP: 002b:00007ffd1cab55c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.262239][ T211] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0441e4f54e [ 12.262240][ T211] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 12.262241][ T211] RBP: 00007ffd1cab55d0 R08: 0000000000000000 R09: 0000000000000000 [ 12.262242][ T211] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffd1cab5ac0 [ 12.262243][ T211] R13: 0000000100000001 R14: 00007f0441dd8000 R15: 00007f0441dd8000 [ 12.262249][ T211]