From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111]) (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 93D7F3E63B5; Thu, 2 Apr 2026 14:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=130.117.225.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775139022; cv=none; b=hd6vETr0kfYS9ly+bMmiuZmmGPPYtsqdgHDroAPinTxFjBbEkHa+0rd9iR5EARpUf9rE+7tVQiWjANlOWKf8bedpwNcT5KZwE8ImTYlWD/Nf2g2QJ8peb+u90aJRGq0d6AfSKUnqNx18z/4Ge6d8KmHmOu8AXxpQ1mjo9++/T+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775139022; c=relaxed/simple; bh=8brzf5A+FvWM7R/Q7YNgWCGTTGP/GbuuEYjC7v5UOyM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dueDlbrKmXOlIdZh1j+UyY5AKJaGG+ypAzPsJvLJWCurP8XGyofLvCYioKW8aYVuOcjfO27kpGydOy10QW4HsyePr9qT8P9SIUHf+/7PDfMZ3Ube/8kroDgQs9RNi3CFxnlMvaezJ9TA1okK7gIY1RATBzOU8ehI+DhOrC4e8Qc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com; spf=pass smtp.mailfrom=virtuozzo.com; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b=eNlANrDF; arc=none smtp.client-ip=130.117.225.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=virtuozzo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="eNlANrDF" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=H8rYmpR2EZNJ5xxxY6hPVligaaugQMrbVRFiPy2K7pg=; b=eNlANrDFOiLZ /wT/NogWorp8UVnjyZFVXKS45EY/yFcdBK2rrbMJNp1tmYZt8SJj15fVsb0vyA8zn1UIIGEK5dryq LiK5gRfmvp0J7An1z9T//6Eg4aIBGV4AQX0ExVFz+fYXnkftQpZqjLKt9V7OHfxVRyMWFmbpr4s80 4yyE+8AA1N7sK+yP3sLQI6yfRSiES/Fjxmaogr7ksdDb6EPamwf7IINfM3Jt7HGzOa5VZ2h+dti1N hjavUE0/f5o8aA1JUCq8QYReptpMlXajvxqI5fQhhPlZjR+qk2yzgT5TuZOTsgK4TAPRDMWBfmj40 n+fCgPlGRHYug1O5V4H8bw==; Received: from [130.117.225.5] (helo=finist-alma9.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1w8IiE-003T55-16; Thu, 02 Apr 2026 16:10:10 +0200 From: Konstantin Khorenko To: Joerg Roedel , Will Deacon , Jason Gunthorpe Cc: Robin Murphy , Kevin Tian , Peter Oberparleiter , Mikhail Zaslonko , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Konstantin Khorenko , Pavel Tikhomirov , Vasileios Almpanis , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH 0/1] iommu/generic_pt: disable GCOV for iommu_amdv1.o Date: Thu, 2 Apr 2026 17:10:11 +0300 Message-ID: <20260402141012.1437095-1-khorenko@virtuozzo.com> X-Mailer: git-send-email 2.43.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch fixes a build failure in drivers/iommu/generic_pt/fmt/iommu_amdv1.o when -fprofile-update=atomic is added to global CFLAGS_GCOV. This is part of a larger effort to add -fprofile-update=atomic to global CFLAGS_GCOV to fix GCOV counter races that cause crashes on SMP (posted earlier as a combined series): https://lore.kernel.org/lkml/20260401142020.1434243-1-khorenko@virtuozzo.com/T/#t That combined series was split per subsystem as requested by reviewers. The companion patches are: - net: fix skb_ext BUILD_BUG_ON failures (sent to netdev) - gcov: add -fprofile-update=atomic globally (sent to gcov/kbuild maintainers, depends on this patch and the net patches) FIELD_PREP() compile-time checks fail because the entire call chain is __always_inline functions generated by PT_MAKE_LEVELS(), and GCC's .constprop cloning creates new profiled function bodies that bypass __no_profile. Disabling GCOV for the file is the only viable fix. Konstantin Khorenko (1): iommu/generic_pt: disable GCOV for iommu_amdv1.o drivers/iommu/generic_pt/fmt/Makefile | 2 ++ 1 file changed, 2 insertions(+) -- 2.43.5