[ 10.087305][ T194] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 10.087327][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.087330][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: modprobe [ 10.087333][ T194] preempt_count: 1, expected: 0 [ 10.087334][ T194] RCU nest depth: 0, expected: 0 [ 10.087335][ T194] locks held by modprobe/194: 4, last CPU#2: [ 10.087338][ T194] #0: ffffffff9557ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.087352][ T194] #1: ffffffff9557de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.087360][ T194] #2: ffffffff9549d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.087366][ T194] #3: ffffffff9549d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.087377][ T194] irq event stamp: 47630 [ 10.087379][ T194] hardirqs last enabled at (47629): [] __down_trylock_console_sem+0x86/0xa0 [ 10.087383][ T194] hardirqs last disabled at (47630): [] console_emit_next_record+0x3d4/0x4c0 [ 10.087386][ T194] softirqs last enabled at (45918): [] handle_softirqs+0x67c/0x900 [ 10.087391][ T194] softirqs last disabled at (45911): [] __irq_exit_rcu+0x145/0x1c0 [ 10.087394][ T194] Preemption disabled at: [ 10.087395][ T194] [] vprintk_emit+0x31b/0x3e0 [ 10.087402][ T194] CPU: 2 UID: 0 PID: 194 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.087406][ T194] Tainted: [W]=WARN [ 10.087408][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.087410][ T194] Call Trace: [ 10.087412][ T194] [ 10.087414][ T194] dump_stack_lvl+0x6f/0xa0 [ 10.087421][ T194] ? vprintk_emit+0x31b/0x3e0 [ 10.087423][ T194] __might_resched.cold+0x1fe/0x2c1 [ 10.087430][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.087435][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 10.087442][ T194] __kmalloc_noprof+0x443/0x760 [ 10.087445][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 10.087455][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.087459][ T194] alloc_buf.isra.0+0x4b/0x260 [ 10.087465][ T194] put_chars+0x1e1/0x2f0 [ 10.087469][ T194] ? __send_to_port+0x420/0x420 [ 10.087471][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.087476][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.087480][ T194] ? validate_chain+0x38b/0xc20 [ 10.087488][ T194] hvc_console_print+0x292/0x780 [ 10.087493][ T194] ? __lock_acquire+0x518/0xc20 [ 10.087501][ T194] ? hvc_write+0x3a0/0x3a0 [ 10.087507][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.087515][ T194] console_emit_next_record+0x22f/0x4c0 [ 10.087521][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 10.087524][ T194] ? console_flush_one_record+0x106/0x710 [ 10.087529][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.087532][ T194] ? lock_acquire+0x13c/0x160 [ 10.087539][ T194] console_flush_one_record+0x46f/0x710 [ 10.087546][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 10.087548][ T194] ? __lock_acquire+0x518/0xc20 [ 10.087557][ T194] console_unlock+0xee/0x1f0 [ 10.087562][ T194] ? console_flush_one_record+0x710/0x710 [ 10.087564][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.087567][ T194] ? lock_acquire+0xe0/0x160 [ 10.087576][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.087578][ T194] ? vprintk_emit+0x320/0x3e0 [ 10.087583][ T194] vprintk_emit+0x37c/0x3e0 [ 10.087589][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 10.087597][ T194] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 10.087603][ T194] _printk+0xc7/0x100 [ 10.087608][ T194] ? snapshot_read.cold+0x21/0x21 [ 10.087619][ T194] ? do_one_initcall+0x113/0x4f0 [ 10.087624][ T194] pg_init+0x1d/0x1000 [pktgen] [ 10.087629][ T194] do_one_initcall+0x124/0x4f0 [ 10.087633][ T194] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.087641][ T194] ? do_init_module+0xae/0x8a0 [ 10.087645][ T194] ? kasan_unpoison+0x44/0x70 [ 10.087653][ T194] do_init_module+0x2ad/0x8a0 [ 10.087659][ T194] ? lockdep_hardirqs_on+0x91/0x130 [ 10.087664][ T194] ? free_module+0x470/0x470 [ 10.087669][ T194] ? kfree+0x123/0x590 [ 10.087675][ T194] load_module+0x1424/0x1bb0 [ 10.087685][ T194] ? security_kernel_post_read_file+0x2f/0x60 [ 10.087691][ T194] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.087697][ T194] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.087701][ T194] ? add_chain_cache+0x12d/0x590 [ 10.087710][ T194] init_module_from_file+0x11f/0x1a0 [ 10.087715][ T194] ? __do_sys_init_module+0x270/0x270 [ 10.087728][ T194] ? __rwlock_init+0x150/0x150 [ 10.087734][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.087739][ T194] idempotent_init_module+0x37b/0x7c0 [ 10.087744][ T194] ? init_module_from_file+0x1a0/0x1a0 [ 10.087754][ T194] ? cap_capable+0x1d7/0x3d0 [ 10.087758][ T194] ? __x64_sys_pread64+0x18d/0x250 [ 10.087766][ T194] __x64_sys_finit_module+0xdf/0x190 [ 10.087769][ T194] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.087774][ T194] do_syscall_64+0xff/0x530 [ 10.087778][ T194] ? exc_page_fault+0xee/0x100 [ 10.087782][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.087786][ T194] RIP: 0033:0x7f5abf52337d [ 10.087790][ 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.087793][ T194] RSP: 002b:00007ffca1f02618 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.087797][ T194] RAX: ffffffffffffffda RBX: 0000559bfafd6700 RCX: 00007f5abf52337d [ 10.087799][ T194] RDX: 0000000000000000 RSI: 0000559bf77faffd RDI: 0000000000000005 [ 10.087800][ T194] RBP: 00007ffca1f026b0 R08: 0000000000000000 R09: 0000000000000000 [ 10.087802][ T194] R10: 0000000000000000 R11: 0000000000000246 R12: 0000559bf77faffd [ 10.087803][ T194] R13: 0000559bfafd6820 R14: 0000000000040000 R15: 0000000000000000 [ 10.087815][ T194] [ 10.436593][ T195] pktgen: interface: lo@0 is already stopped [ 11.571477][ T210] pktgen: wrong command format [ 11.571628][ T210] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.571630][ T210] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 210, name: proc_net_pktgen [ 11.571632][ T210] preempt_count: 1, expected: 0 [ 11.571633][ T210] RCU nest depth: 0, expected: 0 [ 11.571634][ T210] locks held by proc_net_pktgen/210: 5, last CPU#2: [ 11.571636][ T210] #0: ff1100000ad2c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 11.571649][ T210] #1: ffffffff9557ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.571654][ T210] #2: ffffffff9557de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.571659][ T210] #3: ffffffff9549d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.571663][ T210] #4: ffffffff9549d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.571667][ T210] irq event stamp: 1062 [ 11.571667][ T210] hardirqs last enabled at (1061): [] __down_trylock_console_sem+0x86/0xa0 [ 11.571671][ T210] hardirqs last disabled at (1062): [] console_emit_next_record+0x3d4/0x4c0 [ 11.571673][ T210] softirqs last enabled at (592): [] handle_softirqs+0x67c/0x900 [ 11.571677][ T210] softirqs last disabled at (585): [] __irq_exit_rcu+0x145/0x1c0 [ 11.571679][ T210] Preemption disabled at: [ 11.571679][ T210] [] vprintk_emit+0x31b/0x3e0 [ 11.571684][ T210] CPU: 2 UID: 0 PID: 210 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.571688][ T210] Tainted: [W]=WARN [ 11.571689][ T210] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.571691][ T210] Call Trace: [ 11.571692][ T210] [ 11.571694][ T210] dump_stack_lvl+0x6f/0xa0 [ 11.571700][ T210] ? vprintk_emit+0x31b/0x3e0 [ 11.571702][ T210] __might_resched.cold+0x1fe/0x2c1 [ 11.571707][ T210] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.571711][ T210] ? __kmalloc_noprof+0xdb/0x760 [ 11.571715][ T210] __kmalloc_noprof+0x443/0x760 [ 11.571717][ T210] ? alloc_buf.isra.0+0x4b/0x260 [ 11.571724][ T210] ? do_raw_spin_unlock+0x59/0x250 [ 11.571727][ T210] alloc_buf.isra.0+0x4b/0x260 [ 11.571731][ T210] put_chars+0x1e1/0x2f0 [ 11.571733][ T210] ? __send_to_port+0x420/0x420 [ 11.571737][ T210] ? validate_chain+0x34a/0xc20 [ 11.571741][ T210] hvc_console_print+0x292/0x780 [ 11.571745][ T210] ? __lock_acquire+0x518/0xc20 [ 11.571747][ T210] ? __lock_acquire+0x518/0xc20 [ 11.571752][ T210] ? hvc_write+0x3a0/0x3a0 [ 11.571753][ T210] ? console_emit_next_record+0x1df/0x4c0 [ 11.571757][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.571759][ T210] ? lock_acquire+0x13c/0x160 [ 11.571764][ T210] console_emit_next_record+0x22f/0x4c0 [ 11.571767][ T210] ? devkmsg_read+0x4b0/0x4b0 [ 11.571769][ T210] ? console_flush_one_record+0x106/0x710 [ 11.571773][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.571774][ T210] ? lock_acquire+0x13c/0x160 [ 11.571778][ T210] console_flush_one_record+0x46f/0x710 [ 11.571783][ T210] ? console_emit_next_record+0x4c0/0x4c0 [ 11.571785][ T210] ? __lock_acquire+0x518/0xc20 [ 11.571790][ T210] console_unlock+0xee/0x1f0 [ 11.571793][ T210] ? console_flush_one_record+0x710/0x710 [ 11.571795][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.571796][ T210] ? lock_acquire+0xe0/0x160 [ 11.571800][ T210] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.571802][ T210] ? vprintk_emit+0x320/0x3e0 [ 11.571805][ T210] vprintk_emit+0x37c/0x3e0 [ 11.571808][ T210] ? wake_up_klogd_work_func+0x90/0x90 [ 11.571810][ T210] ? __lock_acquire+0x518/0xc20 [ 11.571815][ T210] _printk+0xc7/0x100 [ 11.571818][ T210] ? snapshot_read.cold+0x21/0x21 [ 11.571821][ T210] ? lock_acquire.part.0+0xd4/0x280 [ 11.571825][ T210] ? __lock_release.isra.0+0xb3/0x1a0 [ 11.571829][ T210] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 11.571833][ T210] ? __lock_release.isra.0+0x69/0x1a0 [ 11.571838][ T210] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 11.571841][ T210] ? file_update_time_flags+0x197/0x4a0 [ 11.571845][ T210] ? fault_dirty_shared_page+0x229/0x4b0 [ 11.571850][ T210] ? do_pte_missing+0x22c/0xcc0 [ 11.571854][ T210] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.571856][ T210] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.571859][ T210] ? validate_chain+0x38b/0xc20 [ 11.571862][ T210] ? mksaveddirty_shift+0x30/0x30 [ 11.571868][ T210] ? lock_acquire.part.0+0xd4/0x280 [ 11.571870][ T210] ? ksys_write+0x116/0x250 [ 11.571874][ T210] proc_reg_write+0x1bc/0x3b0 [ 11.571879][ T210] vfs_write+0x186/0x970 [ 11.571883][ T210] ksys_write+0x116/0x250 [ 11.571886][ T210] ? __ia32_sys_read+0xc0/0xc0 [ 11.571888][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.571889][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.571892][ T210] do_syscall_64+0xff/0x530 [ 11.571896][ T210] ? exc_page_fault+0xee/0x100 [ 11.571899][ T210] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.571901][ T210] RIP: 0033:0x7f404b4c054e [ 11.571905][ T210] 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 [ 11.571907][ T210] RSP: 002b:00007fff4c029490 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.571909][ T210] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f404b4c054e [ 11.571911][ T210] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 11.571912][ T210] RBP: 00007fff4c0294a0 R08: 0000000000000000 R09: 0000000000000000 [ 11.571912][ T210] R10: 0000000000000000 R11: 0000000000000202 R12: 00007fff4c029990 [ 11.571913][ T210] R13: 0000000100000001 R14: 00007f404b449000 R15: 00007f404b449000 [ 11.571920][ T210]