[ 9.887298][ T224] ip_local_port_range: prefer different parity for start/end values. [ 9.887355][ T224] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.887357][ T224] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 224, name: sysctl [ 9.887359][ T224] preempt_count: 1, expected: 0 [ 9.887360][ T224] RCU nest depth: 0, expected: 0 [ 9.887361][ T224] locks held by sysctl/224: 5, last CPU#0: [ 9.887363][ T224] #0: ff11000009ecc430 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 9.887374][ T224] #1: ffffffffb5b6a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.887380][ T224] #2: ffffffffb5b6a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.887383][ T224] #3: ffffffffb5a89de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.887386][ T224] #4: ffffffffb5a89ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.887389][ T224] irq event stamp: 27090 [ 9.887390][ T224] hardirqs last enabled at (27089): [] __down_trylock_console_sem+0x86/0xa0 [ 9.887393][ T224] hardirqs last disabled at (27090): [] console_emit_next_record+0x3d4/0x4c0 [ 9.887395][ T224] softirqs last enabled at (27072): [] handle_softirqs+0x67c/0x900 [ 9.887398][ T224] softirqs last disabled at (27045): [] __irq_exit_rcu+0x145/0x1c0 [ 9.887400][ T224] Preemption disabled at: [ 9.887401][ T224] [] vprintk_emit+0x31b/0x3e0 [ 9.887407][ T224] CPU: 0 UID: 0 PID: 224 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.887410][ T224] Tainted: [W]=WARN [ 9.887411][ T224] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.887412][ T224] Call Trace: [ 9.887414][ T224] [ 9.887415][ T224] dump_stack_lvl+0x6f/0xa0 [ 9.887420][ T224] ? vprintk_emit+0x31b/0x3e0 [ 9.887422][ T224] __might_resched.cold+0x1fe/0x2c1 [ 9.887426][ T224] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.887429][ T224] ? __kmalloc_noprof+0xdb/0x760 [ 9.887434][ T224] __kmalloc_noprof+0x443/0x760 [ 9.887436][ T224] ? alloc_buf.isra.0+0x4b/0x260 [ 9.887442][ T224] ? do_raw_spin_unlock+0x59/0x250 [ 9.887445][ T224] alloc_buf.isra.0+0x4b/0x260 [ 9.887448][ T224] put_chars+0x1e1/0x2f0 [ 9.887451][ T224] ? __send_to_port+0x420/0x420 [ 9.887454][ T224] ? validate_chain+0x34a/0xc20 [ 9.887459][ T224] hvc_console_print+0x292/0x780 [ 9.887462][ T224] ? __lock_acquire+0x518/0xc20 [ 9.887467][ T224] ? hvc_write+0x3a0/0x3a0 [ 9.887470][ T224] ? rcu_is_watching+0x16/0xd0 [ 9.887476][ T224] console_emit_next_record+0x22f/0x4c0 [ 9.887479][ T224] ? devkmsg_read+0x4b0/0x4b0 [ 9.887480][ T224] ? console_flush_one_record+0x106/0x710 [ 9.887483][ T224] ? rcu_is_watching+0x16/0xd0 [ 9.887485][ T224] ? lock_acquire+0x13c/0x160 [ 9.887489][ T224] console_flush_one_record+0x46f/0x710 [ 9.887492][ T224] ? console_emit_next_record+0x4c0/0x4c0 [ 9.887494][ T224] ? __lock_acquire+0x518/0xc20 [ 9.887499][ T224] console_unlock+0xee/0x1f0 [ 9.887501][ T224] ? console_flush_one_record+0x710/0x710 [ 9.887503][ T224] ? rcu_is_watching+0x16/0xd0 [ 9.887504][ T224] ? lock_acquire+0x60/0x160 [ 9.887508][ T224] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.887510][ T224] ? vprintk_emit+0x320/0x3e0 [ 9.887513][ T224] vprintk_emit+0x37c/0x3e0 [ 9.887516][ T224] ? wake_up_klogd_work_func+0x90/0x90 [ 9.887518][ T224] ? __lock_release.isra.0+0x69/0x1a0 [ 9.887523][ T224] _printk+0xc7/0x100 [ 9.887526][ T224] ? snapshot_read.cold+0x21/0x21 [ 9.887527][ T224] ? ___ratelimit+0x4e7/0xa00 [ 9.887533][ T224] ? idr_get_free+0x830/0x830 [ 9.887534][ T224] ? __might_fault+0x97/0x140 [ 9.887540][ T224] ipv4_local_port_range.cold+0xf/0x44 [ 9.887545][ T224] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 9.887550][ T224] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 9.887553][ T224] ? proc_sys_call_handler+0x25d/0x480 [ 9.887558][ T224] proc_sys_call_handler+0x31b/0x480 [ 9.887561][ T224] ? proc_sys_lookup+0x3d0/0x3d0 [ 9.887564][ T224] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.887566][ T224] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.887569][ T224] ? validate_chain+0x38b/0xc20 [ 9.887571][ T224] ? proc_sys_call_handler+0x480/0x480 [ 9.887573][ T224] new_sync_write+0x33e/0x760 [ 9.887577][ T224] ? __lock_acquire+0x518/0xc20 [ 9.887579][ T224] ? new_sync_read+0x750/0x750 [ 9.887583][ T224] ? lock_acquire.part.0+0xd4/0x280 [ 9.887585][ T224] ? ksys_write+0x116/0x250 [ 9.887591][ T224] vfs_write+0x6a2/0xbd0 [ 9.887594][ T224] ksys_write+0x116/0x250 [ 9.887597][ T224] ? __ia32_sys_read+0xc0/0xc0 [ 9.887598][ T224] ? rcu_is_watching+0x16/0xd0 [ 9.887600][ T224] ? rcu_is_watching+0x16/0xd0 [ 9.887603][ T224] do_syscall_64+0x10e/0x570 [ 9.887606][ T224] ? exc_page_fault+0xee/0x100 [ 9.887609][ T224] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.887611][ T224] RIP: 0033:0x7f356771254e [ 9.887615][ T224] 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.887617][ T224] RSP: 002b:00007fff2aef9700 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 9.887619][ T224] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007f356771254e [ 9.887621][ T224] RDX: 000000000000000c RSI: 00005579cc57a4b0 RDI: 0000000000000005 [ 9.887621][ T224] RBP: 00007fff2aef9710 R08: 0000000000000000 R09: 0000000000000000 [ 9.887622][ T224] R10: 0000000000000000 R11: 0000000000000202 R12: 00005579cc57c5e0 [ 9.887623][ T224] R13: 00005579cc57a470 R14: 000000000000000c R15: 0000000000000000 [ 9.887629][ T224]