[ 10.436898][ T194] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 10.436918][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.436920][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: modprobe [ 10.436922][ T194] preempt_count: 1, expected: 0 [ 10.436923][ T194] RCU nest depth: 0, expected: 0 [ 10.436924][ T194] locks held by modprobe/194: 4, last CPU#2: [ 10.436926][ T194] #0: ffffffffa0d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.436937][ T194] #1: ffffffffa0d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.436942][ T194] #2: ffffffffa0c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.436946][ T194] #3: ffffffffa0c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.436950][ T194] irq event stamp: 46150 [ 10.436951][ T194] hardirqs last enabled at (46149): [] __down_trylock_console_sem+0x86/0xa0 [ 10.436954][ T194] hardirqs last disabled at (46150): [] console_emit_next_record+0x3d4/0x4c0 [ 10.436956][ T194] softirqs last enabled at (44354): [] handle_softirqs+0x67c/0x900 [ 10.436960][ T194] softirqs last disabled at (43969): [] __irq_exit_rcu+0x145/0x1c0 [ 10.436962][ T194] Preemption disabled at: [ 10.436963][ T194] [] vprintk_emit+0x31b/0x3e0 [ 10.436968][ T194] CPU: 2 UID: 0 PID: 194 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.436971][ T194] Tainted: [W]=WARN [ 10.436972][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.436974][ T194] Call Trace: [ 10.436975][ T194] [ 10.436977][ T194] dump_stack_lvl+0x6f/0xa0 [ 10.436983][ T194] ? vprintk_emit+0x31b/0x3e0 [ 10.436984][ T194] __might_resched.cold+0x1fe/0x2c1 [ 10.436988][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.436993][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 10.436997][ T194] __kmalloc_noprof+0x443/0x760 [ 10.436999][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 10.437005][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.437008][ T194] alloc_buf.isra.0+0x4b/0x260 [ 10.437011][ T194] put_chars+0x1e1/0x2f0 [ 10.437014][ T194] ? __send_to_port+0x420/0x420 [ 10.437015][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.437019][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.437021][ T194] ? validate_chain+0x38b/0xc20 [ 10.437027][ T194] hvc_console_print+0x292/0x780 [ 10.437031][ T194] ? __lock_acquire+0x518/0xc20 [ 10.437035][ T194] ? hvc_write+0x3a0/0x3a0 [ 10.437039][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.437045][ T194] console_emit_next_record+0x22f/0x4c0 [ 10.437049][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 10.437051][ T194] ? console_flush_one_record+0x106/0x710 [ 10.437054][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.437055][ T194] ? lock_acquire+0x13c/0x160 [ 10.437059][ T194] console_flush_one_record+0x46f/0x710 [ 10.437063][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 10.437065][ T194] ? __lock_acquire+0x518/0xc20 [ 10.437070][ T194] console_unlock+0xee/0x1f0 [ 10.437073][ T194] ? console_flush_one_record+0x710/0x710 [ 10.437075][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.437077][ T194] ? lock_acquire+0xe0/0x160 [ 10.437080][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.437082][ T194] ? vprintk_emit+0x320/0x3e0 [ 10.437085][ T194] vprintk_emit+0x37c/0x3e0 [ 10.437088][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 10.437093][ T194] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 10.437097][ T194] _printk+0xc7/0x100 [ 10.437101][ T194] ? snapshot_read.cold+0x21/0x21 [ 10.437107][ T194] ? do_one_initcall+0x113/0x4f0 [ 10.437110][ T194] pg_init+0x1d/0x1000 [pktgen] [ 10.437113][ T194] do_one_initcall+0x124/0x4f0 [ 10.437116][ T194] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.437121][ T194] ? do_init_module+0xae/0x8a0 [ 10.437123][ T194] ? kasan_unpoison+0x44/0x70 [ 10.437129][ T194] do_init_module+0x2ad/0x8a0 [ 10.437131][ T194] ? lockdep_hardirqs_on+0x91/0x130 [ 10.437135][ T194] ? free_module+0x470/0x470 [ 10.437138][ T194] ? kfree+0x123/0x590 [ 10.437141][ T194] load_module+0x1424/0x1bb0 [ 10.437146][ T194] ? security_kernel_post_read_file+0x2f/0x60 [ 10.437151][ T194] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.437154][ T194] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.437157][ T194] ? add_chain_cache+0x12d/0x590 [ 10.437162][ T194] init_module_from_file+0x11f/0x1a0 [ 10.437165][ T194] ? __do_sys_init_module+0x270/0x270 [ 10.437172][ T194] ? __rwlock_init+0x150/0x150 [ 10.437175][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.437178][ T194] idempotent_init_module+0x37b/0x7c0 [ 10.437181][ T194] ? init_module_from_file+0x1a0/0x1a0 [ 10.437186][ T194] ? cap_capable+0x1d7/0x3d0 [ 10.437189][ T194] ? __x64_sys_pread64+0x18d/0x250 [ 10.437194][ T194] __x64_sys_finit_module+0xdf/0x190 [ 10.437195][ T194] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.437199][ T194] do_syscall_64+0xff/0x530 [ 10.437202][ T194] ? exc_page_fault+0xee/0x100 [ 10.437205][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.437207][ T194] RIP: 0033:0x7fe07a92b37d [ 10.437214][ 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.437216][ T194] RSP: 002b:00007ffed6063d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.437219][ T194] RAX: ffffffffffffffda RBX: 000055c4ce601700 RCX: 00007fe07a92b37d [ 10.437220][ T194] RDX: 0000000000000000 RSI: 000055c493b18ffd RDI: 0000000000000005 [ 10.437221][ T194] RBP: 00007ffed6063e10 R08: 0000000000000000 R09: 0000000000000000 [ 10.437222][ T194] R10: 0000000000000000 R11: 0000000000000246 R12: 000055c493b18ffd [ 10.437222][ T194] R13: 000055c4ce601820 R14: 0000000000040000 R15: 0000000000000000 [ 10.437229][ T194] [ 10.775052][ T195] pktgen: interface: lo@0 is already stopped [ 11.886847][ T210] pktgen: wrong command format [ 11.886992][ T210] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.886994][ T210] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 210, name: proc_net_pktgen [ 11.886996][ T210] preempt_count: 1, expected: 0 [ 11.886996][ T210] RCU nest depth: 0, expected: 0 [ 11.886997][ T210] locks held by proc_net_pktgen/210: 5, last CPU#1: [ 11.886999][ T210] #0: ff11000011f5c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 11.887011][ T210] #1: ffffffffa0d7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.887017][ T210] #2: ffffffffa0d7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.887021][ T210] #3: ffffffffa0c9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.887025][ T210] #4: ffffffffa0c9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.887029][ T210] irq event stamp: 1058 [ 11.887030][ T210] hardirqs last enabled at (1057): [] __down_trylock_console_sem+0x86/0xa0 [ 11.887033][ T210] hardirqs last disabled at (1058): [] console_emit_next_record+0x3d4/0x4c0 [ 11.887035][ T210] softirqs last enabled at (622): [] handle_softirqs+0x67c/0x900 [ 11.887043][ T210] softirqs last disabled at (617): [] __irq_exit_rcu+0x145/0x1c0 [ 11.887046][ T210] Preemption disabled at: [ 11.887047][ T210] [] vprintk_emit+0x31b/0x3e0 [ 11.887052][ T210] CPU: 1 UID: 0 PID: 210 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.887055][ T210] Tainted: [W]=WARN [ 11.887056][ T210] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.887058][ T210] Call Trace: [ 11.887059][ T210] [ 11.887061][ T210] dump_stack_lvl+0x6f/0xa0 [ 11.887067][ T210] ? vprintk_emit+0x31b/0x3e0 [ 11.887069][ T210] __might_resched.cold+0x1fe/0x2c1 [ 11.887073][ T210] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.887077][ T210] ? __kmalloc_noprof+0xdb/0x760 [ 11.887081][ T210] __kmalloc_noprof+0x443/0x760 [ 11.887083][ T210] ? alloc_buf.isra.0+0x4b/0x260 [ 11.887090][ T210] ? do_raw_spin_unlock+0x59/0x250 [ 11.887093][ T210] alloc_buf.isra.0+0x4b/0x260 [ 11.887097][ T210] put_chars+0x1e1/0x2f0 [ 11.887099][ T210] ? __send_to_port+0x420/0x420 [ 11.887103][ T210] ? validate_chain+0x34a/0xc20 [ 11.887107][ T210] hvc_console_print+0x292/0x780 [ 11.887111][ T210] ? __lock_acquire+0x518/0xc20 [ 11.887113][ T210] ? __lock_acquire+0x518/0xc20 [ 11.887117][ T210] ? hvc_write+0x3a0/0x3a0 [ 11.887119][ T210] ? console_emit_next_record+0x1df/0x4c0 [ 11.887123][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.887125][ T210] ? lock_acquire+0x13c/0x160 [ 11.887129][ T210] console_emit_next_record+0x22f/0x4c0 [ 11.887133][ T210] ? devkmsg_read+0x4b0/0x4b0 [ 11.887135][ T210] ? console_flush_one_record+0x106/0x710 [ 11.887138][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.887140][ T210] ? lock_acquire+0x13c/0x160 [ 11.887144][ T210] console_flush_one_record+0x46f/0x710 [ 11.887148][ T210] ? console_emit_next_record+0x4c0/0x4c0 [ 11.887150][ T210] ? __lock_acquire+0x518/0xc20 [ 11.887155][ T210] console_unlock+0xee/0x1f0 [ 11.887158][ T210] ? console_flush_one_record+0x710/0x710 [ 11.887160][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.887162][ T210] ? lock_acquire+0xe0/0x160 [ 11.887165][ T210] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.887167][ T210] ? vprintk_emit+0x320/0x3e0 [ 11.887170][ T210] vprintk_emit+0x37c/0x3e0 [ 11.887173][ T210] ? wake_up_klogd_work_func+0x90/0x90 [ 11.887175][ T210] ? __lock_acquire+0x518/0xc20 [ 11.887180][ T210] _printk+0xc7/0x100 [ 11.887183][ T210] ? snapshot_read.cold+0x21/0x21 [ 11.887186][ T210] ? lock_acquire.part.0+0xd4/0x280 [ 11.887190][ T210] ? __lock_release.isra.0+0xb3/0x1a0 [ 11.887194][ T210] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 11.887198][ T210] ? __lock_release.isra.0+0x69/0x1a0 [ 11.887203][ T210] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 11.887206][ T210] ? file_update_time_flags+0x197/0x4a0 [ 11.887210][ T210] ? fault_dirty_shared_page+0x229/0x4b0 [ 11.887214][ T210] ? do_pte_missing+0x22c/0xcc0 [ 11.887223][ T210] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.887226][ T210] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.887228][ T210] ? validate_chain+0x38b/0xc20 [ 11.887231][ T210] ? mksaveddirty_shift+0x30/0x30 [ 11.887237][ T210] ? lock_acquire.part.0+0xd4/0x280 [ 11.887239][ T210] ? ksys_write+0x116/0x250 [ 11.887243][ T210] proc_reg_write+0x1bc/0x3b0 [ 11.887248][ T210] vfs_write+0x186/0x970 [ 11.887252][ T210] ksys_write+0x116/0x250 [ 11.887255][ T210] ? __ia32_sys_read+0xc0/0xc0 [ 11.887257][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.887258][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.887261][ T210] do_syscall_64+0xff/0x530 [ 11.887265][ T210] ? exc_page_fault+0xee/0x100 [ 11.887268][ T210] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.887270][ T210] RIP: 0033:0x7f399a4a754e [ 11.887274][ 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.887275][ T210] RSP: 002b:00007ffc4c121160 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.887278][ T210] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f399a4a754e [ 11.887279][ T210] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 11.887280][ T210] RBP: 00007ffc4c121170 R08: 0000000000000000 R09: 0000000000000000 [ 11.887281][ T210] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffc4c121660 [ 11.887281][ T210] R13: 0000000100000001 R14: 00007f399a430000 R15: 00007f399a430000 [ 11.887288][ T210]