[ 10.208441][ T222] ip_local_port_range: prefer different parity for start/end values. [ 10.208499][ T222] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.208502][ T222] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 222, name: sysctl [ 10.208503][ T222] preempt_count: 1, expected: 0 [ 10.208504][ T222] RCU nest depth: 0, expected: 0 [ 10.208505][ T222] locks held by sysctl/222: 5, last CPU#3: [ 10.208507][ T222] #0: ff11000009fac430 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.208519][ T222] #1: ffffffff9cd6a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.208524][ T222] #2: ffffffff9cd6a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.208527][ T222] #3: ffffffff9cc89de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.208530][ T222] #4: ffffffff9cc89ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.208533][ T222] irq event stamp: 33436 [ 10.208534][ T222] hardirqs last enabled at (33435): [] __down_trylock_console_sem+0x86/0xa0 [ 10.208538][ T222] hardirqs last disabled at (33436): [] console_emit_next_record+0x3d4/0x4c0 [ 10.208539][ T222] softirqs last enabled at (31240): [] handle_softirqs+0x67c/0x900 [ 10.208543][ T222] softirqs last disabled at (31233): [] __irq_exit_rcu+0x145/0x1c0 [ 10.208545][ T222] Preemption disabled at: [ 10.208546][ T222] [] vprintk_emit+0x31b/0x3e0 [ 10.208551][ T222] CPU: 3 UID: 0 PID: 222 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.208554][ T222] Tainted: [W]=WARN [ 10.208555][ T222] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.208557][ T222] Call Trace: [ 10.208558][ T222] [ 10.208560][ T222] dump_stack_lvl+0x6f/0xa0 [ 10.208565][ T222] ? vprintk_emit+0x31b/0x3e0 [ 10.208566][ T222] __might_resched.cold+0x1fe/0x2c1 [ 10.208571][ T222] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.208574][ T222] ? __kmalloc_noprof+0xdb/0x760 [ 10.208579][ T222] __kmalloc_noprof+0x443/0x760 [ 10.208581][ T222] ? alloc_buf.isra.0+0x4b/0x260 [ 10.208587][ T222] ? do_raw_spin_unlock+0x59/0x250 [ 10.208590][ T222] alloc_buf.isra.0+0x4b/0x260 [ 10.208594][ T222] put_chars+0x1e1/0x2f0 [ 10.208596][ T222] ? __send_to_port+0x420/0x420 [ 10.208600][ T222] ? validate_chain+0x34a/0xc20 [ 10.208605][ T222] hvc_console_print+0x292/0x780 [ 10.208608][ T222] ? __lock_acquire+0x518/0xc20 [ 10.208613][ T222] ? hvc_write+0x3a0/0x3a0 [ 10.208616][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.208622][ T222] console_emit_next_record+0x22f/0x4c0 [ 10.208625][ T222] ? devkmsg_read+0x4b0/0x4b0 [ 10.208626][ T222] ? console_flush_one_record+0x106/0x710 [ 10.208629][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.208631][ T222] ? lock_acquire+0x13c/0x160 [ 10.208635][ T222] console_flush_one_record+0x46f/0x710 [ 10.208639][ T222] ? console_emit_next_record+0x4c0/0x4c0 [ 10.208640][ T222] ? __lock_acquire+0x518/0xc20 [ 10.208646][ T222] console_unlock+0xee/0x1f0 [ 10.208648][ T222] ? console_flush_one_record+0x710/0x710 [ 10.208649][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.208651][ T222] ? lock_acquire+0x60/0x160 [ 10.208655][ T222] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.208657][ T222] ? vprintk_emit+0x320/0x3e0 [ 10.208659][ T222] vprintk_emit+0x37c/0x3e0 [ 10.208662][ T222] ? wake_up_klogd_work_func+0x90/0x90 [ 10.208665][ T222] ? __lock_release.isra.0+0x69/0x1a0 [ 10.208669][ T222] _printk+0xc7/0x100 [ 10.208673][ T222] ? snapshot_read.cold+0x21/0x21 [ 10.208674][ T222] ? ___ratelimit+0x4e7/0xa00 [ 10.208680][ T222] ? idr_get_free+0x830/0x830 [ 10.208682][ T222] ? __might_fault+0x97/0x140 [ 10.208687][ T222] ipv4_local_port_range.cold+0xf/0x44 [ 10.208692][ T222] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 10.208698][ T222] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 10.208701][ T222] ? proc_sys_call_handler+0x25d/0x480 [ 10.208706][ T222] proc_sys_call_handler+0x31b/0x480 [ 10.208709][ T222] ? proc_sys_lookup+0x3d0/0x3d0 [ 10.208711][ T222] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.208714][ T222] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.208717][ T222] ? validate_chain+0x38b/0xc20 [ 10.208719][ T222] ? proc_sys_call_handler+0x480/0x480 [ 10.208721][ T222] new_sync_write+0x33e/0x760 [ 10.208725][ T222] ? __lock_acquire+0x518/0xc20 [ 10.208728][ T222] ? new_sync_read+0x750/0x750 [ 10.208731][ T222] ? lock_acquire.part.0+0xd4/0x280 [ 10.208733][ T222] ? ksys_write+0x116/0x250 [ 10.208739][ T222] vfs_write+0x6a2/0xbd0 [ 10.208743][ T222] ksys_write+0x116/0x250 [ 10.208745][ T222] ? __ia32_sys_read+0xc0/0xc0 [ 10.208747][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.208749][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.208752][ T222] do_syscall_64+0x10e/0x570 [ 10.208755][ T222] ? exc_page_fault+0xee/0x100 [ 10.208758][ T222] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.208761][ T222] RIP: 0033:0x7ff5d158f54e [ 10.208764][ T222] 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.208766][ T222] RSP: 002b:00007fffdce8c2e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.208768][ T222] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007ff5d158f54e [ 10.208770][ T222] RDX: 000000000000000c RSI: 000056488cc4a4b0 RDI: 0000000000000005 [ 10.208770][ T222] RBP: 00007fffdce8c2f0 R08: 0000000000000000 R09: 0000000000000000 [ 10.208771][ T222] R10: 0000000000000000 R11: 0000000000000202 R12: 000056488cc4c5e0 [ 10.208772][ T222] R13: 000056488cc4a470 R14: 000000000000000c R15: 0000000000000000 [ 10.208778][ T222]