[ 11.113196][ T193] ip_local_port_range: prefer different parity for start/end values. [ 11.113311][ T193] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.113314][ T193] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 193, name: tcp_port_share [ 11.113316][ T193] preempt_count: 1, expected: 0 [ 11.113317][ T193] RCU nest depth: 0, expected: 0 [ 11.113319][ T193] locks held by tcp_port_share/193: 5, last CPU#2: [ 11.113321][ T193] #0: ff1100000ac8c438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 11.113337][ T193] #1: ffffffffb5f7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.113344][ T193] #2: ffffffffb5f7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.113351][ T193] #3: ffffffffb5e9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.113357][ T193] #4: ffffffffb5e9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.113363][ T193] irq event stamp: 26318 [ 11.113364][ T193] hardirqs last enabled at (26317): [] __down_trylock_console_sem+0x86/0xa0 [ 11.113368][ T193] hardirqs last disabled at (26318): [] console_emit_next_record+0x3d4/0x4c0 [ 11.113371][ T193] softirqs last enabled at (26202): [] handle_softirqs+0x67c/0x900 [ 11.113375][ T193] softirqs last disabled at (26197): [] __irq_exit_rcu+0x145/0x1c0 [ 11.113379][ T193] Preemption disabled at: [ 11.113379][ T193] [] vprintk_emit+0x31b/0x3e0 [ 11.113387][ T193] CPU: 2 UID: 0 PID: 193 Comm: tcp_port_share Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.113391][ T193] Tainted: [W]=WARN [ 11.113393][ T193] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.113395][ T193] Call Trace: [ 11.113397][ T193] [ 11.113399][ T193] dump_stack_lvl+0x6f/0xa0 [ 11.113407][ T193] ? vprintk_emit+0x31b/0x3e0 [ 11.113410][ T193] __might_resched.cold+0x1fe/0x2c1 [ 11.113416][ T193] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.113421][ T193] ? __kmalloc_noprof+0xdb/0x760 [ 11.113428][ T193] __kmalloc_noprof+0x443/0x760 [ 11.113431][ T193] ? alloc_buf.isra.0+0x4b/0x260 [ 11.113441][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 11.113444][ T193] alloc_buf.isra.0+0x4b/0x260 [ 11.113450][ T193] put_chars+0x1e1/0x2f0 [ 11.113454][ T193] ? __send_to_port+0x420/0x420 [ 11.113460][ T193] ? validate_chain+0x34a/0xc20 [ 11.113468][ T193] hvc_console_print+0x292/0x780 [ 11.113473][ T193] ? __lock_acquire+0x518/0xc20 [ 11.113475][ T193] ? __lock_acquire+0x518/0xc20 [ 11.113483][ T193] ? hvc_write+0x3a0/0x3a0 [ 11.113486][ T193] ? console_emit_next_record+0x1df/0x4c0 [ 11.113491][ T193] ? rcu_is_watching+0x16/0xd0 [ 11.113495][ T193] ? lock_acquire+0x13c/0x160 [ 11.113502][ T193] console_emit_next_record+0x22f/0x4c0 [ 11.113508][ T193] ? devkmsg_read+0x4b0/0x4b0 [ 11.113511][ T193] ? console_flush_one_record+0x106/0x710 [ 11.113516][ T193] ? rcu_is_watching+0x16/0xd0 [ 11.113519][ T193] ? lock_acquire+0x13c/0x160 [ 11.113525][ T193] console_flush_one_record+0x46f/0x710 [ 11.113532][ T193] ? console_emit_next_record+0x4c0/0x4c0 [ 11.113535][ T193] ? __lock_acquire+0x518/0xc20 [ 11.113544][ T193] console_unlock+0xee/0x1f0 [ 11.113548][ T193] ? console_flush_one_record+0x710/0x710 [ 11.113551][ T193] ? rcu_is_watching+0x16/0xd0 [ 11.113554][ T193] ? lock_acquire+0xe0/0x160 [ 11.113560][ T193] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.113562][ T193] ? vprintk_emit+0x320/0x3e0 [ 11.113567][ T193] vprintk_emit+0x37c/0x3e0 [ 11.113572][ T193] ? wake_up_klogd_work_func+0x90/0x90 [ 11.113576][ T193] ? __lock_release.isra.0+0x69/0x1a0 [ 11.113583][ T193] _printk+0xc7/0x100 [ 11.113588][ T193] ? snapshot_read.cold+0x21/0x21 [ 11.113591][ T193] ? ___ratelimit+0x4e7/0xa00 [ 11.113599][ T193] ? idr_get_free+0x830/0x830 [ 11.113601][ T193] ? __might_fault+0x97/0x140 [ 11.113609][ T193] ipv4_local_port_range.cold+0xf/0x44 [ 11.113616][ T193] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 11.113625][ T193] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 11.113629][ T193] ? proc_sys_call_handler+0x25d/0x480 [ 11.113637][ T193] proc_sys_call_handler+0x31b/0x480 [ 11.113642][ T193] ? proc_sys_lookup+0x3d0/0x3d0 [ 11.113647][ T193] ? handle_pte_fault+0x448/0x710 [ 11.113650][ T193] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.113653][ T193] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.113657][ T193] ? validate_chain+0x38b/0xc20 [ 11.113661][ T193] ? proc_sys_call_handler+0x480/0x480 [ 11.113665][ T193] new_sync_write+0x33e/0x760 [ 11.113669][ T193] ? __lock_acquire+0x518/0xc20 [ 11.113673][ T193] ? new_sync_read+0x750/0x750 [ 11.113678][ T193] ? lock_acquire.part.0+0xd4/0x280 [ 11.113682][ T193] ? ksys_write+0x116/0x250 [ 11.113693][ T193] vfs_write+0x655/0x970 [ 11.113699][ T193] ksys_write+0x116/0x250 [ 11.113703][ T193] ? __ia32_sys_read+0xc0/0xc0 [ 11.113707][ T193] ? rcu_is_watching+0x16/0xd0 [ 11.113710][ T193] ? rcu_is_watching+0x16/0xd0 [ 11.113715][ T193] do_syscall_64+0xff/0x530 [ 11.113719][ T193] ? exc_page_fault+0xee/0x100 [ 11.113723][ T193] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.113727][ T193] RIP: 0033:0x7fc83ed4554e [ 11.113732][ 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 [ 11.113734][ T193] RSP: 002b:00007fff92d963a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.113738][ T193] RAX: ffffffffffffffda RBX: 00007fff92d9646c RCX: 00007fc83ed4554e [ 11.113740][ T193] RDX: 000000000000000c RSI: 00007fff92d9646c RDI: 0000000000000005 [ 11.113741][ T193] RBP: 00007fff92d963b0 R08: 0000000000000000 R09: 0000000000000000 [ 11.113743][ T193] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000c [ 11.113744][ T193] R13: 00007fff92d96478 R14: 00007fff92d9646c R15: 00007fff92d96440 [ 11.113757][ T193] [ 11.414035][ T199] ip_local_port_range: prefer different parity for start/end values. [ 11.629244][ T205] ip_local_port_range: prefer different parity for start/end values. [ 11.895597][ T211] ip_local_port_range: prefer different parity for start/end values.