[ 9.938061][ T222] ip_local_port_range: prefer different parity for start/end values. [ 9.938125][ T222] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.938127][ T222] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 222, name: sysctl [ 9.938128][ T222] preempt_count: 1, expected: 0 [ 9.938129][ T222] RCU nest depth: 0, expected: 0 [ 9.938130][ T222] locks held by sysctl/222: 5, last CPU#0: [ 9.938132][ T222] #0: ff11000009f44430 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 9.938144][ T222] #1: ffffffffadb6a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.938149][ T222] #2: ffffffffadb6a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.938152][ T222] #3: ffffffffada89de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.938156][ T222] #4: ffffffffada89ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.938159][ T222] irq event stamp: 27938 [ 9.938160][ T222] hardirqs last enabled at (27937): [] __down_trylock_console_sem+0x86/0xa0 [ 9.938163][ T222] hardirqs last disabled at (27938): [] console_emit_next_record+0x3d4/0x4c0 [ 9.938165][ T222] softirqs last enabled at (25520): [] handle_softirqs+0x67c/0x900 [ 9.938168][ T222] softirqs last disabled at (24761): [] __irq_exit_rcu+0x145/0x1c0 [ 9.938170][ T222] Preemption disabled at: [ 9.938171][ T222] [] vprintk_emit+0x31b/0x3e0 [ 9.938176][ T222] CPU: 0 UID: 0 PID: 222 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.938180][ T222] Tainted: [W]=WARN [ 9.938181][ T222] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.938183][ T222] Call Trace: [ 9.938185][ T222] [ 9.938186][ T222] dump_stack_lvl+0x6f/0xa0 [ 9.938191][ T222] ? vprintk_emit+0x31b/0x3e0 [ 9.938193][ T222] __might_resched.cold+0x1fe/0x2c1 [ 9.938197][ T222] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.938201][ T222] ? __kmalloc_noprof+0xdb/0x760 [ 9.938205][ T222] __kmalloc_noprof+0x443/0x760 [ 9.938208][ T222] ? alloc_buf.isra.0+0x4b/0x260 [ 9.938214][ T222] ? do_raw_spin_unlock+0x59/0x250 [ 9.938217][ T222] alloc_buf.isra.0+0x4b/0x260 [ 9.938220][ T222] put_chars+0x1e1/0x2f0 [ 9.938223][ T222] ? __send_to_port+0x420/0x420 [ 9.938226][ T222] ? validate_chain+0x34a/0xc20 [ 9.938231][ T222] hvc_console_print+0x292/0x780 [ 9.938235][ T222] ? __lock_acquire+0x518/0xc20 [ 9.938240][ T222] ? hvc_write+0x3a0/0x3a0 [ 9.938242][ T222] ? rcu_is_watching+0x16/0xd0 [ 9.938248][ T222] console_emit_next_record+0x22f/0x4c0 [ 9.938251][ T222] ? devkmsg_read+0x4b0/0x4b0 [ 9.938252][ T222] ? console_flush_one_record+0x106/0x710 [ 9.938255][ T222] ? rcu_is_watching+0x16/0xd0 [ 9.938257][ T222] ? lock_acquire+0x13c/0x160 [ 9.938261][ T222] console_flush_one_record+0x46f/0x710 [ 9.938264][ T222] ? console_emit_next_record+0x4c0/0x4c0 [ 9.938266][ T222] ? __lock_acquire+0x518/0xc20 [ 9.938272][ T222] console_unlock+0xee/0x1f0 [ 9.938275][ T222] ? console_flush_one_record+0x710/0x710 [ 9.938276][ T222] ? rcu_is_watching+0x16/0xd0 [ 9.938278][ T222] ? lock_acquire+0x60/0x160 [ 9.938282][ T222] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.938284][ T222] ? vprintk_emit+0x320/0x3e0 [ 9.938287][ T222] vprintk_emit+0x37c/0x3e0 [ 9.938290][ T222] ? wake_up_klogd_work_func+0x90/0x90 [ 9.938292][ T222] ? __lock_release.isra.0+0x69/0x1a0 [ 9.938296][ T222] _printk+0xc7/0x100 [ 9.938300][ T222] ? snapshot_read.cold+0x21/0x21 [ 9.938301][ T222] ? ___ratelimit+0x4e7/0xa00 [ 9.938307][ T222] ? idr_get_free+0x830/0x830 [ 9.938308][ T222] ? __might_fault+0x97/0x140 [ 9.938314][ T222] ipv4_local_port_range.cold+0xf/0x44 [ 9.938319][ T222] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 9.938324][ T222] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 9.938327][ T222] ? proc_sys_call_handler+0x25d/0x480 [ 9.938332][ T222] proc_sys_call_handler+0x31b/0x480 [ 9.938334][ T222] ? proc_sys_lookup+0x3d0/0x3d0 [ 9.938337][ T222] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.938339][ T222] ? rcu_read_lock_any_held+0x3c/0x90 [ 9.938342][ T222] ? validate_chain+0x38b/0xc20 [ 9.938344][ T222] ? proc_sys_call_handler+0x480/0x480 [ 9.938347][ T222] new_sync_write+0x33e/0x760 [ 9.938350][ T222] ? __lock_acquire+0x518/0xc20 [ 9.938353][ T222] ? new_sync_read+0x750/0x750 [ 9.938356][ T222] ? lock_acquire.part.0+0xd4/0x280 [ 9.938358][ T222] ? ksys_write+0x116/0x250 [ 9.938364][ T222] vfs_write+0x6a2/0xbd0 [ 9.938368][ T222] ksys_write+0x116/0x250 [ 9.938370][ T222] ? __ia32_sys_read+0xc0/0xc0 [ 9.938372][ T222] ? rcu_is_watching+0x16/0xd0 [ 9.938374][ T222] ? rcu_is_watching+0x16/0xd0 [ 9.938377][ T222] do_syscall_64+0x10e/0x570 [ 9.938379][ T222] ? exc_page_fault+0xee/0x100 [ 9.938383][ T222] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.938385][ T222] RIP: 0033:0x7fbc4cbbe54e [ 9.938389][ 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 [ 9.938390][ T222] RSP: 002b:00007fff284ae200 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 9.938393][ T222] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fbc4cbbe54e [ 9.938394][ T222] RDX: 000000000000000c RSI: 000055ab7ff884b0 RDI: 0000000000000005 [ 9.938395][ T222] RBP: 00007fff284ae210 R08: 0000000000000000 R09: 0000000000000000 [ 9.938396][ T222] R10: 0000000000000000 R11: 0000000000000202 R12: 000055ab7ff8a5e0 [ 9.938397][ T222] R13: 000055ab7ff88470 R14: 000000000000000c R15: 0000000000000000 [ 9.938403][ T222]