[ 11.287691][ T195] ip_local_port_range: prefer different parity for start/end values. [ 11.287790][ T195] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.287792][ T195] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 195, name: sysctl [ 11.287794][ T195] preempt_count: 1, expected: 0 [ 11.287795][ T195] RCU nest depth: 0, expected: 0 [ 11.287796][ T195] locks held by sysctl/195: 5, last CPU#2: [ 11.287798][ T195] #0: ff1100000a5dc438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 11.287810][ T195] #1: ffffffff9e57ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.287815][ T195] #2: ffffffff9e57de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.287820][ T195] #3: ffffffff9e49d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.287823][ T195] #4: ffffffff9e49d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.287827][ T195] irq event stamp: 35574 [ 11.287828][ T195] hardirqs last enabled at (35573): [] __down_trylock_console_sem+0x86/0xa0 [ 11.287831][ T195] hardirqs last disabled at (35574): [] console_emit_next_record+0x3d4/0x4c0 [ 11.287833][ T195] softirqs last enabled at (35444): [] handle_softirqs+0x67c/0x900 [ 11.287836][ T195] softirqs last disabled at (35121): [] __irq_exit_rcu+0x145/0x1c0 [ 11.287839][ T195] Preemption disabled at: [ 11.287839][ T195] [] vprintk_emit+0x31b/0x3e0 [ 11.287845][ T195] CPU: 2 UID: 0 PID: 195 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.287849][ T195] Tainted: [W]=WARN [ 11.287850][ T195] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.287852][ T195] Call Trace: [ 11.287854][ T195] [ 11.287855][ T195] dump_stack_lvl+0x6f/0xa0 [ 11.287861][ T195] ? vprintk_emit+0x31b/0x3e0 [ 11.287863][ T195] __might_resched.cold+0x1fe/0x2c1 [ 11.287867][ T195] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.287871][ T195] ? __kmalloc_noprof+0xdb/0x760 [ 11.287875][ T195] __kmalloc_noprof+0x443/0x760 [ 11.287877][ T195] ? alloc_buf.isra.0+0x4b/0x260 [ 11.287884][ T195] ? do_raw_spin_unlock+0x59/0x250 [ 11.287887][ T195] alloc_buf.isra.0+0x4b/0x260 [ 11.287891][ T195] put_chars+0x1e1/0x2f0 [ 11.287894][ T195] ? __send_to_port+0x420/0x420 [ 11.287897][ T195] ? validate_chain+0x34a/0xc20 [ 11.287901][ T195] hvc_console_print+0x292/0x780 [ 11.287906][ T195] ? __lock_acquire+0x518/0xc20 [ 11.287907][ T195] ? __lock_acquire+0x518/0xc20 [ 11.287912][ T195] ? hvc_write+0x3a0/0x3a0 [ 11.287914][ T195] ? console_emit_next_record+0x1df/0x4c0 [ 11.287917][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.287919][ T195] ? lock_acquire+0x13c/0x160 [ 11.287923][ T195] console_emit_next_record+0x22f/0x4c0 [ 11.287927][ T195] ? devkmsg_read+0x4b0/0x4b0 [ 11.287929][ T195] ? console_flush_one_record+0x106/0x710 [ 11.287932][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.287934][ T195] ? lock_acquire+0x13c/0x160 [ 11.287937][ T195] console_flush_one_record+0x46f/0x710 [ 11.287941][ T195] ? console_emit_next_record+0x4c0/0x4c0 [ 11.287943][ T195] ? __lock_acquire+0x518/0xc20 [ 11.287948][ T195] console_unlock+0xee/0x1f0 [ 11.287951][ T195] ? console_flush_one_record+0x710/0x710 [ 11.287953][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.287955][ T195] ? lock_acquire+0xe0/0x160 [ 11.287958][ T195] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.287960][ T195] ? vprintk_emit+0x320/0x3e0 [ 11.287963][ T195] vprintk_emit+0x37c/0x3e0 [ 11.287966][ T195] ? wake_up_klogd_work_func+0x90/0x90 [ 11.287968][ T195] ? __lock_release.isra.0+0x69/0x1a0 [ 11.287972][ T195] _printk+0xc7/0x100 [ 11.287976][ T195] ? snapshot_read.cold+0x21/0x21 [ 11.287978][ T195] ? ___ratelimit+0x4e7/0xa00 [ 11.287984][ T195] ? idr_get_free+0x830/0x830 [ 11.287986][ T195] ? __might_fault+0x97/0x140 [ 11.287990][ T195] ipv4_local_port_range.cold+0xf/0x44 [ 11.287995][ T195] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 11.288001][ T195] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 11.288004][ T195] ? proc_sys_call_handler+0x25d/0x480 [ 11.288009][ T195] proc_sys_call_handler+0x31b/0x480 [ 11.288012][ T195] ? proc_sys_lookup+0x3d0/0x3d0 [ 11.288014][ T195] ? handle_pte_fault+0x426/0x710 [ 11.288017][ T195] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.288018][ T195] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.288021][ T195] ? validate_chain+0x38b/0xc20 [ 11.288024][ T195] ? proc_sys_call_handler+0x480/0x480 [ 11.288026][ T195] new_sync_write+0x33e/0x760 [ 11.288029][ T195] ? __lock_acquire+0x518/0xc20 [ 11.288031][ T195] ? new_sync_read+0x750/0x750 [ 11.288034][ T195] ? lock_acquire.part.0+0xd4/0x280 [ 11.288036][ T195] ? ksys_write+0x116/0x250 [ 11.288042][ T195] vfs_write+0x655/0x970 [ 11.288046][ T195] ksys_write+0x116/0x250 [ 11.288048][ T195] ? __ia32_sys_read+0xc0/0xc0 [ 11.288050][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.288052][ T195] ? rcu_is_watching+0x16/0xd0 [ 11.288055][ T195] do_syscall_64+0xff/0x530 [ 11.288058][ T195] ? exc_page_fault+0xee/0x100 [ 11.288061][ T195] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.288063][ T195] RIP: 0033:0x7fe6cdcd054e [ 11.288067][ 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.288069][ T195] RSP: 002b:00007fff94d936c0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.288071][ T195] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fe6cdcd054e [ 11.288073][ T195] RDX: 000000000000000c RSI: 0000564a881f14b0 RDI: 0000000000000005 [ 11.288074][ T195] RBP: 00007fff94d936d0 R08: 0000000000000000 R09: 0000000000000000 [ 11.288074][ T195] R10: 0000000000000000 R11: 0000000000000202 R12: 0000564a881f35e0 [ 11.288075][ T195] R13: 0000564a881f1470 R14: 000000000000000c R15: 0000000000000000 [ 11.288082][ T195]