From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A12C1EDA32 for ; Sat, 4 Jul 2026 00:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783124473; cv=none; b=XVYTsd4VGxBVoZKIsKq9J6O5uVMRHQ+EICpCC4f61UlN/azmFPSTdOYyWVQghXxWUtdP1IZf2V+oEsyu3xotzdPqacGaOR81mPYgw9QevN3cwDu0aA9f6S2OlIq3lIVl1CkYinS377itAGEAglPH8eXjy+9gBJ8Si6DooFPnato= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783124473; c=relaxed/simple; bh=f76jRFpgejqJFWeencJb9MPjKDz0PXpP0sWhsFHsPbc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t9DsOjckr3jWGtY5abycWCO6Amm8zNy85kyvRbA9WpOgpH3G3pwObpX1P41b9Ojcfinh1SGNkziiYwt9MIkbjysZHzZwkXclKciJRM7tVoOdNMWWgim8XyDbNcEUfJsj7DgQ0fKdFYykc87WOysFBOJ212gTT9CbxcsH5zys3Mo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=BS4ui7F1; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="BS4ui7F1" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1783124466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nhQI8qrC1+u/J9NZuv3XyN01AIsqOde2x76wYlNC8WM=; b=BS4ui7F1n8y9YLLRS7xGfVRmM9PrQ1NaYnwBB6b5ezq/2Xvv16B1OJ3GluXFE81Vado51k AHtaRNz/zcyvLaegy5t2p3Xc3fQTc2fiSnJl9w2/3IC2jWPaMs/40YWaJ/pxuSRFV9GOeC 8G/QEIUtIp4tZY/kGkh09G9ZuKrmHXg= From: Ihor Solodrai To: Borislav Petkov , Dave Hansen , Ingo Molnar , Thomas Gleixner Cc: Alexei Starovoitov , Andrii Nakryiko , Andrey Ryabinin , Andrew Morton , "H . Peter Anvin" , Andrey Konovalov , bpf@vger.kernel.org, kernel-team@meta.com, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/5] x86/cpu: Refactor identify_cpu() Date: Fri, 3 Jul 2026 17:20:41 -0700 Message-ID: <20260704002046.3859585-1-ihor.solodrai@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This series refactors identify_cpu() machinery on x86 and then implements a fix for a bug when cpu capabilities are temporarily cleared within an interruptable window. For more details and discussion see the relevant bug report [1]. Suggested-by: Borislav Petkov Signed-off-by: Ihor Solodrai [1] https://lore.kernel.org/bpf/20260610175651.647515-1-ihor.solodrai@linux.dev/ Ihor Solodrai (5): x86/cpu: Factor init_cpu_info() out of identify_cpu() x86/cpu: Inline generic_identify() into identify_cpu() x86/cpu: Introduce identify_cpu_32() helper x86/cpu: Set X86_BUG_ESPFIX in identify_cpu_32() x86/cpu: Don't reset boot CPU cpuinfo in identify_cpu() arch/x86/kernel/cpu/common.c | 114 +++++++++++++++++++---------------- 1 file changed, 61 insertions(+), 53 deletions(-) -- 2.54.0