From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.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 D69583B8D7E for ; Mon, 8 Dec 2025 01:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765157703; cv=none; b=tkIybdQtEBMF/9/VNtmWAJZSuvImjIxk1+d5rySw0g3DwF/LGxW6u4+dS+wFVTYmUwVeYWoUxwAwsidINW8IV1SHXrVmz8ctd9s5nITmOK8K9eJV041U/JjXjF0UkwnZJymWMF9tfnc2D/UDDTf0ZQHkYBqAt6RXmBike2J0PQY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765157703; c=relaxed/simple; bh=K5CtrPmhYAF2G2knNXncyylwMjOSxQKFFgitoRw6Mlo=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=Ul66xp7Y1zsBCIF79++reE7bqRaMq6piz7nLv9zXhR7io9CfZnB6Eu71qHrC0roAejG9NBJ9j7HY8qRf8qf30povmHrFIflPCZSzjPGwgrYTpWWYhrpfBQVLPFkRLblTCHQkiGaiOYjPihg9XMni/Dhg57cwVhDs7CN9Evw7Bco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mkdBpwde; arc=none smtp.client-ip=209.85.128.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--jackmanb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mkdBpwde" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-4779b3749a8so30157965e9.1 for ; Sun, 07 Dec 2025 17:35:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1765157700; x=1765762500; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:from:to:cc:subject:date:message-id:reply-to; bh=zqW+wRrT8yWx/U5ZpiWH7Q47Ioy8EHId69CrUg9mCQ0=; b=mkdBpwdeki8GzRV6espyUKmGI6LZUc4LDb6CvNlYeT+A5RBkZGD0PMWBV2nSD08XAw CTnIITUcOFGHUMZ2GNTMifbVRXyqgQfrnRrmP6fxgaXjKxcijLt5DZQrbsgvsi+FKnKX sd1VEPbEAV79TojeyD8fqWlHIssSrPWbxLTISnTKAN0HbTiR8DkqOmX3qVzHbox2s6N4 ck2BfdpuBRyR6poiNeG8CHfpi2QQ0AwEGTvaXxCA+pm3zfvtVPJuw+76GJWX5PBJyEaT F4T0YpvO7glDl0x7pHlD0DNDWZHm/TzPNsYskjbyIYSU+2GuPxbVJ81X4De+Y+pHFFxj T6Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765157700; x=1765762500; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zqW+wRrT8yWx/U5ZpiWH7Q47Ioy8EHId69CrUg9mCQ0=; b=vr+qM9sYoEaMw6wv5VVvCG/J6qzQdRJ4FEn9c3m821DjoQcwdn1Ix1dZZnITnlKDOv zFVgmrnS1uHuzru6LdGJ8rcFQpW7GVzVcL6LjFzSHDBPBykvE66yaFGKGf1COksvLPNs eSYUEMGEsDCmj1l8rL8Yk+CteU92zC2yQmyDn3kM/wFGy8ZLowVolOGPLVZ1cez1XKbs qKXX+MAfkIyGHgct8rP5ZUna7uSAeA16ZWHSWZYJBsxToA0IF4Aa4OEkoFBTfDHyubrB 4uJqskqb442/0qxhzsk1G92SGIYbVUnHwO2uQAOHZz+eMsx94MFhgqGRmM2RsdqxWoJ6 D2Tw== X-Forwarded-Encrypted: i=1; AJvYcCUcwrXgAmkTofGfn4W0sWxX9ygZm784x7d6EGICevT662uWmg5j+CXu57n19toH+t0W845PhA+KrUq91Vo=@vger.kernel.org X-Gm-Message-State: AOJu0Yyy+gJAkkFCzErNEl0IfAyp4Qtomp4QooJgENZ/CnkNbmW9cP9S lq5P38CFgU7JBfdpMqVIMX1p8wTzvo+RTVtobapQx5AMKK7dxhMth5KWrRbPtyr1whlKWODOSYw sV6b62UGQ0qSCKg== X-Google-Smtp-Source: AGHT+IHyvFA/usTAZ6wmW4G1/rOcPyubKgcUCp3CcG0gk8/WNd/3avw68e4W4Oab+lo3S5S6yZO/yCui4uC9KA== X-Received: from wmcn12.prod.google.com ([2002:a05:600c:c0cc:b0:479:35f9:3b87]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:5488:b0:456:1a69:94fa with SMTP id 5b1f17b1804b1-47a6e65d1damr41394775e9.13.1765157700116; Sun, 07 Dec 2025 17:35:00 -0800 (PST) Date: Mon, 08 Dec 2025 01:34:57 +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=H4sIAEErNmkC/x3MQQqAIBBA0avErBtQUYiuEi1immogxtCQQLp70 vIt/q+QOQlnGLsKiYtkidpg+w7oWHRnlLUZnHHBOjPgTrGg6CnKqFE03wltCIY2Zu8DQSuvxJs 8/3Wa3/cDkESu2WUAAAA= X-Change-Id: 20251208-gcov-inline-noinstr-1550cfee445c X-Mailer: b4 0.14.2 Message-ID: <20251208-gcov-inline-noinstr-v1-0-623c48ca5714@google.com> Subject: [PATCH 0/2] Noinstr fixes for K[CA]SAN with GCOV From: Brendan Jackman To: Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Marco Elver , Ard Biesheuvel Cc: kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, Brendan Jackman Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Details: - =E2=9D=AF=E2=9D=AF clang --version Debian clang version 19.1.7 (3+build5) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm-19/bin - Kernel config: https://gist.githubusercontent.com/bjackman/bbfdf4ec2e1dfd0e18657174f053= 7e2c/raw/a88dcc6567d14c69445e7928a7d5dfc23ca9f619/gistfile0.txt Note I also get this error: vmlinux.o: warning: objtool: set_ftrace_ops_ro+0x3b: relocation to !ENDBR: = machine_kexec_prepare+0x810 That one's a total mystery to me. I guess it's better to "fix" the SEV one independently rather than waiting until I know how to fix them both. Note I also mentioned other similar errors in [0]. Those errors don't exist in Linus' master and I didn't note down where I saw them. Either they have since been fixed, or I observed them in Google's internal codebase where they were instroduced downstream. This is a successor to [1] but I haven't called it a v2 because it's a totally different solution. Thanks to Ard for the guidance and corrections. [0] https://lore.kernel.org/all/DERNCQGNRITE.139O331ACPKZ9@google.com/ [1] https://lore.kernel.org/all/20251117-b4-sev-gcov-objtool-v1-1-54f7790d5= 4df@google.com/ Signed-off-by: Brendan Jackman --- Brendan Jackman (2): kasan: mark !__SANITIZE_ADDRESS__ stubs __always_inline kcsan: mark !__SANITIZE_THREAD__ stub __always_inline include/linux/kasan-checks.h | 4 ++-- include/linux/kcsan-checks.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- base-commit: 67a454e6b1c604555c04501c77b7fedc5d98a779 change-id: 20251208-gcov-inline-noinstr-1550cfee445c Best regards, --=20 Brendan Jackman