Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp22122lqz; Fri, 29 Mar 2024 07:25:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWM/DvhIh8/DSOVwNMNJVGyBVvjkgYJxoVncdY5v3z3hHSCusijAK07kdAq6Zb6OhWUAkcrCyz9qlt8efmv7pdlUmw2kj2HTnTOyzG2Ig== X-Google-Smtp-Source: AGHT+IF9wmcQSOx1UAeQRsP/mdzOApwqSYLITQLH+vonGq7YCP+em8TBG7SiHe/AHVsX6tHDkxRm X-Received: by 2002:a17:906:3388:b0:a49:56d4:d643 with SMTP id v8-20020a170906338800b00a4956d4d643mr1462827eja.36.1711722325967; Fri, 29 Mar 2024 07:25:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711722325; cv=pass; d=google.com; s=arc-20160816; b=OOMYDf79iwbpp5XG725rBFshHIgbeomlqoDzbs6S4nE+TbOowFCwnr1eZO6+QvPGQc 8sdKB2k6hhXlys+CywZrYrHnfWrD09+kc/En1byCasUZVC9Fv3y1JYeg0hJzj3aDRg3I 9HcVQ/ELt/msiOD7G/HLubTNZJQwXwCB7WWmo0Q+QrVhG0BPGqSlQZh8vWn0iJMs/wq/ +xx5j5voGNX7pgBgW+iK9AlQTk+FA+EDUQ2l99JfrdHz1+1YVJ8DFHJ+MQOTxikmJq/U qzrQojDJSGKhx4vDdf5jE5K4c5MYqAr1oaoXBmw6vQh8q6iRWvlKOhMgsS+mjfhdqeC3 1UBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ExD2+KYSgnGVZZb9PlheLlE3xnxHD3EBiriqZdyW6a8=; fh=/Kd4FugBwsqWGwVn6RgX67QahAlQG80qsNmSw7raE80=; b=E+1NclJzNBbaFLHgdnE+USJisPUpSneduAlsjp4NaKMUs5iNdVs+F2QtE0mrnrskIS 7cpitw4cIizCc+hI5OHwbMI7bRivi10PDkmR0TZEoqwCowVGC/y7NEGMS3aQcK+VGcCN Z7AvU6W7XRQah3vqzEa7s0FtxXD3gKusOHTQCouvW/LWVVBz0XtYmD6v5hP5eC7M3zls nL29iGWEutXN3NJBtI3HBGU6LqNRWQJrowflwYB7r7z9qmPh7tl7To0yMweawZ93Mx9I mDaAJY6Ynpk0RuwDyFf9hmVuEISFdttoeaFbUZnzLug6Car7dmMBJx3MPf6tcVbaojAf c/lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AXUP7S9k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id nb20-20020a1709071c9400b00a4e2422a1basi1724112ejc.317.2024.03.29.07.25.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AXUP7S9k; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A9A051F2B27E for ; Fri, 29 Mar 2024 14:25:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8E7C2BF31F; Fri, 29 Mar 2024 12:47:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AXUP7S9k" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E39022D376F; Fri, 29 Mar 2024 12:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716424; cv=none; b=qDWLrRp/nda+NN4zrvMKEELvEeiQZTunKmTDPvMPFz9GbSFWTltKXsinFXg+rcY6g30Q8DURL6ZDKsckVfduF8H6ODMMuopzBfrEPvAIMCPVFSXLkilhVlgbijhDIm0rO2exi8tRpLQir00tXu2hv7xf0Hvac9foUpji+kOAL7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716424; c=relaxed/simple; bh=9/XAL1SYI5dLknafqQdBszisijdv3UzkDC/FsG7+PU0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G2tcuQWsNmwLDEMMyVeBvG7E2ROlJiANoDZR86a2BLur7fA9/ZhpinsDyO7sASHi6/X8NUb6xnfkZRNotqsPkOSbU+O04vRSnpQxtFmrBP2VjV/pQV7VO+0KuGxm4AQKgZCvW0x9BGAMEiUJMpnTBAvFIVSEAu0Ni62mNiJoOq4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AXUP7S9k; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 936ABC433F1; Fri, 29 Mar 2024 12:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716423; bh=9/XAL1SYI5dLknafqQdBszisijdv3UzkDC/FsG7+PU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AXUP7S9kzHQXEUH2YVU8SUsL9dg0/R2q0BavNO7YZV9sqpZXJY5B486HJ15HO5xhp Gft2lhQ1EblLgoQfWh50AEIp6YFpkAnWFlC6P3ztn6fYkFTMuwHH0B1Gs4jpW44DaP N1vZ4shN5CQwNZfX/74KAuWe3aL+S31FJhkWT65SpzGD/BmHEIcZuiSXUgIkb2o5Ok nvKRLza5pRHF0p2tEkRe6oAcOXnYwm8d9Rz/GW/0YdWl9+JJfgPc5ZuguVfceuKf2h ppxAoh6zr3u7XMi9S9o6mQsWwZJIAlgMiRZiOgTMuC+zkz+ey1C3NhxdkfWKmUpzQF X2tlZXO4q0RTw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kees Cook , Sam Ravnborg , Sasha Levin , davem@davemloft.net, andreas@gaisler.com, masahiroy@kernel.org, nicolas@fjasle.eu, rmk+kernel@armlinux.org.uk, sparclinux@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 31/52] sparc: vdso: Disable UBSAN instrumentation Date: Fri, 29 Mar 2024 08:45:25 -0400 Message-ID: <20240329124605.3091273-31-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329124605.3091273-1-sashal@kernel.org> References: <20240329124605.3091273-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.83 Content-Transfer-Encoding: 8bit From: Kees Cook [ Upstream commit d4be85d068b4418c341f79b654399f7f0891069a ] The UBSAN instrumentation cannot work in the vDSO since it is executing in userspace, so disable it in the Makefile. Fixes the build failures such as: arch/sparc/vdso/vclock_gettime.c:217: undefined reference to `__ubsan_handle_shift_out_of_bounds' Acked-by: Sam Ravnborg Link: https://lore.kernel.org/all/20240224073617.GA2959352@ravnborg.org Signed-off-by: Kees Cook Signed-off-by: Sasha Levin --- arch/sparc/vdso/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile index 77d7b9032158c..cb046b9d1eddc 100644 --- a/arch/sparc/vdso/Makefile +++ b/arch/sparc/vdso/Makefile @@ -2,6 +2,7 @@ # # Building vDSO images for sparc. # +UBSAN_SANITIZE := n VDSO64-$(CONFIG_SPARC64) := y VDSOCOMPAT-$(CONFIG_COMPAT) := y -- 2.43.0