From nobody Mon Nov 25 02:36:02 2024 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4192429CE7 for ; Wed, 30 Oct 2024 10:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730284304; cv=none; b=Ga4e+e9ypgCgRp8E1LaMiBvUNalPeUYXgbMYv7uTVwFQisd/UZTjg18nLVlUgIX2kB9VRvSNN/5CVyeo92Y0yzaEMcMgUpMm3xbcWfe1QYKGyo0NSPQPym0WzULPJZ5WohgEvVnuwdXO4CxwQMfp98lCK+BGH1v/RBuc4E39W7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730284304; c=relaxed/simple; bh=HJK67huFrgBbh0oq3D9/SSpm2m6CsdbT12PbWndMQ+Y=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=mPzVA5eWslVuz/a7lwYc1MG8bYyszsMKh0hjWq3XGsI7CmllgFfqCGOQ6siH/BlySfPgEhP9SB+iXRSk3JKRS+LYLldIWnKVfErkKYB1N6y3xxRJb84zGjyS8uL4kWJZtGyzZti/b5ieYAQrMqx7lneTf92zgBNc93cDyz9w5sM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=C5FZRHHx; arc=none smtp.client-ip=209.85.221.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="C5FZRHHx" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-37d533a484aso399826f8f.0 for ; Wed, 30 Oct 2024 03:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1730284300; x=1730889100; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=k6MdjXaWjXuXFvZiq7sXgM/XS2xMntv/yleDKxQ87K8=; b=C5FZRHHxz8Rbz0bgu5Nx8pNogVLAdrarxhBwmhIFwta7ovbYmK1Nc+8wr6GXxH+9C6 mpXK3ZfmnOQerpI8n/iROXbfmaL1iYAPdbZdMhMfsKjdhskqGmILvmANOEYGybxZodYm 67FER3Cbt6MBEITvUweLQFK4IhLtq5+bu6DUNBcThZ1UY7hJlP9zTx72P4PrluGm+IMU AKimNlmXnV7lAIX3BpHuloc30JYVZjO8J8q9nV9NWUa7iFflmdfTl4pZKGWhnpBejLAj ZDwr3V8urj05wK4tiktBi1oHdlfCs+RbS0L6aQso97rRQBhxoUJ0yzAPmDrU8OoQnj8P hpsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730284300; x=1730889100; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=k6MdjXaWjXuXFvZiq7sXgM/XS2xMntv/yleDKxQ87K8=; b=HtHRxxcqEaqbSDJow+l4U4HSXTmB392sOXRBz1rOoMDsBwbsC5+Er5S1r9g8coyofG My8hZaIHCtlMn9bMDuTOEHJHvMwKWW4ygCGOxPwFR0Oy+p5mbjaOzgNld+HBitGp24PQ 3/y1CJInJZyKpAHW3G7kEQ9cLY2raRJkslqOEed60wBpwcFLGGtfNpnwUA7BOMR89GAQ UCJO0vPhX9JZKAILiCP14NoaC75gpTkYqCQdnzcKxleOul9K/xbX1g6fd2UbtIBTTeao 3RB+u7nrFxMB9PvEuYyT/nqFuhXTMD5HnVYqv4cfeKM9qESou0PeWf5TK56J6vzcaGHW wEwQ== X-Forwarded-Encrypted: i=1; AJvYcCXT92luesBh60GCnEjRRkx3xC5X8IkKOq6v/vAZikd+Q/44tbHXHa1iyxu4e0KEo5PfwhqVjzNXTkgBfBQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyB3ki5OYxWOeF5KRYYWTVu4We3y1SBLJHqJtrxVHPRDt67YzSh LBuR1tpR2pa2ZZsD/FYxV3a5TqTgQSg3o+waS1WFyjthb8cDG0xWtsB6kPRQuFmSaLcZ2Ek4zIb kML23G2wwsaGRPg== X-Google-Smtp-Source: AGHT+IFnZQr30Y+M2jhTAmoir5ZrxKPXp/akJvD704Eg2oZKQaaz30lDM/zqxKc6KNIUk1EYIT5KPVY3MJkj4sQ= X-Received: from aliceryhl.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:35bd]) (user=aliceryhl job=sendgmr) by 2002:adf:ee0e:0:b0:37d:3878:ff42 with SMTP id ffacd0b85a97d-381b97ee8ffmr2906f8f.5.1730284299740; Wed, 30 Oct 2024 03:31:39 -0700 (PDT) Date: Wed, 30 Oct 2024 10:31:34 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAULImcC/x3MQQqAIBBA0avErBvQsSi7SrQwnWogLBQiiO6et HyL/x/InIQzDNUDiS/JcsQCXVfgNxdXRgnFQIoarYxCvwiKd/uO2mqDwba9CYEcdTOU6Ey8yP0 Px+l9PzrYWaVgAAAA X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=1882; i=aliceryhl@google.com; h=from:subject:message-id; bh=HJK67huFrgBbh0oq3D9/SSpm2m6CsdbT12PbWndMQ+Y=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBnIgsIDkprsQHnquBzdddO8VG6yBx2gIzt/R/V5 lOhbSIB5+qJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCZyILCAAKCRAEWL7uWMY5 Rg26EACVKjteAW4c2ejRnwDxOvD+WRYhuqP2MXBTJDi14yPKpgXf5UV7MXboKuBCpFJJuOXVePc WBanDEMSZZFSxR7lvkXUZLLwJd/sdKiZ13Zkoa2Q9KletFcqEGPFU7TMU0+pa6GccYWOYSBkNjv pndYPVexIcfWKGapv5dJvqJl6J/l9qeMkGfVSUOnEJdVlk3U/5x3238QmhaWFrOwruu6FkVx/Ns u1XpYfQY6MxpgUJNVejZ3iY5gOdnwiB1/7lzkHPDiQUm1ceipEz2mXamJ9Hsn5ORv3s3En5YJNo 8DOwVj9owfmZMLU8BKJ+zQ9XBN+6JLQmOJ3/u6BzzPYryBhL9Gn/Qs+b5h/KYFd6Se4xGX0GyiR 1uuLVlSiE/TrT00Uf4UWqKgMw/UGAhBtybtQqO/cuWuvlgVysD3NIuA0Bd11hcOZUhtbP40ybBf Awn6DMPJjSm9Hzm43vsBAryKKeCEOjM34MubEip40az9Ts5LAjIC/NZBcpVSl0JYlLMUhDvR3He s79reSUwhw4CkZEWcrqw6plhWTaYwMwzaTGnVQujYbHobrvADtywiDPs5rDroCkdulGQ3sxAjRT 7cJSvjVU5GReIi4IlrQZoHJDgrP72U5PZi0NXkvURae6I/UWJD0gIHNURf0wJi+uolSh+iHeOsy s/2OSs2/mRYqwiA== X-Mailer: b4 0.13.0 Message-ID: <20241030-cfi-icall-1913-v1-1-ab8a26e13733@google.com> Subject: [PATCH] cfi: tweak llvm version for HAVE_CFI_ICALL_NORMALIZE_INTEGERS From: Alice Ryhl To: Miguel Ojeda , Sami Tolvanen Cc: Alex Gaynor , Boqun Feng , Gary Guo , "=?utf-8?q?Bj=C3=B6rn_Roy_Baron?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Kees Cook , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, llvm@lists.linux.dev, kernel test robot , Alice Ryhl Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The llvm fix [1] did not make it for 19.0.0, but ended up getting backported to llvm 19.1.3 [2]. Thus, fix the version requirement to correctly specify which versions have the bug. Link: https://github.com/llvm/llvm-project/pull/104826 [1] Link: https://github.com/llvm/llvm-project/pull/113938 [2] Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202410281414.c351044e-oliver.sang@in= tel.com Fixes: 8b8ca9c25fe6 ("cfi: fix conditions for HAVE_CFI_ICALL_NORMALIZE_INTE= GERS") Signed-off-by: Alice Ryhl Reviewed-by: Sami Tolvanen --- arch/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 00163e4a237c..bd9f095d69fa 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -855,14 +855,14 @@ config HAVE_CFI_ICALL_NORMALIZE_INTEGERS_CLANG def_bool y depends on $(cc-option,-fsanitize=3Dkcfi -fsanitize-cfi-icall-experimenta= l-normalize-integers) # With GCOV/KASAN we need this fix: https://github.com/llvm/llvm-project/= pull/104826 - depends on CLANG_VERSION >=3D 190000 || (!GCOV_KERNEL && !KASAN_GENERIC &= & !KASAN_SW_TAGS) + depends on CLANG_VERSION >=3D 190103 || (!GCOV_KERNEL && !KASAN_GENERIC &= & !KASAN_SW_TAGS) =20 config HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC def_bool y depends on HAVE_CFI_ICALL_NORMALIZE_INTEGERS_CLANG depends on RUSTC_VERSION >=3D 107900 # With GCOV/KASAN we need this fix: https://github.com/rust-lang/rust/pul= l/129373 - depends on (RUSTC_LLVM_VERSION >=3D 190000 && RUSTC_VERSION >=3D 108200) = || \ + depends on (RUSTC_LLVM_VERSION >=3D 190103 && RUSTC_VERSION >=3D 108200) = || \ (!GCOV_KERNEL && !KASAN_GENERIC && !KASAN_SW_TAGS) =20 config CFI_PERMISSIVE --- base-commit: 8b8ca9c25fe69c2162e3235c7d6c341127abeed6 change-id: 20241030-cfi-icall-1913-d9583dd2a27b Best regards, --=20 Alice Ryhl