[ 9.365005][ T194] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 9.365025][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.365027][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: modprobe [ 9.365029][ T194] preempt_count: 1, expected: 0 [ 9.365030][ T194] RCU nest depth: 0, expected: 0 [ 9.365030][ T194] locks held by modprobe/194: 4, last CPU#0: [ 9.365032][ T194] #0: ffffffffb477ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.365044][ T194] #1: ffffffffb477de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.365049][ T194] #2: ffffffffb469d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.365053][ T194] #3: ffffffffb469d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.365057][ T194] irq event stamp: 46820 [ 9.365058][ T194] hardirqs last enabled at (46819): [] __down_trylock_console_sem+0x86/0xa0 [ 9.365061][ T194] hardirqs last disabled at (46820): [] console_emit_next_record+0x3d4/0x4c0 [ 9.365063][ T194] softirqs last enabled at (44946): [] handle_softirqs+0x67c/0x900 [ 9.365066][ T194] softirqs last disabled at (44937): [] __irq_exit_rcu+0x145/0x1c0 [ 9.365069][ T194] Preemption disabled at: [ 9.365069][ T194] [] vprintk_emit+0x31b/0x3e0 [ 9.365075][ T194] CPU: 0 UID: 0 PID: 194 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.365078][ T194] Tainted: [W]=WARN [ 9.365079][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.365081][ T194] Call Trace: [ 9.365082][ T194] [ 9.365084][ T194] dump_stack_lvl+0x6f/0xa0 [ 9.365090][ T194] ? vprintk_emit+0x31b/0x3e0 [ 9.365091][ T194] __might_resched.cold+0x1fe/0x2c1 [ 9.365096][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.365100][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 9.365105][ T194] __kmalloc_noprof+0x443/0x760 [ 9.365107][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 9.365114][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 9.365116][ T194] alloc_buf.isra.0+0x4b/0x260 [ 9.365120][ T194] put_chars+0x1e1/0x2f0 [ 9.365123][ T194] ? __send_to_port+0x420/0x420 [ 9.365124][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.365127][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.365132][ T194] ? validate_chain+0x38b/0xc20 [ 9.365137][ T194] hvc_console_print+0x292/0x780 [ 9.365141][ T194] ? __lock_acquire+0x518/0xc20 [ 9.365146][ T194] ? hvc_write+0x3a0/0x3a0 [ 9.365149][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.365154][ T194] console_emit_next_record+0x22f/0x4c0 [ 9.365158][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 9.365159][ T194] ? console_flush_one_record+0x106/0x710 [ 9.365162][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.365164][ T194] ? lock_acquire+0x13c/0x160 [ 9.365168][ T194] console_flush_one_record+0x46f/0x710 [ 9.365172][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 9.365174][ T194] ? __lock_acquire+0x518/0xc20 [ 9.365179][ T194] console_unlock+0xee/0x1f0 [ 9.365182][ T194] ? console_flush_one_record+0x710/0x710 [ 9.365184][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.365185][ T194] ? lock_acquire+0xe0/0x160 [ 9.365189][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.365190][ T194] ? vprintk_emit+0x320/0x3e0 [ 9.365193][ T194] vprintk_emit+0x37c/0x3e0 [ 9.365196][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 9.365201][ T194] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 9.365205][ T194] _printk+0xc7/0x100 [ 9.365209][ T194] ? snapshot_read.cold+0x21/0x21 [ 9.365215][ T194] ? do_one_initcall+0x113/0x4f0 [ 9.365218][ T194] pg_init+0x1d/0x1000 [pktgen] [ 9.365221][ T194] do_one_initcall+0x124/0x4f0 [ 9.365224][ T194] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 9.365229][ T194] ? do_init_module+0xae/0x8a0 [ 9.365231][ T194] ? kasan_unpoison+0x44/0x70 [ 9.365237][ T194] do_init_module+0x2ad/0x8a0 [ 9.365240][ T194] ? lockdep_hardirqs_on+0x91/0x130 [ 9.365244][ T194] ? free_module+0x470/0x470 [ 9.365246][ T194] ? kfree+0x123/0x590 [ 9.365250][ T194] load_module+0x1424/0x1bb0 [ 9.365255][ T194] ? security_kernel_post_read_file+0x2f/0x60 [ 9.365260][ T194] ? layout_and_allocate.isra.0+0x680/0x680 [ 9.365263][ T194] ? __ia32_sys_fsconfig+0x180/0x180 [ 9.365266][ T194] ? add_chain_cache+0x12d/0x590 [ 9.365272][ T194] init_module_from_file+0x11f/0x1a0 [ 9.365274][ T194] ? __do_sys_init_module+0x270/0x270 [ 9.365282][ T194] ? __rwlock_init+0x150/0x150 [ 9.365285][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 9.365288][ T194] idempotent_init_module+0x37b/0x7c0 [ 9.365291][ T194] ? init_module_from_file+0x1a0/0x1a0 [ 9.365296][ T194] ? cap_capable+0x1d7/0x3d0 [ 9.365299][ T194] ? __x64_sys_pread64+0x18d/0x250 [ 9.365304][ T194] __x64_sys_finit_module+0xdf/0x190 [ 9.365305][ T194] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.365310][ T194] do_syscall_64+0xff/0x530 [ 9.365312][ T194] ? exc_page_fault+0xee/0x100 [ 9.365315][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.365317][ T194] RIP: 0033:0x7faeb3cb637d [ 9.365320][ 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.365322][ T194] RSP: 002b:00007fffcfdd7828 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 9.365325][ T194] RAX: ffffffffffffffda RBX: 0000562ec4a3a700 RCX: 00007faeb3cb637d [ 9.365326][ T194] RDX: 0000000000000000 RSI: 0000562ebf935ffd RDI: 0000000000000005 [ 9.365327][ T194] RBP: 00007fffcfdd78c0 R08: 0000000000000000 R09: 0000000000000000 [ 9.365328][ T194] R10: 0000000000000000 R11: 0000000000000246 R12: 0000562ebf935ffd [ 9.365328][ T194] R13: 0000562ec4a3a820 R14: 0000000000040000 R15: 0000000000000000 [ 9.365335][ T194] [ 9.697140][ T195] pktgen: interface: lo@0 is already stopped [ 10.801901][ T209] pktgen: wrong command format [ 10.802050][ T209] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.802053][ T209] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 209, name: proc_net_pktgen [ 10.802055][ T209] preempt_count: 1, expected: 0 [ 10.802055][ T209] RCU nest depth: 0, expected: 0 [ 10.802056][ T209] locks held by proc_net_pktgen/209: 5, last CPU#1: [ 10.802058][ T209] #0: ff1100000a70c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.802071][ T209] #1: ffffffffb477ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.802076][ T209] #2: ffffffffb477de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.802080][ T209] #3: ffffffffb469d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.802084][ T209] #4: ffffffffb469d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.802088][ T209] irq event stamp: 1058 [ 10.802088][ T209] hardirqs last enabled at (1057): [] __down_trylock_console_sem+0x86/0xa0 [ 10.802091][ T209] hardirqs last disabled at (1058): [] console_emit_next_record+0x3d4/0x4c0 [ 10.802093][ T209] softirqs last enabled at (340): [] fpu_clone+0xd9/0x410 [ 10.802097][ T209] softirqs last disabled at (338): [] fpu_clone+0x82/0x410 [ 10.802099][ T209] Preemption disabled at: [ 10.802100][ T209] [] vprintk_emit+0x31b/0x3e0 [ 10.802105][ T209] CPU: 1 UID: 0 PID: 209 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.802109][ T209] Tainted: [W]=WARN [ 10.802109][ T209] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.802111][ T209] Call Trace: [ 10.802113][ T209] [ 10.802114][ T209] dump_stack_lvl+0x6f/0xa0 [ 10.802120][ T209] ? vprintk_emit+0x31b/0x3e0 [ 10.802121][ T209] __might_resched.cold+0x1fe/0x2c1 [ 10.802130][ T209] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.802134][ T209] ? __kmalloc_noprof+0xdb/0x760 [ 10.802138][ T209] __kmalloc_noprof+0x443/0x760 [ 10.802140][ T209] ? alloc_buf.isra.0+0x4b/0x260 [ 10.802147][ T209] ? do_raw_spin_unlock+0x59/0x250 [ 10.802150][ T209] alloc_buf.isra.0+0x4b/0x260 [ 10.802153][ T209] put_chars+0x1e1/0x2f0 [ 10.802155][ T209] ? __send_to_port+0x420/0x420 [ 10.802159][ T209] ? validate_chain+0x34a/0xc20 [ 10.802163][ T209] hvc_console_print+0x292/0x780 [ 10.802167][ T209] ? __lock_acquire+0x518/0xc20 [ 10.802169][ T209] ? __lock_acquire+0x518/0xc20 [ 10.802173][ T209] ? hvc_write+0x3a0/0x3a0 [ 10.802175][ T209] ? console_emit_next_record+0x1df/0x4c0 [ 10.802178][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.802181][ T209] ? lock_acquire+0x13c/0x160 [ 10.802185][ T209] console_emit_next_record+0x22f/0x4c0 [ 10.802189][ T209] ? devkmsg_read+0x4b0/0x4b0 [ 10.802190][ T209] ? console_flush_one_record+0x106/0x710 [ 10.802194][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.802195][ T209] ? lock_acquire+0x13c/0x160 [ 10.802199][ T209] console_flush_one_record+0x46f/0x710 [ 10.802203][ T209] ? console_emit_next_record+0x4c0/0x4c0 [ 10.802205][ T209] ? __lock_acquire+0x518/0xc20 [ 10.802210][ T209] console_unlock+0xee/0x1f0 [ 10.802213][ T209] ? console_flush_one_record+0x710/0x710 [ 10.802215][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.802217][ T209] ? lock_acquire+0xe0/0x160 [ 10.802220][ T209] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.802222][ T209] ? vprintk_emit+0x320/0x3e0 [ 10.802225][ T209] vprintk_emit+0x37c/0x3e0 [ 10.802228][ T209] ? wake_up_klogd_work_func+0x90/0x90 [ 10.802230][ T209] ? __lock_acquire+0x518/0xc20 [ 10.802234][ T209] _printk+0xc7/0x100 [ 10.802237][ T209] ? snapshot_read.cold+0x21/0x21 [ 10.802240][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 10.802244][ T209] ? __lock_release.isra.0+0xb3/0x1a0 [ 10.802248][ T209] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 10.802252][ T209] ? __lock_release.isra.0+0x69/0x1a0 [ 10.802257][ T209] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 10.802259][ T209] ? file_update_time_flags+0x197/0x4a0 [ 10.802263][ T209] ? fault_dirty_shared_page+0x229/0x4b0 [ 10.802268][ T209] ? do_pte_missing+0x22c/0xcc0 [ 10.802272][ T209] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.802274][ T209] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.802276][ T209] ? validate_chain+0x38b/0xc20 [ 10.802279][ T209] ? mksaveddirty_shift+0x30/0x30 [ 10.802285][ T209] ? lock_acquire.part.0+0xd4/0x280 [ 10.802287][ T209] ? ksys_write+0x116/0x250 [ 10.802291][ T209] proc_reg_write+0x1bc/0x3b0 [ 10.802295][ T209] vfs_write+0x186/0x970 [ 10.802299][ T209] ksys_write+0x116/0x250 [ 10.802301][ T209] ? __ia32_sys_read+0xc0/0xc0 [ 10.802303][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.802305][ T209] ? rcu_is_watching+0x16/0xd0 [ 10.802308][ T209] do_syscall_64+0xff/0x530 [ 10.802312][ T209] ? exc_page_fault+0xee/0x100 [ 10.802314][ T209] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.802316][ T209] RIP: 0033:0x7fcb8c76854e [ 10.802320][ 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.802321][ T209] RSP: 002b:00007ffe4a6db670 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.802324][ T209] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcb8c76854e [ 10.802325][ T209] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 10.802326][ T209] RBP: 00007ffe4a6db680 R08: 0000000000000000 R09: 0000000000000000 [ 10.802327][ T209] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe4a6dbb70 [ 10.802328][ T209] R13: 0000000100000001 R14: 00007fcb8c6f1000 R15: 00007fcb8c6f1000 [ 10.802334][ T209]