Received: by 2002:ab2:855:0:b0:1ef:b27b:cc29 with SMTP id 21csp1722601lqy; Fri, 29 Mar 2024 06:50:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUs0kBO2y5C85C/ti/Rn+otIzGAqJ6Esz+W1yK+rXyADqoPwzSNHNZgXP1PSF2X+OUvjaXan4Hhm95P07+3wlaN2djlMV9CpwlfjoFSsA== X-Google-Smtp-Source: AGHT+IHi0ebkA+enrFEWuM7a9AQYmUjfKaNGo39by3nbz1ZPhrRw/54rNoEogoBI3gZTqqnbCmK5 X-Received: by 2002:a17:907:3da3:b0:a4d:f5d4:fb07 with SMTP id he35-20020a1709073da300b00a4df5d4fb07mr1649141ejc.13.1711720256442; Fri, 29 Mar 2024 06:50:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711720256; cv=pass; d=google.com; s=arc-20160816; b=0l+8Wq2NKSr80F+f8nam4ck/QcMUc0iVpGlCkDbM32R/sXyTBW1hbriRjgZswgrBo8 xC+pRjLyiKq0/F5WDjSn9ZFGKXCFGk6ayZuRTjGoQP/phsLayyD3RCURwOKms6v+0aAi ki/4w2XcUXzo4aalNRYI4TmGCCnKi5xhYBjflpFmtvRYEF7m9Zv4zBPJ3KEUbLCD8413 hB+YdanjG7pak3GYFLpltZcQR2doOGN0PckCjennmgFJCL9DvtI/ItPnvkV1vwyKJe7t oYYopONjefqhXEmjvmNErDzbsul1skqo/NO0BUIBcTrkYdhp4XGOwphM2FOPMeNFcT7L a8kg== 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=z0uAkucWM2wmQ8N+4iGuD97DcKG22jwhYSxrP+pdKkg=; fh=VHT9D7nVkGYKWX7MN1R80oPSaw141+GUrYFF54lvPug=; b=MhFE7CTlAho6D1AfKjN3aIoW6WeDbF3H4sPSM1c3amazigp0oGfWrRJdxzlfGXf26B ffTqJxSiOd3c37mbzpPXOfZerbyuogFOJyCqZ1oKOWp/fsoVfKqN3+ClDewvtBiCvwwG +3ybM3VENeFciwJ3CRKnNO5v/nedGCCvyWe3Yy4NVHoorLFso3vHlDeKhh4+roFzoUdp 4ND8YWurtbiNucWeUv2L9NtkR2wGGpBi9+FFTI2IenVu52SAXkz5ZXmMgE7W1KWMmd/Z ZwnpT67JpG3cAf0BjUTI4t0Azv62iX3VntkkSHSPxJJVqsDVv2aFDDFsIHOjS86xXaax t0uA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RfKu8ngS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124785-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. [147.75.80.249]) by mx.google.com with ESMTPS id qq21-20020a17090720d500b00a4e268f2854si1500605ejb.134.2024.03.29.06.50.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RfKu8ngS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124785-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 30D161F22B53 for ; Fri, 29 Mar 2024 13:50:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B76ED188A7A; Fri, 29 Mar 2024 12:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RfKu8ngS" 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 DEF1E18766D; Fri, 29 Mar 2024 12:42:18 +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=1711716139; cv=none; b=OFEpwwi8PwjZjjKsQJ60s9OcWopL7Wdg5FDWVbEkH/7hv3IgWMiA2jL5xQyjGTAoBDyYxuVXPtC6HZnNzdenGbAiWOCIm6s55hXpn/pyJ6WZL5MpU+8sIjRPNskIZHhYATBDd0XGnIWVLtkkKDwLSxBFXsFf2FX6K8w9B9TuP8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716139; c=relaxed/simple; bh=/+N/yT27Ws0m/5w/1cIOi4gBNiyyDit7r4do8MHX5j0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YaYFVHFbxpc+hvTka4hDgF1NmMLfAD+iBS6X8EX/pTp+dbVZWUn5fSEZF8IFnB77QZXFEcr5wpShcyS/npi5Z4sqGbSXh26ZhABDa3cAnZfTCzT4v6XlQcBnuDUiPesuhuV0/o0DQMY3r2qnMm9cRGa0ifeGgSPM/7SM4nlbRBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RfKu8ngS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45546C433C7; Fri, 29 Mar 2024 12:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716138; bh=/+N/yT27Ws0m/5w/1cIOi4gBNiyyDit7r4do8MHX5j0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RfKu8ngSytbWEPJw/Za+3CiYiZHIpl+rzScp/ybd1wXm2aDTY9ICw7CtPTSykb6qx rsj+S/oGYupwwVXEAtSC2+ucqyAjW3oLPgM9JrgNpC0B+ry2bmnqGvPn+0Em8m09ro ddG0gVJeSVxPLL0VWdLcKGIlI2BiKcTxz9hXwIgpbn1ck2buCC283rRqmkRBi3D4MS 1Xwbipz1ccjZfTHPICwcJ2Hvqm21+1tFee+DMAC/E5pSR6Cp4nuk+9y0b1CF3ZCDs/ /X5tUEXAon9jWTYHqPPqOzvwx5u+lYdatfu8Lya3v8+gPKko/oM/SOYG/PZAcg7iSx 5+q/Lg0FIw30w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kees Cook , kernel test robot , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Masahiro Yamada , Nicolas Schier , linux-sh@vger.kernel.org, Sasha Levin Subject: [PATCH AUTOSEL 6.8 75/98] sh: Fix build with CONFIG_UBSAN=y Date: Fri, 29 Mar 2024 08:37:46 -0400 Message-ID: <20240329123919.3087149-75-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 e36b70fb8c707a0688960184380bc151390d671b ] The early boot stub for sh had UBSan instrumentation present where it is not supported. Disable it for this part of the build. sh4-linux-ld: arch/sh/boot/compressed/misc.o: in function `zlib_inflate_table': misc.c:(.text+0x670): undefined reference to `__ubsan_handle_shift_out_of_bounds' Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202401310416.s8HLiLnC-lkp@intel.com/ Cc: Yoshinori Sato Cc: Rich Felker Cc: John Paul Adrian Glaubitz Cc: Masahiro Yamada Cc: Nicolas Schier Cc: Link: https://lore.kernel.org/r/20240130232717.work.088-kees@kernel.org Signed-off-by: Kees Cook Signed-off-by: Sasha Levin --- arch/sh/boot/compressed/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile index b5e29f99c02c8..6c6c791a1d063 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile @@ -12,6 +12,7 @@ targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \ vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo $(OBJECTS) GCOV_PROFILE := n +UBSAN_SANITIZE := n # # IMAGE_OFFSET is the load offset of the compression loader -- 2.43.0