[ 10.507469][ T193] ip_local_port_range: prefer different parity for start/end values. [ 10.507600][ T193] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.507603][ T193] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 193, name: tcp_port_share [ 10.507605][ T193] preempt_count: 1, expected: 0 [ 10.507606][ T193] RCU nest depth: 0, expected: 0 [ 10.507607][ T193] locks held by tcp_port_share/193: 5, last CPU#0: [ 10.507609][ T193] #0: ff1100000a654438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.507622][ T193] #1: ffffffffad17ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.507627][ T193] #2: ffffffffad17de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.507632][ T193] #3: ffffffffad09d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.507635][ T193] #4: ffffffffad09d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.507640][ T193] irq event stamp: 21446 [ 10.507640][ T193] hardirqs last enabled at (21445): [] __down_trylock_console_sem+0x86/0xa0 [ 10.507643][ T193] hardirqs last disabled at (21446): [] console_emit_next_record+0x3d4/0x4c0 [ 10.507646][ T193] softirqs last enabled at (21356): [] handle_softirqs+0x67c/0x900 [ 10.507649][ T193] softirqs last disabled at (21349): [] __irq_exit_rcu+0x145/0x1c0 [ 10.507651][ T193] Preemption disabled at: [ 10.507652][ T193] [] vprintk_emit+0x31b/0x3e0 [ 10.507658][ T193] CPU: 0 UID: 0 PID: 193 Comm: tcp_port_share Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.507661][ T193] Tainted: [W]=WARN [ 10.507662][ T193] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.507664][ T193] Call Trace: [ 10.507665][ T193] [ 10.507667][ T193] dump_stack_lvl+0x6f/0xa0 [ 10.507673][ T193] ? vprintk_emit+0x31b/0x3e0 [ 10.507674][ T193] __might_resched.cold+0x1fe/0x2c1 [ 10.507679][ T193] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.507683][ T193] ? __kmalloc_noprof+0xdb/0x760 [ 10.507687][ T193] __kmalloc_noprof+0x443/0x760 [ 10.507689][ T193] ? alloc_buf.isra.0+0x4b/0x260 [ 10.507696][ T193] ? do_raw_spin_unlock+0x59/0x250 [ 10.507699][ T193] alloc_buf.isra.0+0x4b/0x260 [ 10.507703][ T193] put_chars+0x1e1/0x2f0 [ 10.507706][ T193] ? __send_to_port+0x420/0x420 [ 10.507709][ T193] ? validate_chain+0x34a/0xc20 [ 10.507714][ T193] hvc_console_print+0x292/0x780 [ 10.507718][ T193] ? __lock_acquire+0x518/0xc20 [ 10.507720][ T193] ? __lock_acquire+0x518/0xc20 [ 10.507724][ T193] ? hvc_write+0x3a0/0x3a0 [ 10.507726][ T193] ? console_emit_next_record+0x1df/0x4c0 [ 10.507730][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.507732][ T193] ? lock_acquire+0x13c/0x160 [ 10.507736][ T193] console_emit_next_record+0x22f/0x4c0 [ 10.507740][ T193] ? devkmsg_read+0x4b0/0x4b0 [ 10.507742][ T193] ? console_flush_one_record+0x106/0x710 [ 10.507745][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.507747][ T193] ? lock_acquire+0x13c/0x160 [ 10.507751][ T193] console_flush_one_record+0x46f/0x710 [ 10.507755][ T193] ? console_emit_next_record+0x4c0/0x4c0 [ 10.507757][ T193] ? __lock_acquire+0x518/0xc20 [ 10.507762][ T193] console_unlock+0xee/0x1f0 [ 10.507765][ T193] ? console_flush_one_record+0x710/0x710 [ 10.507767][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.507769][ T193] ? lock_acquire+0xe0/0x160 [ 10.507772][ T193] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.507774][ T193] ? vprintk_emit+0x320/0x3e0 [ 10.507777][ T193] vprintk_emit+0x37c/0x3e0 [ 10.507780][ T193] ? wake_up_klogd_work_func+0x90/0x90 [ 10.507782][ T193] ? __lock_release.isra.0+0x69/0x1a0 [ 10.507787][ T193] _printk+0xc7/0x100 [ 10.507790][ T193] ? snapshot_read.cold+0x21/0x21 [ 10.507792][ T193] ? ___ratelimit+0x4e7/0xa00 [ 10.507798][ T193] ? idr_get_free+0x830/0x830 [ 10.507799][ T193] ? __might_fault+0x97/0x140 [ 10.507805][ T193] ipv4_local_port_range.cold+0xf/0x44 [ 10.507809][ T193] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 10.507815][ T193] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 10.507817][ T193] ? proc_sys_call_handler+0x25d/0x480 [ 10.507823][ T193] proc_sys_call_handler+0x31b/0x480 [ 10.507826][ T193] ? proc_sys_lookup+0x3d0/0x3d0 [ 10.507828][ T193] ? rcu_read_unlock+0x20/0x70 [ 10.507829][ T193] ? handle_pte_fault+0x426/0x710 [ 10.507831][ T193] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.507834][ T193] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.507836][ T193] ? validate_chain+0x38b/0xc20 [ 10.507839][ T193] ? proc_sys_call_handler+0x480/0x480 [ 10.507841][ T193] new_sync_write+0x33e/0x760 [ 10.507844][ T193] ? __lock_acquire+0x518/0xc20 [ 10.507846][ T193] ? new_sync_read+0x750/0x750 [ 10.507849][ T193] ? lock_acquire.part.0+0xd4/0x280 [ 10.507851][ T193] ? ksys_write+0x116/0x250 [ 10.507857][ T193] vfs_write+0x655/0x970 [ 10.507861][ T193] ksys_write+0x116/0x250 [ 10.507863][ T193] ? __ia32_sys_read+0xc0/0xc0 [ 10.507865][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.507867][ T193] ? rcu_is_watching+0x16/0xd0 [ 10.507870][ T193] do_syscall_64+0xff/0x530 [ 10.507873][ T193] ? exc_page_fault+0xee/0x100 [ 10.507876][ T193] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.507878][ T193] RIP: 0033:0x7f712228f54e [ 10.507883][ 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.507884][ T193] RSP: 002b:00007ffde00804d0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.507887][ T193] RAX: ffffffffffffffda RBX: 00007ffde008059c RCX: 00007f712228f54e [ 10.507888][ T193] RDX: 000000000000000c RSI: 00007ffde008059c RDI: 0000000000000005 [ 10.507889][ T193] RBP: 00007ffde00804e0 R08: 0000000000000000 R09: 0000000000000000 [ 10.507890][ T193] R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000c [ 10.507890][ T193] R13: 00007ffde00805a8 R14: 00007ffde008059c R15: 00007ffde0080570 [ 10.507897][ T193] [ 10.773478][ T199] ip_local_port_range: prefer different parity for start/end values. [ 11.002391][ T205] ip_local_port_range: prefer different parity for start/end values. [ 11.240658][ T211] ip_local_port_range: prefer different parity for start/end values.