Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp16666lqz; Fri, 29 Mar 2024 07:16:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDTuSvRsdEnaIunqJgVWeIlVj2+MPB0TT8kLqgNQMtcxgw087K7/GnzW2F0SipnMtoaWBqVYAJPm2wK8ybaoRNmSfbLsGvzVZMoWt+5Q== X-Google-Smtp-Source: AGHT+IGXymgWP+lzzPd+GZbgl3ZRr+vvk5gCk+la4RLwDG3OtKDGi0lJQb1xejHdigRrdTl3k3R/ X-Received: by 2002:a05:6358:4903:b0:17f:8812:501f with SMTP id w3-20020a056358490300b0017f8812501fmr2825391rwn.13.1711721771192; Fri, 29 Mar 2024 07:16:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711721771; cv=pass; d=google.com; s=arc-20160816; b=u4Ge2b4LkNl2dCqJ1B5OKRpeebBO6hEj7YVgBXB8HxkX3kLKyH4IQoZvh7bDLzc167 JOmqhSeXS9IkZPkp6R9Ixh2OVn11hH0Oh9fQIsBHn/DfRAovpKneHfAJeAOCpVCqL+Aq NTGasfreujKF6mHQDumho9WxxYS7rZkbbY311Szu9OhyqwC8bPNrAZoz2FWMpR/AL3uN dYdSdUBqhWNuzGNegQSBPgVhCitnCayvgG4z97ou5/Wu6/mBXfyguG5CdbtrVIFsF7vA dn6QzY9yjh5t9dGGxEdb0B7m2lxqvyutIvz7B/mta9wi0UpbJZXxh2CH0gS8ZQsSYN06 cORA== 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=SuF08J4yOnhHoxt7WBpkFhs1ZZ0Qm7rKAlvTRmrFnqw=; fh=MhIw6EVeg+IqJkiTVdevSpre3p79ayCUwrqzMLzu4K8=; b=CxspYp8PX7hqWBKEu9lV9bDkNGW16auujJhfUIHbAuuMjMDtDgP5j0TnM8XCxuhLTR syBeASNmg6g8cdJX89NG3CeUJwBLHJx5OfeqTXkL/dnrHaKerE4Vwr6npRFWNeQqu2mM UYtOaJN9KmPrdNklz7yWE8ZjPQ5/ku/bo+koWy1oNhSVyfvQbF2dJRsHEnh3E/yNpu5/ 9xc8nQb+af1OLywOzIllYt7a1aCWfjvKjJN4SlnHO8lX3o8gmdhyCpIko2Xvk9TOKhqY LEpVUvVInqp0YTSgUNpFFUFoSVBIczp4qkip4GffhL+t1Zau8NdxEdoYAm72iX5rVLr+ ibGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SOxIM4w4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124779-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a7-20020a63e407000000b005cee03a1bf9si3638711pgi.448.2024.03.29.07.16.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:16:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124779-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SOxIM4w4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124779-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124779-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A2E17B24AFD for ; Fri, 29 Mar 2024 13:49:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48621187659; Fri, 29 Mar 2024 12:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SOxIM4w4" 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 5FD34185F25; Fri, 29 Mar 2024 12:42:09 +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=1711716129; cv=none; b=T7nchxU94RdGQx+JDQaUDwazboh9WUP10+rLc5pxDqf43No5MA4jDOPeBwC2Vnib3M3QmfkzCrtl4iogdBTGbuFAmFqR0KdsPWxceGX7ZlkjC85qEEvGqNRCSk7uY0tQMR9IMDY5peZX6wUo7Tf3k49QeOwg5CPLIw+5RTBQm4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716129; c=relaxed/simple; bh=pm7u5txA0GV0Bl+FO1vus0FO5NCTLgJVXhLdXtvNnx4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GoNqxVwygeZN51rLvwuq9qt6yVSUid643Wx6KpmgnvG4XOOIiJlR6Fbxz5ueZXZuQRopdoZbuTP/KXaJrg+zyGgNPjRsZUkqRMYj4hvmerEkkC6QlrgjhXmKfISwabDrgxlu+EYUK9BRHgH5/EQlpSj5noZ6vcGR/+mfqiZ63Vo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SOxIM4w4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E8B6C433F1; Fri, 29 Mar 2024 12:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716128; bh=pm7u5txA0GV0Bl+FO1vus0FO5NCTLgJVXhLdXtvNnx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SOxIM4w4lB+coeyEHWYX/zWNRTddwMkm1AT5nbTBjEnvpiC8bSNiEb7zYCh/MwulA jN9lga5Pm06QmX0CN9eto1zWVl6qSe3AM3qZGtq79zunvCiqVh2RukJWOpJUKQKQYI OSuIsSsn8GT/YW5kVZ9Zf0QiK1iSMKJEjszoLb2MDXuO4bpwUQe8wzbv49cVXtJOHM jeC4Li2DyjW7Q8IleRaF9N/uqLmYdnWDnQ+STqfc2JvboA2BpP7NkvNhtStuTkb/Js zGnB+t1TXVTOuqxrMXCiOsYTWONWMzTkU1sF+tISrtDScZb2zRVEVsVEYM+IniJxrt lEB44FU0oMZFw== 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, guoren@kernel.org, rmk+kernel@armlinux.org.uk, sparclinux@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 69/98] sparc: vdso: Disable UBSAN instrumentation Date: Fri, 29 Mar 2024 08:37:40 -0400 Message-ID: <20240329123919.3087149-69-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-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.8.2 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 7f5eedf1f5e0a..e8aef2c8ae99b 100644 --- a/arch/sparc/vdso/Makefile +++ b/arch/sparc/vdso/Makefile @@ -2,6 +2,7 @@ # # Building vDSO images for sparc. # +UBSAN_SANITIZE := n # files to link into the vdso vobjs-y := vdso-note.o vclock_gettime.o -- 2.43.0