[ 10.300001][ T194] pktgen: Packet Generator for packet performance testing. Version: 2.75 [ 10.300023][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.300025][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: modprobe [ 10.300028][ T194] preempt_count: 1, expected: 0 [ 10.300029][ T194] RCU nest depth: 0, expected: 0 [ 10.300030][ T194] locks held by modprobe/194: 4, last CPU#3: [ 10.300033][ T194] #0: ffffffffac37ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.300046][ T194] #1: ffffffffac37de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.300053][ T194] #2: ffffffffac29d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.300059][ T194] #3: ffffffffac29d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.300065][ T194] irq event stamp: 48558 [ 10.300066][ T194] hardirqs last enabled at (48557): [] __down_trylock_console_sem+0x86/0xa0 [ 10.300070][ T194] hardirqs last disabled at (48558): [] console_emit_next_record+0x3d4/0x4c0 [ 10.300073][ T194] softirqs last enabled at (46152): [] handle_softirqs+0x67c/0x900 [ 10.300078][ T194] softirqs last disabled at (45973): [] __irq_exit_rcu+0x145/0x1c0 [ 10.300081][ T194] Preemption disabled at: [ 10.300082][ T194] [] vprintk_emit+0x31b/0x3e0 [ 10.300088][ T194] CPU: 3 UID: 0 PID: 194 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.300093][ T194] Tainted: [W]=WARN [ 10.300094][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.300096][ T194] Call Trace: [ 10.300098][ T194] [ 10.300100][ T194] dump_stack_lvl+0x6f/0xa0 [ 10.300107][ T194] ? vprintk_emit+0x31b/0x3e0 [ 10.300110][ T194] __might_resched.cold+0x1fe/0x2c1 [ 10.300116][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.300121][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 10.300127][ T194] __kmalloc_noprof+0x443/0x760 [ 10.300131][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 10.300140][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.300144][ T194] alloc_buf.isra.0+0x4b/0x260 [ 10.300150][ T194] put_chars+0x1e1/0x2f0 [ 10.300154][ T194] ? __send_to_port+0x420/0x420 [ 10.300156][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.300161][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.300165][ T194] ? validate_chain+0x38b/0xc20 [ 10.300173][ T194] hvc_console_print+0x292/0x780 [ 10.300178][ T194] ? __lock_acquire+0x518/0xc20 [ 10.300186][ T194] ? hvc_write+0x3a0/0x3a0 [ 10.300191][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.300199][ T194] console_emit_next_record+0x22f/0x4c0 [ 10.300205][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 10.300208][ T194] ? console_flush_one_record+0x106/0x710 [ 10.300213][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.300216][ T194] ? lock_acquire+0x13c/0x160 [ 10.300223][ T194] console_flush_one_record+0x46f/0x710 [ 10.300230][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 10.300232][ T194] ? __lock_acquire+0x518/0xc20 [ 10.300242][ T194] console_unlock+0xee/0x1f0 [ 10.300246][ T194] ? console_flush_one_record+0x710/0x710 [ 10.300249][ T194] ? rcu_is_watching+0x16/0xd0 [ 10.300251][ T194] ? lock_acquire+0xe0/0x160 [ 10.300258][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.300260][ T194] ? vprintk_emit+0x320/0x3e0 [ 10.300265][ T194] vprintk_emit+0x37c/0x3e0 [ 10.300271][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 10.300280][ T194] ? pg_cleanup+0xb10/0xb10 [pktgen] [ 10.300285][ T194] _printk+0xc7/0x100 [ 10.300290][ T194] ? snapshot_read.cold+0x21/0x21 [ 10.300301][ T194] ? do_one_initcall+0x113/0x4f0 [ 10.300306][ T194] pg_init+0x1d/0x1000 [pktgen] [ 10.300311][ T194] do_one_initcall+0x124/0x4f0 [ 10.300315][ T194] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.300323][ T194] ? do_init_module+0xae/0x8a0 [ 10.300327][ T194] ? kasan_unpoison+0x44/0x70 [ 10.300340][ T194] do_init_module+0x2ad/0x8a0 [ 10.300346][ T194] ? lockdep_hardirqs_on+0x91/0x130 [ 10.300351][ T194] ? free_module+0x470/0x470 [ 10.300355][ T194] ? kfree+0x123/0x590 [ 10.300362][ T194] load_module+0x1424/0x1bb0 [ 10.300371][ T194] ? security_kernel_post_read_file+0x2f/0x60 [ 10.300377][ T194] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.300383][ T194] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.300387][ T194] ? add_chain_cache+0x12d/0x590 [ 10.300397][ T194] init_module_from_file+0x11f/0x1a0 [ 10.300401][ T194] ? __do_sys_init_module+0x270/0x270 [ 10.300415][ T194] ? __rwlock_init+0x150/0x150 [ 10.300421][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 10.300426][ T194] idempotent_init_module+0x37b/0x7c0 [ 10.300431][ T194] ? init_module_from_file+0x1a0/0x1a0 [ 10.300440][ T194] ? cap_capable+0x1d7/0x3d0 [ 10.300444][ T194] ? __x64_sys_pread64+0x18d/0x250 [ 10.300453][ T194] __x64_sys_finit_module+0xdf/0x190 [ 10.300455][ T194] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.300461][ T194] do_syscall_64+0xff/0x530 [ 10.300464][ T194] ? exc_page_fault+0xee/0x100 [ 10.300468][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.300472][ T194] RIP: 0033:0x7f521480737d [ 10.300476][ 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.300479][ T194] RSP: 002b:00007ffc0fdee678 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.300483][ T194] RAX: ffffffffffffffda RBX: 000055a18ee95700 RCX: 00007f521480737d [ 10.300485][ T194] RDX: 0000000000000000 RSI: 000055a173a96ffd RDI: 0000000000000005 [ 10.300486][ T194] RBP: 00007ffc0fdee710 R08: 0000000000000000 R09: 0000000000000000 [ 10.300488][ T194] R10: 0000000000000000 R11: 0000000000000246 R12: 000055a173a96ffd [ 10.300490][ T194] R13: 000055a18ee95820 R14: 0000000000040000 R15: 0000000000000000 [ 10.300502][ T194] [ 10.647984][ T195] pktgen: interface: lo@0 is already stopped [ 11.832471][ T210] pktgen: wrong command format [ 11.832575][ T210] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.832577][ T210] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 210, name: proc_net_pktgen [ 11.832579][ T210] preempt_count: 1, expected: 0 [ 11.832579][ T210] RCU nest depth: 0, expected: 0 [ 11.832580][ T210] locks held by proc_net_pktgen/210: 5, last CPU#2: [ 11.832582][ T210] #0: ff1100000a759438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 11.832595][ T210] #1: ffffffffac37ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.832600][ T210] #2: ffffffffac37de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.832604][ T210] #3: ffffffffac29d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.832608][ T210] #4: ffffffffac29d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.832612][ T210] irq event stamp: 1076 [ 11.832613][ T210] hardirqs last enabled at (1075): [] __down_trylock_console_sem+0x86/0xa0 [ 11.832616][ T210] hardirqs last disabled at (1076): [] console_emit_next_record+0x3d4/0x4c0 [ 11.832618][ T210] softirqs last enabled at (834): [] handle_softirqs+0x67c/0x900 [ 11.832621][ T210] softirqs last disabled at (827): [] __irq_exit_rcu+0x145/0x1c0 [ 11.832624][ T210] Preemption disabled at: [ 11.832624][ T210] [] vprintk_emit+0x31b/0x3e0 [ 11.832630][ T210] CPU: 2 UID: 0 PID: 210 Comm: proc_net_pktgen Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.832633][ T210] Tainted: [W]=WARN [ 11.832634][ T210] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.832636][ T210] Call Trace: [ 11.832637][ T210] [ 11.832639][ T210] dump_stack_lvl+0x6f/0xa0 [ 11.832645][ T210] ? vprintk_emit+0x31b/0x3e0 [ 11.832647][ T210] __might_resched.cold+0x1fe/0x2c1 [ 11.832651][ T210] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.832655][ T210] ? __kmalloc_noprof+0xdb/0x760 [ 11.832659][ T210] __kmalloc_noprof+0x443/0x760 [ 11.832661][ T210] ? alloc_buf.isra.0+0x4b/0x260 [ 11.832668][ T210] ? do_raw_spin_unlock+0x59/0x250 [ 11.832671][ T210] alloc_buf.isra.0+0x4b/0x260 [ 11.832674][ T210] put_chars+0x1e1/0x2f0 [ 11.832677][ T210] ? __send_to_port+0x420/0x420 [ 11.832680][ T210] ? validate_chain+0x34a/0xc20 [ 11.832685][ T210] hvc_console_print+0x292/0x780 [ 11.832688][ T210] ? __lock_acquire+0x518/0xc20 [ 11.832690][ T210] ? __lock_acquire+0x518/0xc20 [ 11.832695][ T210] ? hvc_write+0x3a0/0x3a0 [ 11.832697][ T210] ? console_emit_next_record+0x1df/0x4c0 [ 11.832700][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.832703][ T210] ? lock_acquire+0x13c/0x160 [ 11.832706][ T210] console_emit_next_record+0x22f/0x4c0 [ 11.832710][ T210] ? devkmsg_read+0x4b0/0x4b0 [ 11.832712][ T210] ? console_flush_one_record+0x106/0x710 [ 11.832715][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.832717][ T210] ? lock_acquire+0x13c/0x160 [ 11.832721][ T210] console_flush_one_record+0x46f/0x710 [ 11.832725][ T210] ? console_emit_next_record+0x4c0/0x4c0 [ 11.832727][ T210] ? __lock_acquire+0x518/0xc20 [ 11.832732][ T210] console_unlock+0xee/0x1f0 [ 11.832735][ T210] ? console_flush_one_record+0x710/0x710 [ 11.832737][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.832738][ T210] ? lock_acquire+0xe0/0x160 [ 11.832742][ T210] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.832744][ T210] ? vprintk_emit+0x320/0x3e0 [ 11.832746][ T210] vprintk_emit+0x37c/0x3e0 [ 11.832749][ T210] ? wake_up_klogd_work_func+0x90/0x90 [ 11.832751][ T210] ? __lock_acquire+0x518/0xc20 [ 11.832756][ T210] _printk+0xc7/0x100 [ 11.832759][ T210] ? snapshot_read.cold+0x21/0x21 [ 11.832762][ T210] ? lock_acquire.part.0+0xd4/0x280 [ 11.832766][ T210] ? __lock_release.isra.0+0xb3/0x1a0 [ 11.832770][ T210] pktgen_if_write.cold+0xda/0xf3 [pktgen] [ 11.832775][ T210] ? __lock_release.isra.0+0x69/0x1a0 [ 11.832780][ T210] ? pktgen_thread_worker+0xd70/0xd70 [pktgen] [ 11.832782][ T210] ? file_update_time_flags+0x197/0x4a0 [ 11.832787][ T210] ? fault_dirty_shared_page+0x229/0x4b0 [ 11.832791][ T210] ? do_pte_missing+0x22c/0xcc0 [ 11.832796][ T210] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.832798][ T210] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.832800][ T210] ? validate_chain+0x38b/0xc20 [ 11.832803][ T210] ? mksaveddirty_shift+0x30/0x30 [ 11.832809][ T210] ? lock_acquire.part.0+0xd4/0x280 [ 11.832811][ T210] ? ksys_write+0x116/0x250 [ 11.832815][ T210] proc_reg_write+0x1bc/0x3b0 [ 11.832820][ T210] vfs_write+0x186/0x970 [ 11.832824][ T210] ksys_write+0x116/0x250 [ 11.832826][ T210] ? __ia32_sys_read+0xc0/0xc0 [ 11.832828][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.832830][ T210] ? rcu_is_watching+0x16/0xd0 [ 11.832833][ T210] do_syscall_64+0xff/0x530 [ 11.832837][ T210] ? exc_page_fault+0xee/0x100 [ 11.832840][ T210] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.832842][ T210] RIP: 0033:0x7f967334c54e [ 11.832845][ 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.832847][ T210] RSP: 002b:00007ffecbe49790 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.832850][ T210] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f967334c54e [ 11.832851][ T210] RDX: 0000000000000000 RSI: 000000000040d760 RDI: 0000000000000007 [ 11.832852][ T210] RBP: 00007ffecbe497a0 R08: 0000000000000000 R09: 0000000000000000 [ 11.832853][ T210] R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffecbe49c90 [ 11.832854][ T210] R13: 0000000100000001 R14: 00007f96732d5000 R15: 00007f96732d5000 [ 11.832860][ T210]