[ 10.928172][ T194] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 10.928191][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.928194][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: modprobe [ 10.928195][ T194] preempt_count: 1, expected: 0 [ 10.928196][ T194] RCU nest depth: 0, expected: 0 [ 10.928197][ T194] locks held by modprobe/194: 4, last CPU#0: [ 10.928199][ T194] #0: ffffffffa097ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.928215][ T194] #1: ffffffffa097de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.928220][ T194] #2: ffffffffa089d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.928224][ T194] #3: ffffffffa089d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.928228][ T194] irq event stamp: 33370 [ 10.928229][ T194] hardirqs last enabled at (33369): [] __down_trylock_console_sem+0x86/0xa0 [ 10.928233][ T194] hardirqs last disabled at (33370): [] console_emit_next_record+0x3d4/0x4c0 [ 10.928235][ T194] softirqs last enabled at (30670): [] handle_softirqs+0x67c/0x900 [ 10.928239][ T194] softirqs last disabled at (30663): [] __irq_exit_rcu+0x145/0x1c0 [ 10.928242][ T194] Preemption disabled at: [ 10.928242][ T194] [] vprintk_emit+0x31b/0x3e0 [ 10.928247][ T194] CPU: 0 UID: 0 PID: 194 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.928251][ T194] Tainted: [W]=WARN [ 10.928252][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.928253][ T194] Call Trace: [ 10.928255][ T194] [ 10.928256][ T194] dump_stack_lvl+0x6f/0xa0 [ 10.928262][ T194] ? vprintk_emit+0x31b/0x3e0 [ 10.928264][ T194] __might_resched.cold+0x1fe/0x2c1 [ 10.928269][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.928273][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 10.928278][ T194] __kmalloc_noprof+0x443/0x760 [ 10.928280][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 10.928287][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.928290][ T194] alloc_buf.isra.0+0x4b/0x260 [ 10.928294][ T194] put_chars+0x1e1/0x2f0 [ 10.928296][ T194] ? __send_to_port+0x420/0x420 [ 10.928298][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.928301][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.928304][ T194] ? validate_chain+0x38b/0xc20 [ 10.928309][ T194] hvc_console_print+0x292/0x780 [ 10.928313][ T194] ? __lock_acquire+0x518/0xc20 [ 10.928318][ T194] ? hvc_write+0x3a0/0x3a0 [ 10.928322][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.928326][ T194] console_emit_next_record+0x22f/0x4c0 [ 10.928330][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 10.928332][ T194] ? console_flush_one_record+0x106/0x710 [ 10.928336][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.928338][ T194] ? lock_acquire+0x13c/0x160 [ 10.928342][ T194] console_flush_one_record+0x46f/0x710 [ 10.928346][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 10.928348][ T194] ? __lock_acquire+0x518/0xc20 [ 10.928353][ T194] console_unlock+0xee/0x1f0 [ 10.928356][ T194] ? console_flush_one_record+0x710/0x710 [ 10.928358][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.928360][ T194] ? lock_acquire+0xe0/0x160 [ 10.928364][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.928366][ T194] ? vprintk_emit+0x320/0x3e0 [ 10.928368][ T194] vprintk_emit+0x37c/0x3e0 [ 10.928372][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 10.928377][ T194] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 10.928381][ T194] _printk+0xc7/0x100 [ 10.928385][ T194] ? snapshot_read.cold+0x21/0x21 [ 10.928391][ T194] ? do_one_initcall+0x113/0x4f0 [ 10.928394][ T194] pg_init+0x1d/0x1000 [pktgen] [ 10.928398][ T194] do_one_initcall+0x124/0x4f0 [ 10.928401][ T194] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.928406][ T194] ? do_init_module+0xae/0x8a0 [ 10.928408][ T194] ? kasan_unpoison+0x44/0x70 [ 10.928414][ T194] do_init_module+0x2ad/0x8a0 [ 10.928417][ T194] ? lockdep_hardirqs_on+0x91/0x130 [ 10.928421][ T194] ? free_module+0x470/0x470 [ 10.928424][ T194] ? kfree+0x123/0x590 [ 10.928428][ T194] load_module+0x1424/0x1bb0 [ 10.928435][ T194] ? security_kernel_post_read_file+0x2f/0x60 [ 10.928440][ T194] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.928443][ T194] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.928446][ T194] ? add_chain_cache+0x12d/0x590 [ 10.928451][ T194] init_module_from_file+0x11f/0x1a0 [ 10.928454][ T194] ? __do_sys_init_module+0x270/0x270 [ 10.928462][ T194] ? __rwlock_init+0x150/0x150 [ 10.928465][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.928469][ T194] idempotent_init_module+0x37b/0x7c0 [ 10.928471][ T194] ? init_module_from_file+0x1a0/0x1a0 [ 10.928477][ T194] ? cap_capable+0x1d7/0x3d0 [ 10.928479][ T194] ? __x64_sys_pread64+0x18d/0x250 [ 10.928485][ T194] __x64_sys_finit_module+0xdf/0x190 [ 10.928486][ T194] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.928490][ T194] do_syscall_64+0xff/0x530 [ 10.928493][ T194] ? exc_page_fault+0xee/0x100 [ 10.928496][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.928498][ T194] RIP: 0033:0x7faa37ece37d [ 10.928501][ 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.928503][ T194] RSP: 002b:00007ffc7ddaa868 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.928506][ T194] RAX: ffffffffffffffda RBX: 000055e4177b8700 RCX: 00007faa37ece37d [ 10.928507][ T194] RDX: 0000000000000000 RSI: 000055e40cce8ffd RDI: 0000000000000005 [ 10.928508][ T194] RBP: 00007ffc7ddaa900 R08: 0000000000000000 R09: 0000000000000000 [ 10.928509][ T194] R10: 0000000000000000 R11: 0000000000000246 R12: 000055e40cce8ffd [ 10.928510][ T194] R13: 000055e4177b8820 R14: 0000000000040000 R15: 0000000000000000 [ 10.928516][ T194] [ 11.267635][ T195] pktgen: interface: lo@0 is already stopped [ 12.446719][ T211] pktgen: wrong command format [ 12.446851][ T211] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 12.446854][ T211] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 211, name: proc_net_pktgen [ 12.446855][ T211] preempt_count: 1, expected: 0 [ 12.446856][ T211] RCU nest depth: 0, expected: 0 [ 12.446858][ T211] locks held by proc_net_pktgen/211: 5, last CPU#3: [ 12.446860][ T211] #0: ff1100000a71c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 12.446872][ T211] #1: ffffffffa097ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 12.446877][ T211] #2: ffffffffa097de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 12.446882][ T211] #3: ffffffffa089d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 12.446886][ T211] #4: ffffffffa089d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 12.446890][ T211] irq event stamp: 1010 [ 12.446891][ T211] hardirqs last enabled at (1009): [] __down_trylock_console_sem+0x86/0xa0 [ 12.446894][ T211] hardirqs last disabled at (1010): [] console_emit_next_record+0x3d4/0x4c0 [ 12.446896][ T211] softirqs last enabled at (940): [] handle_softirqs+0x67c/0x900 [ 12.446899][ T211] softirqs last disabled at (933): [] __irq_exit_rcu+0x145/0x1c0 [ 12.446902][ T211] Preemption disabled at: [ 12.446902][ T211] [] vprintk_emit+0x31b/0x3e0 [ 12.446907][ T211] CPU: 3 UID: 0 PID: 211 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 12.446911][ T211] Tainted: [W]=WARN [ 12.446911][ T211] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.446913][ T211] Call Trace: [ 12.446914][ T211] [ 12.446916][ T211] dump_stack_lvl+0x6f/0xa0 [ 12.446922][ T211] ? vprintk_emit+0x31b/0x3e0 [ 12.446924][ T211] __might_resched.cold+0x1fe/0x2c1 [ 12.446928][ T211] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 12.446932][ T211] ? __kmalloc_noprof+0xdb/0x760 [ 12.446936][ T211] __kmalloc_noprof+0x443/0x760 [ 12.446938][ T211] ? alloc_buf.isra.0+0x4b/0x260 [ 12.446945][ T211] ? do_raw_spin_unlock+0x59/0x250 [ 12.446948][ T211] alloc_buf.isra.0+0x4b/0x260 [ 12.446952][ T211] put_chars+0x1e1/0x2f0 [ 12.446954][ T211] ? __send_to_port+0x420/0x420 [ 12.446957][ T211] ? validate_chain+0x34a/0xc20 [ 12.446962][ T211] hvc_console_print+0x292/0x780 [ 12.446966][ T211] ? __lock_acquire+0x518/0xc20 [ 12.446968][ T211] ? __lock_acquire+0x518/0xc20 [ 12.446972][ T211] ? hvc_write+0x3a0/0x3a0 [ 12.446974][ T211] ? console_emit_next_record+0x1df/0x4c0 [ 12.446978][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.446980][ T211] ? lock_acquire+0x13c/0x160 [ 12.446984][ T211] console_emit_next_record+0x22f/0x4c0 [ 12.446988][ T211] ? devkmsg_read+0x4b0/0x4b0 [ 12.446990][ T211] ? console_flush_one_record+0x106/0x710 [ 12.446993][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.446995][ T211] ? lock_acquire+0x13c/0x160 [ 12.446999][ T211] console_flush_one_record+0x46f/0x710 [ 12.447003][ T211] ? console_emit_next_record+0x4c0/0x4c0 [ 12.447005][ T211] ? __lock_acquire+0x518/0xc20 [ 12.447010][ T211] console_unlock+0xee/0x1f0 [ 12.447013][ T211] ? console_flush_one_record+0x710/0x710 [ 12.447015][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.447016][ T211] ? lock_acquire+0xe0/0x160 [ 12.447020][ T211] ? __down_trylock_console_sem+0x5e/0xa0 [ 12.447022][ T211] ? vprintk_emit+0x320/0x3e0 [ 12.447025][ T211] vprintk_emit+0x37c/0x3e0 [ 12.447028][ T211] ? wake_up_klogd_work_func+0x90/0x90 [ 12.447030][ T211] ? __lock_acquire+0x518/0xc20 [ 12.447035][ T211] _printk+0xc7/0x100 [ 12.447038][ T211] ? snapshot_read.cold+0x21/0x21 [ 12.447041][ T211] ? lock_acquire.part.0+0xd4/0x280 [ 12.447045][ T211] ? __lock_release.isra.0+0xb3/0x1a0 [ 12.447049][ T211] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 12.447053][ T211] ? __lock_release.isra.0+0x69/0x1a0 [ 12.447058][ T211] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 12.447060][ T211] ? file_update_time_flags+0x197/0x4a0 [ 12.447065][ T211] ? fault_dirty_shared_page+0x229/0x4b0 [ 12.447069][ T211] ? do_pte_missing+0x22c/0xcc0 [ 12.447074][ T211] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 12.447076][ T211] ? rcu_read_lock_any_held+0x3c/0x90 [ 12.447079][ T211] ? validate_chain+0x38b/0xc20 [ 12.447082][ T211] ? mksaveddirty_shift+0x30/0x30 [ 12.447087][ T211] ? lock_acquire.part.0+0xd4/0x280 [ 12.447089][ T211] ? ksys_write+0x116/0x250 [ 12.447093][ T211] proc_reg_write+0x1bc/0x3b0 [ 12.447099][ T211] vfs_write+0x186/0x970 [ 12.447102][ T211] ksys_write+0x116/0x250 [ 12.447105][ T211] ? __ia32_sys_read+0xc0/0xc0 [ 12.447107][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.447109][ T211] ? rcu_is_watching+0x16/0xd0 [ 12.447112][ T211] do_syscall_64+0xff/0x530 [ 12.447116][ T211] ? exc_page_fault+0xee/0x100 [ 12.447119][ T211] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 12.447121][ T211] RIP: 0033:0x7f39f34dd54e [ 12.447124][ 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.447126][ T211] RSP: 002b:00007ffcabd6b450 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 12.447129][ T211] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f39f34dd54e [ 12.447130][ T211] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 12.447131][ T211] RBP: 00007ffcabd6b460 R08: 0000000000000000 R09: 0000000000000000 [ 12.447132][ T211] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffcabd6b950 [ 12.447133][ T211] R13: 0000000100000001 R14: 00007f39f3466000 R15: 00007f39f3466000 [ 12.447140][ T211]