[ 11.376195][ T195] ip_local_port_range: prefer different parity for start/end values. [ 11.376329][ T195] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.376331][ T195] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 195, name: sysctl [ 11.376332][ T195] preempt_count: 1, expected: 0 [ 11.376333][ T195] RCU nest depth: 0, expected: 0 [ 11.376334][ T195] locks held by sysctl/195: 5, last CPU#3: [ 11.376336][ T195] #0: ff1100000a6d4438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 11.376349][ T195] #1: ffffffff96b7ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.376354][ T195] #2: ffffffff96b7de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.376358][ T195] #3: ffffffff96a9d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.376362][ T195] #4: ffffffff96a9d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.376366][ T195] irq event stamp: 25976 [ 11.376367][ T195] hardirqs last enabled at (25975): [] __down_trylock_console_sem+0x86/0xa0 [ 11.376370][ T195] hardirqs last disabled at (25976): [] console_emit_next_record+0x3d4/0x4c0 [ 11.376372][ T195] softirqs last enabled at (24034): [] handle_softirqs+0x67c/0x900 [ 11.376375][ T195] softirqs last disabled at (23975): [] __irq_exit_rcu+0x145/0x1c0 [ 11.376378][ T195] Preemption disabled at: [ 11.376378][ T195] [] vprintk_emit+0x31b/0x3e0 [ 11.376384][ T195] CPU: 3 UID: 0 PID: 195 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.376388][ T195] Tainted: [W]=WARN [ 11.376389][ T195] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.376390][ T195] Call Trace: [ 11.376392][ T195] [ 11.376394][ T195] dump_stack_lvl+0x6f/0xa0 [ 11.376400][ T195] ? vprintk_emit+0x31b/0x3e0 [ 11.376401][ T195] __might_resched.cold+0x1fe/0x2c1 [ 11.376406][ T195] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.376410][ T195] ? __kmalloc_noprof+0xdb/0x760 [ 11.376415][ T195] __kmalloc_noprof+0x443/0x760 [ 11.376417][ T195] ? alloc_buf.isra.0+0x4b/0x260 [ 11.376424][ T195] ? do_raw_spin_unlock+0x59/0x250 [ 11.376426][ T195] alloc_buf.isra.0+0x4b/0x260 [ 11.376430][ T195] put_chars+0x1e1/0x2f0 [ 11.376433][ T195] ? __send_to_port+0x420/0x420 [ 11.376436][ T195] ? validate_chain+0x34a/0xc20 [ 11.376441][ T195] hvc_console_print+0x292/0x780 [ 11.376445][ T195] ? __lock_acquire+0x518/0xc20 [ 11.376447][ T195] ? __lock_acquire+0x518/0xc20 [ 11.376452][ T195] ? hvc_write+0x3a0/0x3a0 [ 11.376454][ T195] ? console_emit_next_record+0x1df/0x4c0 [ 11.376457][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.376460][ T195] ? lock_acquire+0x13c/0x160 [ 11.376464][ T195] console_emit_next_record+0x22f/0x4c0 [ 11.376468][ T195] ? devkmsg_read+0x4b0/0x4b0 [ 11.376470][ T195] ? console_flush_one_record+0x106/0x710 [ 11.376473][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.376475][ T195] ? lock_acquire+0x13c/0x160 [ 11.376479][ T195] console_flush_one_record+0x46f/0x710 [ 11.376483][ T195] ? console_emit_next_record+0x4c0/0x4c0 [ 11.376485][ T195] ? __lock_acquire+0x518/0xc20 [ 11.376491][ T195] console_unlock+0xee/0x1f0 [ 11.376494][ T195] ? console_flush_one_record+0x710/0x710 [ 11.376496][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.376497][ T195] ? lock_acquire+0xe0/0x160 [ 11.376501][ T195] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.376503][ T195] ? vprintk_emit+0x320/0x3e0 [ 11.376506][ T195] vprintk_emit+0x37c/0x3e0 [ 11.376509][ T195] ? wake_up_klogd_work_func+0x90/0x90 [ 11.376511][ T195] ? __lock_release.isra.0+0x69/0x1a0 [ 11.376516][ T195] _printk+0xc7/0x100 [ 11.376519][ T195] ? snapshot_read.cold+0x21/0x21 [ 11.376521][ T195] ? ___ratelimit+0x4e7/0xa00 [ 11.376527][ T195] ? idr_get_free+0x830/0x830 [ 11.376528][ T195] ? __might_fault+0x97/0x140 [ 11.376534][ T195] ipv4_local_port_range.cold+0xf/0x44 [ 11.376538][ T195] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 11.376545][ T195] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 11.376547][ T195] ? proc_sys_call_handler+0x25d/0x480 [ 11.376553][ T195] proc_sys_call_handler+0x31b/0x480 [ 11.376555][ T195] ? proc_sys_lookup+0x3d0/0x3d0 [ 11.376558][ T195] ? handle_pte_fault+0x426/0x710 [ 11.376560][ T195] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.376563][ T195] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.376565][ T195] ? validate_chain+0x38b/0xc20 [ 11.376567][ T195] ? proc_sys_call_handler+0x480/0x480 [ 11.376570][ T195] new_sync_write+0x33e/0x760 [ 11.376572][ T195] ? __lock_acquire+0x518/0xc20 [ 11.376575][ T195] ? new_sync_read+0x750/0x750 [ 11.376578][ T195] ? lock_acquire.part.0+0xd4/0x280 [ 11.376580][ T195] ? ksys_write+0x116/0x250 [ 11.376586][ T195] vfs_write+0x655/0x970 [ 11.376590][ T195] ksys_write+0x116/0x250 [ 11.376593][ T195] ? __ia32_sys_read+0xc0/0xc0 [ 11.376595][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.376597][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.376600][ T195] do_syscall_64+0xff/0x530 [ 11.376603][ T195] ? exc_page_fault+0xee/0x100 [ 11.376606][ T195] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.376608][ T195] RIP: 0033:0x7f1fd099754e [ 11.376612][ T195] 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.376614][ T195] RSP: 002b:00007ffe0dbe14e0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.376617][ T195] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007f1fd099754e [ 11.376618][ T195] RDX: 000000000000000c RSI: 000055ef7fd404b0 RDI: 0000000000000005 [ 11.376619][ T195] RBP: 00007ffe0dbe14f0 R08: 0000000000000000 R09: 0000000000000000 [ 11.376620][ T195] R10: 0000000000000000 R11: 0000000000000202 R12: 000055ef7fd425e0 [ 11.376620][ T195] R13: 000055ef7fd40470 R14: 000000000000000c R15: 0000000000000000 [ 11.376627][ T195]