[ 11.150898][ T224] ip_local_port_range: prefer different parity for start/end values. [ 11.151016][ T224] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 11.151019][ T224] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 224, name: sysctl [ 11.151023][ T224] preempt_count: 1, expected: 0 [ 11.151024][ T224] RCU nest depth: 0, expected: 0 [ 11.151025][ T224] locks held by sysctl/224: 5, last CPU#3: [ 11.151027][ T224] #0: ff11000009f91430 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 11.151040][ T224] #1: ffffffffb876a440 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 11.151045][ T224] #2: ffffffffb876a4b8 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 11.151049][ T224] #3: ffffffffb8689de0 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 11.151052][ T224] #4: ffffffffb8689ce0 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 11.151055][ T224] irq event stamp: 35042 [ 11.151056][ T224] hardirqs last enabled at (35041): [] __down_trylock_console_sem+0x86/0xa0 [ 11.151060][ T224] hardirqs last disabled at (35042): [] console_emit_next_record+0x3d4/0x4c0 [ 11.151062][ T224] softirqs last enabled at (34446): [] handle_softirqs+0x67c/0x900 [ 11.151065][ T224] softirqs last disabled at (32923): [] __irq_exit_rcu+0x145/0x1c0 [ 11.151067][ T224] Preemption disabled at: [ 11.151068][ T224] [] vprintk_emit+0x31b/0x3e0 [ 11.151073][ T224] CPU: 3 UID: 0 PID: 224 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 11.151077][ T224] Tainted: [W]=WARN [ 11.151078][ T224] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 11.151080][ T224] Call Trace: [ 11.151081][ T224] [ 11.151083][ T224] dump_stack_lvl+0x6f/0xa0 [ 11.151088][ T224] ? vprintk_emit+0x31b/0x3e0 [ 11.151090][ T224] __might_resched.cold+0x1fe/0x2c1 [ 11.151094][ T224] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 11.151098][ T224] ? __kmalloc_noprof+0xdb/0x760 [ 11.151103][ T224] __kmalloc_noprof+0x443/0x760 [ 11.151105][ T224] ? alloc_buf.isra.0+0x4b/0x260 [ 11.151112][ T224] ? do_raw_spin_unlock+0x59/0x250 [ 11.151115][ T224] alloc_buf.isra.0+0x4b/0x260 [ 11.151119][ T224] put_chars+0x1e1/0x2f0 [ 11.151122][ T224] ? __send_to_port+0x420/0x420 [ 11.151125][ T224] ? validate_chain+0x34a/0xc20 [ 11.151131][ T224] hvc_console_print+0x292/0x780 [ 11.151134][ T224] ? __lock_acquire+0x518/0xc20 [ 11.151140][ T224] ? hvc_write+0x3a0/0x3a0 [ 11.151143][ T224] ? rcu_is_watching+0x16/0xd0 [ 11.151149][ T224] console_emit_next_record+0x22f/0x4c0 [ 11.151153][ T224] ? devkmsg_read+0x4b0/0x4b0 [ 11.151154][ T224] ? console_flush_one_record+0x106/0x710 [ 11.151157][ T224] ? rcu_is_watching+0x16/0xd0 [ 11.151159][ T224] ? lock_acquire+0x13c/0x160 [ 11.151164][ T224] console_flush_one_record+0x46f/0x710 [ 11.151168][ T224] ? console_emit_next_record+0x4c0/0x4c0 [ 11.151169][ T224] ? __lock_acquire+0x518/0xc20 [ 11.151175][ T224] console_unlock+0xee/0x1f0 [ 11.151177][ T224] ? console_flush_one_record+0x710/0x710 [ 11.151179][ T224] ? rcu_is_watching+0x16/0xd0 [ 11.151181][ T224] ? lock_acquire+0x60/0x160 [ 11.151185][ T224] ? __down_trylock_console_sem+0x5e/0xa0 [ 11.151187][ T224] ? vprintk_emit+0x320/0x3e0 [ 11.151190][ T224] vprintk_emit+0x37c/0x3e0 [ 11.151193][ T224] ? wake_up_klogd_work_func+0x90/0x90 [ 11.151196][ T224] ? __lock_release.isra.0+0x69/0x1a0 [ 11.151201][ T224] _printk+0xc7/0x100 [ 11.151204][ T224] ? snapshot_read.cold+0x21/0x21 [ 11.151206][ T224] ? ___ratelimit+0x4e7/0xa00 [ 11.151212][ T224] ? idr_get_free+0x830/0x830 [ 11.151213][ T224] ? __might_fault+0x97/0x140 [ 11.151219][ T224] ipv4_local_port_range.cold+0xf/0x44 [ 11.151224][ T224] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 11.151230][ T224] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 11.151233][ T224] ? proc_sys_call_handler+0x25d/0x480 [ 11.151239][ T224] proc_sys_call_handler+0x31b/0x480 [ 11.151241][ T224] ? proc_sys_lookup+0x3d0/0x3d0 [ 11.151244][ T224] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 11.151247][ T224] ? rcu_read_lock_any_held+0x3c/0x90 [ 11.151250][ T224] ? validate_chain+0x38b/0xc20 [ 11.151252][ T224] ? proc_sys_call_handler+0x480/0x480 [ 11.151255][ T224] new_sync_write+0x33e/0x760 [ 11.151259][ T224] ? __lock_acquire+0x518/0xc20 [ 11.151262][ T224] ? new_sync_read+0x750/0x750 [ 11.151266][ T224] ? lock_acquire.part.0+0xd4/0x280 [ 11.151268][ T224] ? ksys_write+0x116/0x250 [ 11.151275][ T224] vfs_write+0x6a2/0xbd0 [ 11.151279][ T224] ksys_write+0x116/0x250 [ 11.151281][ T224] ? __ia32_sys_read+0xc0/0xc0 [ 11.151283][ T224] ? rcu_is_watching+0x16/0xd0 [ 11.151285][ T224] ? rcu_is_watching+0x16/0xd0 [ 11.151289][ T224] do_syscall_64+0x10e/0x570 [ 11.151297][ T224] ? exc_page_fault+0xee/0x100 [ 11.151301][ T224] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 11.151303][ T224] RIP: 0033:0x7fa96907254e [ 11.151307][ 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 [ 11.151309][ T224] RSP: 002b:00007fff23b16d20 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 11.151312][ T224] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fa96907254e [ 11.151313][ T224] RDX: 000000000000000c RSI: 00005572915e14b0 RDI: 0000000000000005 [ 11.151314][ T224] RBP: 00007fff23b16d30 R08: 0000000000000000 R09: 0000000000000000 [ 11.151315][ T224] R10: 0000000000000000 R11: 0000000000000202 R12: 00005572915e35e0 [ 11.151316][ T224] R13: 00005572915e1470 R14: 000000000000000c R15: 0000000000000000 [ 11.151323][ T224]