[ 10.279134][ T195] ip_local_port_range: prefer different parity for start/end values. [ 10.279195][ T195] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.279197][ T195] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 195, name: sysctl [ 10.279199][ T195] preempt_count: 1, expected: 0 [ 10.279200][ T195] RCU nest depth: 0, expected: 0 [ 10.279201][ T195] locks held by sysctl/195: 5, last CPU#3: [ 10.279203][ T195] #0: ff1100000a6a4438 (sb_writers#3){.+.+}-{0:0}, at: ksys_write+0x116/0x250 [ 10.279215][ T195] #1: ffffffff9897ddc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.279220][ T195] #2: ffffffff9897de38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.279224][ T195] #3: ffffffff9889d760 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.279228][ T195] #4: ffffffff9889d660 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.279232][ T195] irq event stamp: 34830 [ 10.279233][ T195] hardirqs last enabled at (34829): [] __down_trylock_console_sem+0x86/0xa0 [ 10.279236][ T195] hardirqs last disabled at (34830): [] console_emit_next_record+0x3d4/0x4c0 [ 10.279238][ T195] softirqs last enabled at (32688): [] handle_softirqs+0x67c/0x900 [ 10.279242][ T195] softirqs last disabled at (31871): [] __irq_exit_rcu+0x145/0x1c0 [ 10.279244][ T195] Preemption disabled at: [ 10.279245][ T195] [] vprintk_emit+0x31b/0x3e0 [ 10.279250][ T195] CPU: 3 UID: 0 PID: 195 Comm: sysctl Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.279253][ T195] Tainted: [W]=WARN [ 10.279254][ T195] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.279256][ T195] Call Trace: [ 10.279258][ T195] [ 10.279259][ T195] dump_stack_lvl+0x6f/0xa0 [ 10.279265][ T195] ? vprintk_emit+0x31b/0x3e0 [ 10.279267][ T195] __might_resched.cold+0x1fe/0x2c1 [ 10.279272][ T195] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.279276][ T195] ? __kmalloc_noprof+0xdb/0x760 [ 10.279280][ T195] __kmalloc_noprof+0x443/0x760 [ 10.279282][ T195] ? alloc_buf.isra.0+0x4b/0x260 [ 10.279289][ T195] ? do_raw_spin_unlock+0x59/0x250 [ 10.279291][ T195] alloc_buf.isra.0+0x4b/0x260 [ 10.279295][ T195] put_chars+0x1e1/0x2f0 [ 10.279298][ T195] ? __send_to_port+0x420/0x420 [ 10.279301][ T195] ? validate_chain+0x34a/0xc20 [ 10.279306][ T195] hvc_console_print+0x292/0x780 [ 10.279309][ T195] ? __lock_acquire+0x518/0xc20 [ 10.279311][ T195] ? __lock_acquire+0x518/0xc20 [ 10.279316][ T195] ? hvc_write+0x3a0/0x3a0 [ 10.279318][ T195] ? console_emit_next_record+0x1df/0x4c0 [ 10.279321][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.279324][ T195] ? lock_acquire+0x13c/0x160 [ 10.279328][ T195] console_emit_next_record+0x22f/0x4c0 [ 10.279331][ T195] ? devkmsg_read+0x4b0/0x4b0 [ 10.279333][ T195] ? console_flush_one_record+0x106/0x710 [ 10.279336][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.279338][ T195] ? lock_acquire+0x13c/0x160 [ 10.279342][ T195] console_flush_one_record+0x46f/0x710 [ 10.279346][ T195] ? console_emit_next_record+0x4c0/0x4c0 [ 10.279348][ T195] ? __lock_acquire+0x518/0xc20 [ 10.279354][ T195] console_unlock+0xee/0x1f0 [ 10.279356][ T195] ? console_flush_one_record+0x710/0x710 [ 10.279358][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.279360][ T195] ? lock_acquire+0xe0/0x160 [ 10.279364][ T195] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.279365][ T195] ? vprintk_emit+0x320/0x3e0 [ 10.279368][ T195] vprintk_emit+0x37c/0x3e0 [ 10.279371][ T195] ? wake_up_klogd_work_func+0x90/0x90 [ 10.279373][ T195] ? __lock_release.isra.0+0x69/0x1a0 [ 10.279378][ T195] _printk+0xc7/0x100 [ 10.279381][ T195] ? snapshot_read.cold+0x21/0x21 [ 10.279383][ T195] ? ___ratelimit+0x4e7/0xa00 [ 10.279389][ T195] ? idr_get_free+0x830/0x830 [ 10.279391][ T195] ? __might_fault+0x97/0x140 [ 10.279396][ T195] ipv4_local_port_range.cold+0xf/0x44 [ 10.279400][ T195] ? proc_tcp_ehash_entries+0x2d0/0x2d0 [ 10.279406][ T195] ? __kvmalloc_node_noprof+0x33e/0x8b0 [ 10.279408][ T195] ? proc_sys_call_handler+0x25d/0x480 [ 10.279414][ T195] proc_sys_call_handler+0x31b/0x480 [ 10.279417][ T195] ? proc_sys_lookup+0x3d0/0x3d0 [ 10.279419][ T195] ? handle_pte_fault+0x426/0x710 [ 10.279421][ T195] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.279424][ T195] ? rcu_read_lock_any_held+0x3c/0x90 [ 10.279426][ T195] ? validate_chain+0x38b/0xc20 [ 10.279429][ T195] ? proc_sys_call_handler+0x480/0x480 [ 10.279431][ T195] new_sync_write+0x33e/0x760 [ 10.279434][ T195] ? __lock_acquire+0x518/0xc20 [ 10.279436][ T195] ? new_sync_read+0x750/0x750 [ 10.279439][ T195] ? lock_acquire.part.0+0xd4/0x280 [ 10.279441][ T195] ? ksys_write+0x116/0x250 [ 10.279447][ T195] vfs_write+0x655/0x970 [ 10.279451][ T195] ksys_write+0x116/0x250 [ 10.279454][ T195] ? __ia32_sys_read+0xc0/0xc0 [ 10.279456][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.279457][ T195] ? rcu_is_watching+0x16/0xd0 [ 10.279460][ T195] do_syscall_64+0xff/0x530 [ 10.279463][ T195] ? exc_page_fault+0xee/0x100 [ 10.279466][ T195] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.279468][ T195] RIP: 0033:0x7fe96b2a554e [ 10.279472][ 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.279473][ T195] RSP: 002b:00007ffc1c255d30 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 10.279476][ T195] RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007fe96b2a554e [ 10.279477][ T195] RDX: 000000000000000c RSI: 00005594beb844b0 RDI: 0000000000000005 [ 10.279478][ T195] RBP: 00007ffc1c255d40 R08: 0000000000000000 R09: 0000000000000000 [ 10.279479][ T195] R10: 0000000000000000 R11: 0000000000000202 R12: 00005594beb865e0 [ 10.279479][ T195] R13: 00005594beb84470 R14: 000000000000000c R15: 0000000000000000 [ 10.279486][ T195]