[ 10.429380][ T195] ip_local_port_range: prefer different parity for start/end values. [ 10.429464][ T195] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.429466][ T195] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 195, name: sysctl [ 10.429468][ T195] preempt_count: 1, expected: 0 [ 10.429469][ T195] RCU nest depth: 0, expected: 0 [ 10.429470][ T195] locks held by sysctl/195: 5, last CPU#3: [ 10.429472][ T195] #0: ff1100000a684438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.429485][ T195] #1: ffffffff8c57ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.429490][ T195] #2: ffffffff8c57de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.429495][ T195] #3: ffffffff8c49d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.429498][ T195] #4: ffffffff8c49d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.429502][ T195] irq event stamp: 25110 [ 10.429503][ T195] hardirqs last enabled at (25109): [] __down_trylock_console_sem+0x86/0xa0 [ 10.429506][ T195] hardirqs last disabled at (25110): [] console_emit_next_record+0x3d4/0x4c0 [ 10.429508][ T195] softirqs last enabled at (23474): [] handle_softirqs+0x67c/0x900 [ 10.429512][ T195] softirqs last disabled at (22277): [] __irq_exit_rcu+0x145/0x1c0 [ 10.429514][ T195] Preemption disabled at: [ 10.429515][ T195] [] vprintk_emit+0x31b/0x3e0 [ 10.429520][ T195] CPU: 3 UID: 0 PID: 195 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.429524][ T195] Tainted: [W]=WARN [ 10.429525][ T195] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.429527][ T195] Call Trace: [ 10.429528][ T195] [ 10.429529][ T195] dump_stack_lvl+0x6f/0xa0 [ 10.429535][ T195] ? vprintk_emit+0x31b/0x3e0 [ 10.429537][ T195] __might_resched.cold+0x1fe/0x2c1 [ 10.429542][ T195] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.429546][ T195] ? __kmalloc_noprof+0xdb/0x760 [ 10.429550][ T195] __kmalloc_noprof+0x443/0x760 [ 10.429552][ T195] ? alloc_buf.isra.0+0x4b/0x260 [ 10.429559][ T195] ? do_raw_spin_unlock+0x59/0x250 [ 10.429562][ T195] alloc_buf.isra.0+0x4b/0x260 [ 10.429566][ T195] put_chars+0x1e1/0x2f0 [ 10.429568][ T195] ? __send_to_port+0x420/0x420 [ 10.429572][ T195] ? validate_chain+0x34a/0xc20 [ 10.429576][ T195] hvc_console_print+0x292/0x780 [ 10.429580][ T195] ? __lock_acquire+0x518/0xc20 [ 10.429582][ T195] ? __lock_acquire+0x518/0xc20 [ 10.429587][ T195] ? hvc_write+0x3a0/0x3a0 [ 10.429591][ T195] ? console_emit_next_record+0x1df/0x4c0 [ 10.429594][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.429597][ T195] ? lock_acquire+0x13c/0x160 [ 10.429601][ T195] console_emit_next_record+0x22f/0x4c0 [ 10.429605][ T195] ? devkmsg_read+0x4b0/0x4b0 [ 10.429607][ T195] ? console_flush_one_record+0x106/0x710 [ 10.429610][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.429612][ T195] ? lock_acquire+0x13c/0x160 [ 10.429616][ T195] console_flush_one_record+0x46f/0x710 [ 10.429620][ T195] ? console_emit_next_record+0x4c0/0x4c0 [ 10.429622][ T195] ? __lock_acquire+0x518/0xc20 [ 10.429627][ T195] console_unlock+0xee/0x1f0 [ 10.429630][ T195] ? console_flush_one_record+0x710/0x710 [ 10.429631][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.429633][ T195] ? lock_acquire+0xe0/0x160 [ 10.429637][ T195] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.429639][ T195] ? vprintk_emit+0x320/0x3e0 [ 10.429641][ T195] vprintk_emit+0x37c/0x3e0 [ 10.429644][ T195] ? wake_up_klogd_work_func+0x90/0x90 [ 10.429646][ T195] ? __lock_release.isra.0+0x69/0x1a0 [ 10.429651][ T195] _printk+0xc7/0x100 [ 10.429654][ T195] ? snapshot_read.cold+0x21/0x21 [ 10.429656][ T195] ? ___ratelimit+0x4e7/0xa00 [ 10.429663][ T195] ? idr_get_free+0x830/0x830 [ 10.429664][ T195] ? __might_fault+0x97/0x140 [ 10.429669][ T195] ipv4_local_port_range.cold+0xf/0x44 [ 10.429673][ T195] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 10.429679][ T195] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 10.429682][ T195] ? proc_sys_call_handler+0x25d/0x480 [ 10.429687][ T195] proc_sys_call_handler+0x31b/0x480 [ 10.429690][ T195] ? proc_sys_lookup+0x3d0/0x3d0 [ 10.429693][ T195] ? handle_pte_fault+0x426/0x710 [ 10.429695][ T195] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.429697][ T195] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.429700][ T195] ? validate_chain+0x38b/0xc20 [ 10.429702][ T195] ? proc_sys_call_handler+0x480/0x480 [ 10.429705][ T195] new_sync_write+0x33e/0x760 [ 10.429707][ T195] ? __lock_acquire+0x518/0xc20 [ 10.429710][ T195] ? new_sync_read+0x750/0x750 [ 10.429713][ T195] ? lock_acquire.part.0+0xd4/0x280 [ 10.429715][ T195] ? ksys_write+0x116/0x250 [ 10.429720][ T195] vfs_write+0x655/0x970 [ 10.429724][ T195] ksys_write+0x116/0x250 [ 10.429727][ T195] ? __ia32_sys_read+0xc0/0xc0 [ 10.429729][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.429730][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.429733][ T195] do_syscall_64+0xff/0x530 [ 10.429736][ T195] ? exc_page_fault+0xee/0x100 [ 10.429739][ T195] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.429741][ T195] RIP: 0033:0x7fa682acf54e [ 10.429745][ 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 [ 10.429747][ T195] RSP: 002b:00007ffdb6e01ae0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.429749][ T195] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fa682acf54e [ 10.429750][ T195] RDX: 000000000000000c RSI: 00005556143024b0 RDI: 0000000000000005 [ 10.429751][ T195] RBP: 00007ffdb6e01af0 R08: 0000000000000000 R09: 0000000000000000 [ 10.429752][ T195] R10: 0000000000000000 R11: 0000000000000202 R12: 00005556143045e0 [ 10.429753][ T195] R13: 0000555614302470 R14: 000000000000000c R15: 0000000000000000 [ 10.429759][ T195]