⬢ DragonFlyBSD Kernel Audit
DF-5342 / fix.diff
← back to finding ↓ download raw
--- a/sys/platform/pc64/x86_64/mptable.c	2026-10-03 04:37:03.595609252 +0000
+++ b/sys/platform/pc64/x86_64/mptable.c	2026-10-03 04:37:03.631608793 +0000
@@ -638,7 +638,7 @@
 struct mptable_lapic_cbarg1 {
 	int	cpu_count;
 	int	ht_fixup;
-	u_int	ht_apicid_mask;
+	uint64_t ht_apicid_mask;
 };
 
 static int
@@ -656,7 +656,7 @@
 
 	arg->cpu_count++;
 	if (ent->apic_id < 64) {
-		arg->ht_apicid_mask |= 1UL << ent->apic_id;
+		arg->ht_apicid_mask |= 1ULL << ent->apic_id;
 	} else if (arg->ht_fixup) {
 		kprintf("MPTABLE: lapic id > 64, disable HTT fixup\n");
 		arg->ht_fixup = 0;