[ 10.001580][ T193] ip_local_port_range: prefer different parity for start/end values. [ 10.001688][ T193] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.001690][ T193] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 193, name: tcp_port_share [ 10.001692][ T193] preempt_count: 1, expected: 0 [ 10.001693][ T193] RCU nest depth: 0, expected: 0 [ 10.001694][ T193] locks held by tcp_port_share/193: 5, last CPU#2: [ 10.001696][ T193] #0: ff1100000a9b4438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.001708][ T193] #1: ffffffffbcd7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.001714][ T193] #2: ffffffffbcd7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.001718][ T193] #3: ffffffffbcc9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.001722][ T193] #4: ffffffffbcc9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.001726][ T193] irq event stamp: 19340 [ 10.001727][ T193] hardirqs last enabled at (19339): [] __down_trylock_console_sem+0x86/0xa0 [ 10.001730][ T193] hardirqs last disabled at (19340): [] console_emit_next_record+0x3d4/0x4c0 [ 10.001732][ T193] softirqs last enabled at (19040): [] fpu_clone+0xd9/0x410 [ 10.001736][ T193] softirqs last disabled at (19038): [] fpu_clone+0x82/0x410 [ 10.001738][ T193] Preemption disabled at: [ 10.001739][ T193] [] vprintk_emit+0x31b/0x3e0 [ 10.001744][ T193] CPU: 2 UID: 0 PID: 193 Comm: tcp_port_share Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.001748][ T193] Tainted: [W]=WARN [ 10.001749][ T193] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.001750][ T193] Call Trace: [ 10.001752][ T193] [ 10.001753][ T193] dump_stack_lvl+0x6f/0xa0 [ 10.001759][ T193] ? vprintk_emit+0x31b/0x3e0 [ 10.001761][ T193] __might_resched.cold+0x1fe/0x2c1 [ 10.001765][ T193] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.001769][ T193] ? __kmalloc_noprof+0xdb/0x760 [ 10.001773][ T193] __kmalloc_noprof+0x443/0x760 [ 10.001775][ T193] ? alloc_buf.isra.0+0x4b/0x260 [ 10.001782][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 10.001785][ T193] alloc_buf.isra.0+0x4b/0x260 [ 10.001789][ T193] put_chars+0x1e1/0x2f0 [ 10.001791][ T193] ? __send_to_port+0x420/0x420 [ 10.001795][ T193] ? validate_chain+0x34a/0xc20 [ 10.001800][ T193] hvc_console_print+0x292/0x780 [ 10.001803][ T193] ? __lock_acquire+0x518/0xc20 [ 10.001805][ T193] ? __lock_acquire+0x518/0xc20 [ 10.001810][ T193] ? hvc_write+0x3a0/0x3a0 [ 10.001812][ T193] ? console_emit_next_record+0x1df/0x4c0 [ 10.001815][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.001818][ T193] ? lock_acquire+0x13c/0x160 [ 10.001822][ T193] console_emit_next_record+0x22f/0x4c0 [ 10.001826][ T193] ? devkmsg_read+0x4b0/0x4b0 [ 10.001828][ T193] ? console_flush_one_record+0x106/0x710 [ 10.001831][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.001833][ T193] ? lock_acquire+0x13c/0x160 [ 10.001837][ T193] console_flush_one_record+0x46f/0x710 [ 10.001841][ T193] ? console_emit_next_record+0x4c0/0x4c0 [ 10.001843][ T193] ? __lock_acquire+0x518/0xc20 [ 10.001849][ T193] console_unlock+0xee/0x1f0 [ 10.001852][ T193] ? console_flush_one_record+0x710/0x710 [ 10.001854][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.001855][ T193] ? lock_acquire+0xe0/0x160 [ 10.001859][ T193] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.001861][ T193] ? vprintk_emit+0x320/0x3e0 [ 10.001864][ T193] vprintk_emit+0x37c/0x3e0 [ 10.001867][ T193] ? wake_up_klogd_work_func+0x90/0x90 [ 10.001869][ T193] ? __lock_release.isra.0+0x69/0x1a0 [ 10.001874][ T193] _printk+0xc7/0x100 [ 10.001877][ T193] ? snapshot_read.cold+0x21/0x21 [ 10.001879][ T193] ? ___ratelimit+0x4e7/0xa00 [ 10.001888][ T193] ? idr_get_free+0x830/0x830 [ 10.001890][ T193] ? __might_fault+0x97/0x140 [ 10.001895][ T193] ipv4_local_port_range.cold+0xf/0x44 [ 10.001899][ T193] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 10.001905][ T193] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 10.001908][ T193] ? proc_sys_call_handler+0x25d/0x480 [ 10.001913][ T193] proc_sys_call_handler+0x31b/0x480 [ 10.001916][ T193] ? proc_sys_lookup+0x3d0/0x3d0 [ 10.001919][ T193] ? handle_pte_fault+0x448/0x710 [ 10.001921][ T193] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.001923][ T193] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.001926][ T193] ? validate_chain+0x38b/0xc20 [ 10.001928][ T193] ? proc_sys_call_handler+0x480/0x480 [ 10.001931][ T193] new_sync_write+0x33e/0x760 [ 10.001934][ T193] ? __lock_acquire+0x518/0xc20 [ 10.001937][ T193] ? new_sync_read+0x750/0x750 [ 10.001940][ T193] ? lock_acquire.part.0+0xd4/0x280 [ 10.001942][ T193] ? ksys_write+0x116/0x250 [ 10.001948][ T193] vfs_write+0x655/0x970 [ 10.001952][ T193] ksys_write+0x116/0x250 [ 10.001955][ T193] ? __ia32_sys_read+0xc0/0xc0 [ 10.001957][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.001958][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.001962][ T193] do_syscall_64+0xff/0x530 [ 10.001965][ T193] ? exc_page_fault+0xee/0x100 [ 10.001968][ T193] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.001970][ T193] RIP: 0033:0x7fc9b414554e [ 10.001974][ T193] 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.001975][ T193] RSP: 002b:00007ffe54382420 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.001978][ T193] RAX: ffffffffffffffda RBX: 00007ffe543824ec RCX: 00007fc9b414554e [ 10.001979][ T193] RDX: 000000000000000c RSI: 00007ffe543824ec RDI: 0000000000000005 [ 10.001980][ T193] RBP: 00007ffe54382430 R08: 0000000000000000 R09: 0000000000000000 [ 10.001981][ T193] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000c [ 10.001982][ T193] R13: 00007ffe543824f8 R14: 00007ffe543824ec R15: 00007ffe543824c0 [ 10.001989][ T193] [ 10.245626][ T199] ip_local_port_range: prefer different parity for start/end values. [ 10.464858][ T205] ip_local_port_range: prefer different parity for start/end values. [ 10.671295][ T211] ip_local_port_range: prefer different parity for start/end values.