[ 10.862265][ T222] ip_local_port_range: prefer different parity for start/end values. [ 10.862370][ T222] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.862372][ T222] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 222, name: sysctl [ 10.862373][ T222] preempt_count: 1, expected: 0 [ 10.862374][ T222] RCU nest depth: 0, expected: 0 [ 10.862375][ T222] locks held by sysctl/222: 5, last CPU#0: [ 10.862377][ T222] #0: ff11000009f7c430 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.862390][ T222] #1: ffffffffaa16a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.862395][ T222] #2: ffffffffaa16a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.862398][ T222] #3: ffffffffaa089de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.862401][ T222] #4: ffffffffaa089ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.862405][ T222] irq event stamp: 35832 [ 10.862406][ T222] hardirqs last enabled at (35831): [] __down_trylock_console_sem+0x86/0xa0 [ 10.862409][ T222] hardirqs last disabled at (35832): [] console_emit_next_record+0x3d4/0x4c0 [ 10.862411][ T222] softirqs last enabled at (33820): [] handle_softirqs+0x67c/0x900 [ 10.862414][ T222] softirqs last disabled at (33813): [] __irq_exit_rcu+0x145/0x1c0 [ 10.862417][ T222] Preemption disabled at: [ 10.862417][ T222] [] vprintk_emit+0x31b/0x3e0 [ 10.862423][ T222] CPU: 0 UID: 0 PID: 222 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.862426][ T222] Tainted: [W]=WARN [ 10.862427][ T222] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.862429][ T222] Call Trace: [ 10.862430][ T222] [ 10.862432][ T222] dump_stack_lvl+0x6f/0xa0 [ 10.862437][ T222] ? vprintk_emit+0x31b/0x3e0 [ 10.862438][ T222] __might_resched.cold+0x1fe/0x2c1 [ 10.862443][ T222] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.862446][ T222] ? __kmalloc_noprof+0xdb/0x760 [ 10.862450][ T222] __kmalloc_noprof+0x443/0x760 [ 10.862453][ T222] ? alloc_buf.isra.0+0x4b/0x260 [ 10.862459][ T222] ? do_raw_spin_unlock+0x59/0x250 [ 10.862462][ T222] alloc_buf.isra.0+0x4b/0x260 [ 10.862465][ T222] put_chars+0x1e1/0x2f0 [ 10.862468][ T222] ? __send_to_port+0x420/0x420 [ 10.862471][ T222] ? validate_chain+0x34a/0xc20 [ 10.862477][ T222] hvc_console_print+0x292/0x780 [ 10.862480][ T222] ? __lock_acquire+0x518/0xc20 [ 10.862485][ T222] ? hvc_write+0x3a0/0x3a0 [ 10.862488][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.862494][ T222] console_emit_next_record+0x22f/0x4c0 [ 10.862497][ T222] ? devkmsg_read+0x4b0/0x4b0 [ 10.862498][ T222] ? console_flush_one_record+0x106/0x710 [ 10.862501][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.862502][ T222] ? lock_acquire+0x13c/0x160 [ 10.862507][ T222] console_flush_one_record+0x46f/0x710 [ 10.862510][ T222] ? console_emit_next_record+0x4c0/0x4c0 [ 10.862512][ T222] ? __lock_acquire+0x518/0xc20 [ 10.862517][ T222] console_unlock+0xee/0x1f0 [ 10.862519][ T222] ? console_flush_one_record+0x710/0x710 [ 10.862520][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.862522][ T222] ? lock_acquire+0x60/0x160 [ 10.862526][ T222] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.862528][ T222] ? vprintk_emit+0x320/0x3e0 [ 10.862531][ T222] vprintk_emit+0x37c/0x3e0 [ 10.862534][ T222] ? wake_up_klogd_work_func+0x90/0x90 [ 10.862536][ T222] ? __lock_release.isra.0+0x69/0x1a0 [ 10.862541][ T222] _printk+0xc7/0x100 [ 10.862544][ T222] ? snapshot_read.cold+0x21/0x21 [ 10.862546][ T222] ? ___ratelimit+0x4e7/0xa00 [ 10.862551][ T222] ? idr_get_free+0x830/0x830 [ 10.862553][ T222] ? __might_fault+0x97/0x140 [ 10.862558][ T222] ipv4_local_port_range.cold+0xf/0x44 [ 10.862563][ T222] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 10.862568][ T222] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 10.862571][ T222] ? proc_sys_call_handler+0x25d/0x480 [ 10.862576][ T222] proc_sys_call_handler+0x31b/0x480 [ 10.862579][ T222] ? proc_sys_lookup+0x3d0/0x3d0 [ 10.862581][ T222] ? rcu_read_unlock+0x20/0x70 [ 10.862583][ T222] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.862586][ T222] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.862588][ T222] ? validate_chain+0x38b/0xc20 [ 10.862591][ T222] ? proc_sys_call_handler+0x480/0x480 [ 10.862593][ T222] new_sync_write+0x33e/0x760 [ 10.862596][ T222] ? __lock_acquire+0x518/0xc20 [ 10.862600][ T222] ? new_sync_read+0x750/0x750 [ 10.862603][ T222] ? lock_acquire.part.0+0xd4/0x280 [ 10.862605][ T222] ? ksys_write+0x116/0x250 [ 10.862611][ T222] vfs_write+0x6a2/0xbd0 [ 10.862614][ T222] ksys_write+0x116/0x250 [ 10.862617][ T222] ? __ia32_sys_read+0xc0/0xc0 [ 10.862618][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.862620][ T222] ? rcu_is_watching+0x16/0xd0 [ 10.862623][ T222] do_syscall_64+0x10e/0x570 [ 10.862626][ T222] ? exc_page_fault+0xee/0x100 [ 10.862629][ T222] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.862632][ T222] RIP: 0033:0x7fa58ac9354e [ 10.862636][ 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.862637][ T222] RSP: 002b:00007ffde48332a0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.862640][ T222] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fa58ac9354e [ 10.862641][ T222] RDX: 000000000000000c RSI: 00005603b165f4b0 RDI: 0000000000000005 [ 10.862642][ T222] RBP: 00007ffde48332b0 R08: 0000000000000000 R09: 0000000000000000 [ 10.862643][ T222] R10: 0000000000000000 R11: 0000000000000202 R12: 00005603b16615e0 [ 10.862643][ T222] R13: 00005603b165f470 R14: 000000000000000c R15: 0000000000000000 [ 10.862650][ T222]