[ 9.041601][ T194] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 9.041620][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.041622][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: modprobe [ 9.041623][ T194] preempt_count: 1, expected: 0 [ 9.041624][ T194] RCU nest depth: 0, expected: 0 [ 9.041625][ T194] locks held by modprobe/194: 4, last CPU#2: [ 9.041627][ T194] #0: ffffffffaff7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.041637][ T194] #1: ffffffffaff7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.041643][ T194] #2: ffffffffafe9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.041646][ T194] #3: ffffffffafe9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.041650][ T194] irq event stamp: 35278 [ 9.041651][ T194] hardirqs last enabled at (35277): [] __down_trylock_console_sem+0x86/0xa0 [ 9.041654][ T194] hardirqs last disabled at (35278): [] console_emit_next_record+0x3d4/0x4c0 [ 9.041656][ T194] softirqs last enabled at (33118): [] handle_softirqs+0x67c/0x900 [ 9.041660][ T194] softirqs last disabled at (33113): [] __irq_exit_rcu+0x145/0x1c0 [ 9.041663][ T194] Preemption disabled at: [ 9.041663][ T194] [] vprintk_emit+0x31b/0x3e0 [ 9.041668][ T194] CPU: 2 UID: 0 PID: 194 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.041672][ T194] Tainted: [W]=WARN [ 9.041673][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.041674][ T194] Call Trace: [ 9.041676][ T194] [ 9.041677][ T194] dump_stack_lvl+0x6f/0xa0 [ 9.041683][ T194] ? vprintk_emit+0x31b/0x3e0 [ 9.041685][ T194] __might_resched.cold+0x1fe/0x2c1 [ 9.041689][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.041693][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 9.041697][ T194] __kmalloc_noprof+0x443/0x760 [ 9.041699][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 9.041706][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 9.041708][ T194] alloc_buf.isra.0+0x4b/0x260 [ 9.041712][ T194] put_chars+0x1e1/0x2f0 [ 9.041714][ T194] ? __send_to_port+0x420/0x420 [ 9.041715][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.041719][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.041721][ T194] ? validate_chain+0x38b/0xc20 [ 9.041726][ T194] hvc_console_print+0x292/0x780 [ 9.041730][ T194] ? __lock_acquire+0x518/0xc20 [ 9.041735][ T194] ? hvc_write+0x3a0/0x3a0 [ 9.041738][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.041742][ T194] console_emit_next_record+0x22f/0x4c0 [ 9.041746][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 9.041748][ T194] ? console_flush_one_record+0x106/0x710 [ 9.041751][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.041753][ T194] ? lock_acquire+0x13c/0x160 [ 9.041757][ T194] console_flush_one_record+0x46f/0x710 [ 9.041761][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 9.041763][ T194] ? __lock_acquire+0x518/0xc20 [ 9.041768][ T194] console_unlock+0xee/0x1f0 [ 9.041770][ T194] ? console_flush_one_record+0x710/0x710 [ 9.041772][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.041774][ T194] ? lock_acquire+0xe0/0x160 [ 9.041777][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.041779][ T194] ? vprintk_emit+0x320/0x3e0 [ 9.041782][ T194] vprintk_emit+0x37c/0x3e0 [ 9.041785][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 9.041789][ T194] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 9.041793][ T194] _printk+0xc7/0x100 [ 9.041796][ T194] ? snapshot_read.cold+0x21/0x21 [ 9.041802][ T194] ? do_one_initcall+0x113/0x4f0 [ 9.041806][ T194] pg_init+0x1d/0x1000 [pktgen] [ 9.041809][ T194] do_one_initcall+0x124/0x4f0 [ 9.041811][ T194] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.041816][ T194] ? do_init_module+0xae/0x8a0 [ 9.041818][ T194] ? kasan_unpoison+0x44/0x70 [ 9.041824][ T194] do_init_module+0x2ad/0x8a0 [ 9.041827][ T194] ? lockdep_hardirqs_on+0x91/0x130 [ 9.041831][ T194] ? free_module+0x470/0x470 [ 9.041833][ T194] ? kfree+0x123/0x590 [ 9.041837][ T194] load_module+0x1424/0x1bb0 [ 9.041842][ T194] ? security_kernel_post_read_file+0x2f/0x60 [ 9.041846][ T194] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.041849][ T194] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.041852][ T194] ? add_chain_cache+0x12d/0x590 [ 9.041857][ T194] init_module_from_file+0x11f/0x1a0 [ 9.041860][ T194] ? __do_sys_init_module+0x270/0x270 [ 9.041867][ T194] ? __rwlock_init+0x150/0x150 [ 9.041871][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 9.041874][ T194] idempotent_init_module+0x37b/0x7c0 [ 9.041876][ T194] ? init_module_from_file+0x1a0/0x1a0 [ 9.041881][ T194] ? cap_capable+0x1d7/0x3d0 [ 9.041884][ T194] ? __x64_sys_pread64+0x18d/0x250 [ 9.041889][ T194] __x64_sys_finit_module+0xdf/0x190 [ 9.041890][ T194] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.041894][ T194] do_syscall_64+0xff/0x530 [ 9.041897][ T194] ? exc_page_fault+0xee/0x100 [ 9.041899][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.041902][ T194] RIP: 0033:0x7fc2b06ec37d [ 9.041905][ 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 [ 9.041907][ T194] RSP: 002b:00007ffee53f0438 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.041909][ T194] RAX: ffffffffffffffda RBX: 000055b62d574700 RCX: 00007fc2b06ec37d [ 9.041911][ T194] RDX: 0000000000000000 RSI: 000055b61480bffd RDI: 0000000000000005 [ 9.041911][ T194] RBP: 00007ffee53f04d0 R08: 0000000000000000 R09: 0000000000000000 [ 9.041912][ T194] R10: 0000000000000000 R11: 0000000000000246 R12: 000055b61480bffd [ 9.041913][ T194] R13: 000055b62d574820 R14: 0000000000040000 R15: 0000000000000000 [ 9.041919][ T194] [ 9.283299][ T195] pktgen: interface: lo@0 is already stopped [ 10.346774][ T209] pktgen: wrong command format [ 10.346843][ T209] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.346845][ T209] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 209, name: proc_net_pktgen [ 10.346846][ T209] preempt_count: 1, expected: 0 [ 10.346847][ T209] RCU nest depth: 0, expected: 0 [ 10.346848][ T209] locks held by proc_net_pktgen/209: 5, last CPU#1: [ 10.346850][ T209] #0: ff110000091fc438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.346862][ T209] #1: ffffffffaff7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.346867][ T209] #2: ffffffffaff7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.346871][ T209] #3: ffffffffafe9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.346875][ T209] #4: ffffffffafe9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.346878][ T209] irq event stamp: 1058 [ 10.346879][ T209] hardirqs last enabled at (1057): [] __down_trylock_console_sem+0x86/0xa0 [ 10.346882][ T209] hardirqs last disabled at (1058): [] console_emit_next_record+0x3d4/0x4c0 [ 10.346884][ T209] softirqs last enabled at (762): [] handle_softirqs+0x67c/0x900 [ 10.346888][ T209] softirqs last disabled at (753): [] __irq_exit_rcu+0x145/0x1c0 [ 10.346890][ T209] Preemption disabled at: [ 10.346891][ T209] [] vprintk_emit+0x31b/0x3e0 [ 10.346896][ T209] CPU: 1 UID: 0 PID: 209 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.346899][ T209] Tainted: [W]=WARN [ 10.346900][ T209] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.346902][ T209] Call Trace: [ 10.346903][ T209] [ 10.346904][ T209] dump_stack_lvl+0x6f/0xa0 [ 10.346911][ T209] ? vprintk_emit+0x31b/0x3e0 [ 10.346912][ T209] __might_resched.cold+0x1fe/0x2c1 [ 10.346917][ T209] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.346921][ T209] ? __kmalloc_noprof+0xdb/0x760 [ 10.346925][ T209] __kmalloc_noprof+0x443/0x760 [ 10.346927][ T209] ? alloc_buf.isra.0+0x4b/0x260 [ 10.346933][ T209] ? do_raw_spin_unlock+0x59/0x250 [ 10.346936][ T209] alloc_buf.isra.0+0x4b/0x260 [ 10.346940][ T209] put_chars+0x1e1/0x2f0 [ 10.346942][ T209] ? __send_to_port+0x420/0x420 [ 10.346945][ T209] ? validate_chain+0x34a/0xc20 [ 10.346950][ T209] hvc_console_print+0x292/0x780 [ 10.346954][ T209] ? __lock_acquire+0x518/0xc20 [ 10.346956][ T209] ? __lock_acquire+0x518/0xc20 [ 10.346960][ T209] ? hvc_write+0x3a0/0x3a0 [ 10.346962][ T209] ? console_emit_next_record+0x1df/0x4c0 [ 10.346965][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.346968][ T209] ? lock_acquire+0x13c/0x160 [ 10.346972][ T209] console_emit_next_record+0x22f/0x4c0 [ 10.346976][ T209] ? devkmsg_read+0x4b0/0x4b0 [ 10.346977][ T209] ? console_flush_one_record+0x106/0x710 [ 10.346981][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.346982][ T209] ? lock_acquire+0x13c/0x160 [ 10.346986][ T209] console_flush_one_record+0x46f/0x710 [ 10.346990][ T209] ? console_emit_next_record+0x4c0/0x4c0 [ 10.346992][ T209] ? __lock_acquire+0x518/0xc20 [ 10.346997][ T209] console_unlock+0xee/0x1f0 [ 10.347000][ T209] ? console_flush_one_record+0x710/0x710 [ 10.347002][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.347004][ T209] ? lock_acquire+0xe0/0x160 [ 10.347007][ T209] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.347009][ T209] ? vprintk_emit+0x320/0x3e0 [ 10.347012][ T209] vprintk_emit+0x37c/0x3e0 [ 10.347015][ T209] ? wake_up_klogd_work_func+0x90/0x90 [ 10.347017][ T209] ? __lock_acquire+0x518/0xc20 [ 10.347021][ T209] _printk+0xc7/0x100 [ 10.347025][ T209] ? snapshot_read.cold+0x21/0x21 [ 10.347028][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 10.347031][ T209] ? __lock_release.isra.0+0xb3/0x1a0 [ 10.347035][ T209] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 10.347039][ T209] ? __lock_release.isra.0+0x69/0x1a0 [ 10.347044][ T209] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 10.347047][ T209] ? file_update_time_flags+0x197/0x4a0 [ 10.347051][ T209] ? fault_dirty_shared_page+0x229/0x4b0 [ 10.347056][ T209] ? do_pte_missing+0x22c/0xcc0 [ 10.347060][ T209] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.347062][ T209] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.347065][ T209] ? validate_chain+0x38b/0xc20 [ 10.347068][ T209] ? mksaveddirty_shift+0x30/0x30 [ 10.347079][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 10.347081][ T209] ? ksys_write+0x116/0x250 [ 10.347085][ T209] proc_reg_write+0x1bc/0x3b0 [ 10.347090][ T209] vfs_write+0x186/0x970 [ 10.347093][ T209] ksys_write+0x116/0x250 [ 10.347096][ T209] ? __ia32_sys_read+0xc0/0xc0 [ 10.347098][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.347099][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.347102][ T209] do_syscall_64+0xff/0x530 [ 10.347106][ T209] ? exc_page_fault+0xee/0x100 [ 10.347109][ T209] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.347111][ T209] RIP: 0033:0x7f4be64e454e [ 10.347115][ 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.347117][ T209] RSP: 002b:00007ffdc2504910 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.347119][ T209] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4be64e454e [ 10.347121][ T209] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 10.347122][ T209] RBP: 00007ffdc2504920 R08: 0000000000000000 R09: 0000000000000000 [ 10.347122][ T209] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffdc2504e10 [ 10.347123][ T209] R13: 0000000100000001 R14: 00007f4be646d000 R15: 00007f4be646d000 [ 10.347130][ T209]