[ 10.305770][ T221] ip_local_port_range: prefer different parity for start/end values. [ 10.305825][ T221] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.305827][ T221] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 221, name: sysctl [ 10.305828][ T221] preempt_count: 1, expected: 0 [ 10.305829][ T221] RCU nest depth: 0, expected: 0 [ 10.305830][ T221] locks held by sysctl/221: 5, last CPU#3: [ 10.305832][ T221] #0: ff1100000a4a4430 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.305845][ T221] #1: ffffffff8616a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.305850][ T221] #2: ffffffff8616a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.305853][ T221] #3: ffffffff86089de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.305856][ T221] #4: ffffffff86089ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.305859][ T221] irq event stamp: 26870 [ 10.305860][ T221] hardirqs last enabled at (26869): [] __down_trylock_console_sem+0x86/0xa0 [ 10.305864][ T221] hardirqs last disabled at (26870): [] console_emit_next_record+0x3d4/0x4c0 [ 10.305866][ T221] softirqs last enabled at (25772): [] handle_softirqs+0x67c/0x900 [ 10.305869][ T221] softirqs last disabled at (25765): [] __irq_exit_rcu+0x145/0x1c0 [ 10.305871][ T221] Preemption disabled at: [ 10.305872][ T221] [] vprintk_emit+0x31b/0x3e0 [ 10.305877][ T221] CPU: 3 UID: 0 PID: 221 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.305880][ T221] Tainted: [W]=WARN [ 10.305881][ T221] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.305883][ T221] Call Trace: [ 10.305885][ T221] [ 10.305886][ T221] dump_stack_lvl+0x6f/0xa0 [ 10.305891][ T221] ? vprintk_emit+0x31b/0x3e0 [ 10.305893][ T221] __might_resched.cold+0x1fe/0x2c1 [ 10.305897][ T221] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.305901][ T221] ? __kmalloc_noprof+0xdb/0x760 [ 10.305905][ T221] __kmalloc_noprof+0x443/0x760 [ 10.305908][ T221] ? alloc_buf.isra.0+0x4b/0x260 [ 10.305914][ T221] ? do_raw_spin_unlock+0x59/0x250 [ 10.305917][ T221] alloc_buf.isra.0+0x4b/0x260 [ 10.305921][ T221] put_chars+0x1e1/0x2f0 [ 10.305924][ T221] ? __send_to_port+0x420/0x420 [ 10.305927][ T221] ? validate_chain+0x34a/0xc20 [ 10.305932][ T221] hvc_console_print+0x292/0x780 [ 10.305936][ T221] ? __lock_acquire+0x518/0xc20 [ 10.305941][ T221] ? hvc_write+0x3a0/0x3a0 [ 10.305944][ T221] ? rcu_is_watching+0x16/0xd0 [ 10.305950][ T221] console_emit_next_record+0x22f/0x4c0 [ 10.305954][ T221] ? devkmsg_read+0x4b0/0x4b0 [ 10.305955][ T221] ? console_flush_one_record+0x106/0x710 [ 10.305958][ T221] ? rcu_is_watching+0x16/0xd0 [ 10.305960][ T221] ? lock_acquire+0x13c/0x160 [ 10.305964][ T221] console_flush_one_record+0x46f/0x710 [ 10.305968][ T221] ? console_emit_next_record+0x4c0/0x4c0 [ 10.305969][ T221] ? __lock_acquire+0x518/0xc20 [ 10.305975][ T221] console_unlock+0xee/0x1f0 [ 10.305977][ T221] ? console_flush_one_record+0x710/0x710 [ 10.305978][ T221] ? rcu_is_watching+0x16/0xd0 [ 10.305980][ T221] ? lock_acquire+0x60/0x160 [ 10.305984][ T221] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.305986][ T221] ? vprintk_emit+0x320/0x3e0 [ 10.305989][ T221] vprintk_emit+0x37c/0x3e0 [ 10.305992][ T221] ? wake_up_klogd_work_func+0x90/0x90 [ 10.305994][ T221] ? __lock_release.isra.0+0x69/0x1a0 [ 10.305999][ T221] _printk+0xc7/0x100 [ 10.306003][ T221] ? snapshot_read.cold+0x21/0x21 [ 10.306004][ T221] ? ___ratelimit+0x4e7/0xa00 [ 10.306010][ T221] ? idr_get_free+0x830/0x830 [ 10.306012][ T221] ? __might_fault+0x97/0x140 [ 10.306018][ T221] ipv4_local_port_range.cold+0xf/0x44 [ 10.306022][ T221] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 10.306028][ T221] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 10.306031][ T221] ? proc_sys_call_handler+0x25d/0x480 [ 10.306037][ T221] proc_sys_call_handler+0x31b/0x480 [ 10.306039][ T221] ? proc_sys_lookup+0x3d0/0x3d0 [ 10.306042][ T221] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.306045][ T221] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.306048][ T221] ? validate_chain+0x38b/0xc20 [ 10.306050][ T221] ? proc_sys_call_handler+0x480/0x480 [ 10.306052][ T221] new_sync_write+0x33e/0x760 [ 10.306056][ T221] ? __lock_acquire+0x518/0xc20 [ 10.306059][ T221] ? new_sync_read+0x750/0x750 [ 10.306062][ T221] ? lock_acquire.part.0+0xd4/0x280 [ 10.306064][ T221] ? ksys_write+0x116/0x250 [ 10.306076][ T221] vfs_write+0x6a2/0xbd0 [ 10.306079][ T221] ksys_write+0x116/0x250 [ 10.306082][ T221] ? __ia32_sys_read+0xc0/0xc0 [ 10.306084][ T221] ? rcu_is_watching+0x16/0xd0 [ 10.306086][ T221] ? rcu_is_watching+0x16/0xd0 [ 10.306089][ T221] do_syscall_64+0x10e/0x570 [ 10.306092][ T221] ? exc_page_fault+0xee/0x100 [ 10.306095][ T221] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.306097][ T221] RIP: 0033:0x7fa9e0d0154e [ 10.306101][ T221] 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.306102][ T221] RSP: 002b:00007ffc79f6ea10 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.306105][ T221] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fa9e0d0154e [ 10.306106][ T221] RDX: 000000000000000c RSI: 00005614717a94b0 RDI: 0000000000000005 [ 10.306107][ T221] RBP: 00007ffc79f6ea20 R08: 0000000000000000 R09: 0000000000000000 [ 10.306108][ T221] R10: 0000000000000000 R11: 0000000000000202 R12: 00005614717ab5e0 [ 10.306109][ T221] R13: 00005614717a9470 R14: 000000000000000c R15: 0000000000000000 [ 10.306116][ T221]