[ 9.968778][ T194] ip_local_port_range: prefer different parity for start/end values. [ 9.968892][ T194] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.968894][ T194] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 194, name: sysctl [ 9.968896][ T194] preempt_count: 1, expected: 0 [ 9.968896][ T194] RCU nest depth: 0, expected: 0 [ 9.968897][ T194] locks held by sysctl/194: 5, last CPU#3: [ 9.968899][ T194] #0: ff1100000a754438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 9.968912][ T194] #1: ffffffff8e17ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.968917][ T194] #2: ffffffff8e17de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.968921][ T194] #3: ffffffff8e09d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.968925][ T194] #4: ffffffff8e09d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.968928][ T194] irq event stamp: 24358 [ 9.968929][ T194] hardirqs last enabled at (24357): [] irqentry_exit+0x21c/0x790 [ 9.968933][ T194] hardirqs last disabled at (24358): [] console_emit_next_record+0x3d4/0x4c0 [ 9.968935][ T194] softirqs last enabled at (21864): [] netlink_release+0x17b/0xcf0 [ 9.968939][ T194] softirqs last disabled at (21862): [] netlink_release+0xd2/0xcf0 [ 9.968942][ T194] Preemption disabled at: [ 9.968942][ T194] [] vprintk_emit+0x31b/0x3e0 [ 9.968947][ T194] CPU: 3 UID: 0 PID: 194 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.968951][ T194] Tainted: [W]=WARN [ 9.968952][ T194] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.968954][ T194] Call Trace: [ 9.968956][ T194] [ 9.968957][ T194] dump_stack_lvl+0x6f/0xa0 [ 9.968963][ T194] ? vprintk_emit+0x31b/0x3e0 [ 9.968965][ T194] __might_resched.cold+0x1fe/0x2c1 [ 9.968969][ T194] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.968973][ T194] ? __kmalloc_noprof+0xdb/0x760 [ 9.968977][ T194] __kmalloc_noprof+0x443/0x760 [ 9.968979][ T194] ? alloc_buf.isra.0+0x4b/0x260 [ 9.968986][ T194] ? do_raw_spin_unlock+0x59/0x250 [ 9.968989][ T194] alloc_buf.isra.0+0x4b/0x260 [ 9.968992][ T194] put_chars+0x1e1/0x2f0 [ 9.968995][ T194] ? __send_to_port+0x420/0x420 [ 9.968998][ T194] ? validate_chain+0x34a/0xc20 [ 9.969002][ T194] hvc_console_print+0x292/0x780 [ 9.969006][ T194] ? __lock_acquire+0x518/0xc20 [ 9.969008][ T194] ? __lock_acquire+0x518/0xc20 [ 9.969013][ T194] ? hvc_write+0x3a0/0x3a0 [ 9.969014][ T194] ? console_emit_next_record+0x1df/0x4c0 [ 9.969018][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.969020][ T194] ? lock_acquire+0x13c/0x160 [ 9.969024][ T194] console_emit_next_record+0x22f/0x4c0 [ 9.969028][ T194] ? devkmsg_read+0x4b0/0x4b0 [ 9.969030][ T194] ? console_flush_one_record+0x106/0x710 [ 9.969033][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.969035][ T194] ? lock_acquire+0x13c/0x160 [ 9.969039][ T194] console_flush_one_record+0x46f/0x710 [ 9.969043][ T194] ? console_emit_next_record+0x4c0/0x4c0 [ 9.969044][ T194] ? __lock_acquire+0x518/0xc20 [ 9.969046][ T194] ? write_ibpb+0xb/0x30 [ 9.969052][ T194] console_unlock+0xee/0x1f0 [ 9.969055][ T194] ? console_flush_one_record+0x710/0x710 [ 9.969057][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.969058][ T194] ? lock_acquire+0xe0/0x160 [ 9.969062][ T194] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.969064][ T194] ? vprintk_emit+0x320/0x3e0 [ 9.969067][ T194] vprintk_emit+0x37c/0x3e0 [ 9.969069][ T194] ? wake_up_klogd_work_func+0x90/0x90 [ 9.969072][ T194] ? __lock_release.isra.0+0x69/0x1a0 [ 9.969076][ T194] _printk+0xc7/0x100 [ 9.969079][ T194] ? snapshot_read.cold+0x21/0x21 [ 9.969081][ T194] ? ___ratelimit+0x4e7/0xa00 [ 9.969086][ T194] ? idr_get_free+0x830/0x830 [ 9.969088][ T194] ? __might_fault+0x97/0x140 [ 9.969093][ T194] ipv4_local_port_range.cold+0xf/0x44 [ 9.969097][ T194] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 9.969103][ T194] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 9.969105][ T194] ? proc_sys_call_handler+0x25d/0x480 [ 9.969111][ T194] proc_sys_call_handler+0x31b/0x480 [ 9.969113][ T194] ? proc_sys_lookup+0x3d0/0x3d0 [ 9.969116][ T194] ? handle_pte_fault+0x426/0x710 [ 9.969118][ T194] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.969120][ T194] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.969123][ T194] ? validate_chain+0x38b/0xc20 [ 9.969125][ T194] ? proc_sys_call_handler+0x480/0x480 [ 9.969127][ T194] new_sync_write+0x33e/0x760 [ 9.969130][ T194] ? __lock_acquire+0x518/0xc20 [ 9.969132][ T194] ? new_sync_read+0x750/0x750 [ 9.969135][ T194] ? lock_acquire.part.0+0xd4/0x280 [ 9.969137][ T194] ? ksys_write+0x116/0x250 [ 9.969143][ T194] vfs_write+0x655/0x970 [ 9.969147][ T194] ksys_write+0x116/0x250 [ 9.969149][ T194] ? __ia32_sys_read+0xc0/0xc0 [ 9.969151][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.969153][ T194] ? rcu_is_watching+0x16/0xd0 [ 9.969156][ T194] do_syscall_64+0xff/0x530 [ 9.969158][ T194] ? exc_page_fault+0xee/0x100 [ 9.969161][ T194] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.969163][ T194] RIP: 0033:0x7fc42fc8f54e [ 9.969167][ T194] 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 [ 9.969168][ T194] RSP: 002b:00007ffd5bf818d0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 9.969171][ T194] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fc42fc8f54e [ 9.969172][ T194] RDX: 000000000000000c RSI: 000055ec2e73c4b0 RDI: 0000000000000005 [ 9.969173][ T194] RBP: 00007ffd5bf818e0 R08: 0000000000000000 R09: 0000000000000000 [ 9.969174][ T194] R10: 0000000000000000 R11: 0000000000000202 R12: 000055ec2e73e5e0 [ 9.969175][ T194] R13: 000055ec2e73c470 R14: 000000000000000c R15: 0000000000000000 [ 9.969181][ T194]