[ 9.232906][ T192] ip_local_port_range: prefer different parity for start/end values. [ 9.232960][ T192] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.232962][ T192] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 192, name: tcp_port_share [ 9.232964][ T192] preempt_count: 1, expected: 0 [ 9.232965][ T192] RCU nest depth: 0, expected: 0 [ 9.232966][ T192] locks held by tcp_port_share/192: 5, last CPU#2: [ 9.232968][ T192] #0: ff1100000a6a4438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 9.232981][ T192] #1: ffffffff8737ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.232986][ T192] #2: ffffffff8737de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.232990][ T192] #3: ffffffff8729d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.232994][ T192] #4: ffffffff8729d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.232998][ T192] irq event stamp: 25732 [ 9.232999][ T192] hardirqs last enabled at (25731): [] __down_trylock_console_sem+0x86/0xa0 [ 9.233002][ T192] hardirqs last disabled at (25732): [] console_emit_next_record+0x3d4/0x4c0 [ 9.233004][ T192] softirqs last enabled at (25182): [] handle_softirqs+0x67c/0x900 [ 9.233007][ T192] softirqs last disabled at (25177): [] __irq_exit_rcu+0x145/0x1c0 [ 9.233010][ T192] Preemption disabled at: [ 9.233010][ T192] [] vprintk_emit+0x31b/0x3e0 [ 9.233015][ T192] CPU: 2 UID: 0 PID: 192 Comm: tcp_port_share Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.233018][ T192] Tainted: [W]=WARN [ 9.233019][ T192] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.233021][ T192] Call Trace: [ 9.233022][ T192] [ 9.233024][ T192] dump_stack_lvl+0x6f/0xa0 [ 9.233030][ T192] ? vprintk_emit+0x31b/0x3e0 [ 9.233031][ T192] __might_resched.cold+0x1fe/0x2c1 [ 9.233036][ T192] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.233039][ T192] ? __kmalloc_noprof+0xdb/0x760 [ 9.233043][ T192] __kmalloc_noprof+0x443/0x760 [ 9.233045][ T192] ? alloc_buf.isra.0+0x4b/0x260 [ 9.233052][ T192] ? do_raw_spin_unlock+0x59/0x250 [ 9.233055][ T192] alloc_buf.isra.0+0x4b/0x260 [ 9.233058][ T192] put_chars+0x1e1/0x2f0 [ 9.233061][ T192] ? __send_to_port+0x420/0x420 [ 9.233064][ T192] ? validate_chain+0x34a/0xc20 [ 9.233069][ T192] hvc_console_print+0x292/0x780 [ 9.233072][ T192] ? __lock_acquire+0x518/0xc20 [ 9.233074][ T192] ? __lock_acquire+0x518/0xc20 [ 9.233079][ T192] ? hvc_write+0x3a0/0x3a0 [ 9.233081][ T192] ? console_emit_next_record+0x1df/0x4c0 [ 9.233084][ T192] ? rcu_is_watching+0x16/0xd0 [ 9.233087][ T192] ? lock_acquire+0x13c/0x160 [ 9.233091][ T192] console_emit_next_record+0x22f/0x4c0 [ 9.233094][ T192] ? devkmsg_read+0x4b0/0x4b0 [ 9.233096][ T192] ? console_flush_one_record+0x106/0x710 [ 9.233099][ T192] ? rcu_is_watching+0x16/0xd0 [ 9.233101][ T192] ? lock_acquire+0x13c/0x160 [ 9.233105][ T192] console_flush_one_record+0x46f/0x710 [ 9.233109][ T192] ? console_emit_next_record+0x4c0/0x4c0 [ 9.233111][ T192] ? __lock_acquire+0x518/0xc20 [ 9.233116][ T192] console_unlock+0xee/0x1f0 [ 9.233119][ T192] ? console_flush_one_record+0x710/0x710 [ 9.233121][ T192] ? rcu_is_watching+0x16/0xd0 [ 9.233123][ T192] ? lock_acquire+0xe0/0x160 [ 9.233126][ T192] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.233128][ T192] ? vprintk_emit+0x320/0x3e0 [ 9.233131][ T192] vprintk_emit+0x37c/0x3e0 [ 9.233134][ T192] ? wake_up_klogd_work_func+0x90/0x90 [ 9.233136][ T192] ? __lock_release.isra.0+0x69/0x1a0 [ 9.233140][ T192] _printk+0xc7/0x100 [ 9.233144][ T192] ? snapshot_read.cold+0x21/0x21 [ 9.233145][ T192] ? ___ratelimit+0x4e7/0xa00 [ 9.233151][ T192] ? idr_get_free+0x830/0x830 [ 9.233153][ T192] ? __might_fault+0x97/0x140 [ 9.233158][ T192] ipv4_local_port_range.cold+0xf/0x44 [ 9.233162][ T192] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 9.233168][ T192] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 9.233170][ T192] ? proc_sys_call_handler+0x25d/0x480 [ 9.233176][ T192] proc_sys_call_handler+0x31b/0x480 [ 9.233179][ T192] ? proc_sys_lookup+0x3d0/0x3d0 [ 9.233181][ T192] ? rcu_read_unlock+0x20/0x70 [ 9.233183][ T192] ? handle_pte_fault+0x426/0x710 [ 9.233185][ T192] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.233187][ T192] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.233190][ T192] ? validate_chain+0x38b/0xc20 [ 9.233192][ T192] ? proc_sys_call_handler+0x480/0x480 [ 9.233194][ T192] new_sync_write+0x33e/0x760 [ 9.233197][ T192] ? __lock_acquire+0x518/0xc20 [ 9.233199][ T192] ? new_sync_read+0x750/0x750 [ 9.233202][ T192] ? lock_acquire.part.0+0xd4/0x280 [ 9.233204][ T192] ? ksys_write+0x116/0x250 [ 9.233210][ T192] vfs_write+0x655/0x970 [ 9.233214][ T192] ksys_write+0x116/0x250 [ 9.233216][ T192] ? __ia32_sys_read+0xc0/0xc0 [ 9.233222][ T192] ? rcu_is_watching+0x16/0xd0 [ 9.233224][ T192] ? rcu_is_watching+0x16/0xd0 [ 9.233227][ T192] do_syscall_64+0xff/0x530 [ 9.233230][ T192] ? exc_page_fault+0xee/0x100 [ 9.233232][ T192] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.233235][ T192] RIP: 0033:0x7f6d299d154e [ 9.233238][ T192] 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 [ 9.233240][ T192] RSP: 002b:00007fff1c649360 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 9.233243][ T192] RAX: ffffffffffffffda RBX: 00007fff1c64942c RCX: 00007f6d299d154e [ 9.233244][ T192] RDX: 000000000000000c RSI: 00007fff1c64942c RDI: 0000000000000005 [ 9.233245][ T192] RBP: 00007fff1c649370 R08: 0000000000000000 R09: 0000000000000000 [ 9.233245][ T192] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000c [ 9.233246][ T192] R13: 00007fff1c649438 R14: 00007fff1c64942c R15: 00007fff1c649400 [ 9.233253][ T192] [ 9.439630][ T198] ip_local_port_range: prefer different parity for start/end values. [ 9.624372][ T205] ip_local_port_range: prefer different parity for start/end values. [ 9.824103][ T211] ip_local_port_range: prefer different parity for start/end values.