Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp34093lqz; Fri, 29 Mar 2024 07:47:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV52ud6nk2KPAaVGuU6Kb4+9Kxgl3AGsgonX9RusDK+F+TELOg4o3yKMFJbY5/ocm8I+4DXfWTaySkrPswUG8fyhlpL2hXLkNr2t9tzmQ== X-Google-Smtp-Source: AGHT+IE8AZuSHMXppne2LbT9ywRN2/u7xfEuQt2z/OLZUx5cwTpK4iQBFo+aIP1MOgMnYtTnjlGp X-Received: by 2002:a05:6a20:258e:b0:1a3:5b82:dd07 with SMTP id k14-20020a056a20258e00b001a35b82dd07mr3771188pzd.8.1711723651169; Fri, 29 Mar 2024 07:47:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711723651; cv=pass; d=google.com; s=arc-20160816; b=U0iC0w2A86QWKCW+1QGKXBqCRUu/K9dpw5vBD/OOsKoOgl3MxS9NwmBYfvF8UqQ86F mkMeh54tyiWg/5iz8vuKDi6nc8PQmtmBwAzg5KF1l62cwuCatpnfFPsjcLN13Cv2kYJ2 BxVeQzccw9pxJFu53tJqQ8m2x+DnTPls//1Gz6UfDngMhWy9k/X4xSlkBp5Ib65aM1W5 +BIAlX8yl2LM/iCpJR9B029/v7a6WxE44HekxwggJh6Sd4vGI0z6nwy7WqI44yY1/iRL l0rdtYDE4NO2JRAUNJ6jbRyERPoE7C3qB51+UhYVpOn72Z+QjPEZaG52irrH+4DmMkP5 y6kg== 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=1dJjdaJS2u/hX7H4AHHexbG4/kPKCNsdGeu+l55CZLA=; fh=VHT9D7nVkGYKWX7MN1R80oPSaw141+GUrYFF54lvPug=; b=OXWyXYx8RnSoc3OxiKMY4cX4Rf8XNsFAW0+2wzyT5buhIjX88dcVelQ4w2qh+uMXa2 PXR72HAfx2Zw0wanaj/2b5VJQ+W7D5bA0+Dzzno54YnJY4uIX+LXBAUvYqBpvukJpYp0 yLiF5xGJSR1vbF/rWNKxLvFUOoNDAGu/L16IcmIFadjY6Jh4Cvj946taEg+f62EJ+7pJ lyp7l99HT++BolA0xKid3mEDD5cWaQYPyFDedQERtT47ENQNXaMspWcAG4lp56Axvole ucVck1mBdDwOAZa9apeGH7gT4U2l3yUaIKE9Ne7NrWhe4IIFDzjIZfWrLmHyzSSMIUCw UrbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BQzTxuqW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124919-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b20-20020a63cf54000000b005dbde0102b0si3714644pgj.288.2024.03.29.07.47.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 07:47:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BQzTxuqW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124919-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124919-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 AB7B7B281D0 for ; Fri, 29 Mar 2024 14:26:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EC3E14C595; Fri, 29 Mar 2024 12:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BQzTxuqW" 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 635B936ACD0; Fri, 29 Mar 2024 12:47:11 +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=1711716431; cv=none; b=R8OkdB3gVCntiqUwTYYj+no5DqL1ZHcOx1Yb4nmitKgFtp9YFZqQ3bbVD6zIGT5t9bZV+P3V3zQt8F9pAohyOFSN1HfDfOHQk0KSn4rQBCpa2rwG2+5mgi0trhY94oLYX4dbBtxqeJcXXJcF4SLeJ/9dXghvnA2DUm5zI2h0XHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716431; c=relaxed/simple; bh=sQkVl30sdVY6EK+DB5C9ADEQCWIPNWJaMiTM9v1dMv4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MnzL3fX4kVxrDIAp2lKeYSA0ZihRWj775+uK/Shhm+1g6j100F6gX8M8uTYXzMEqw/xEwzKta+3AQeTDwvQJXiyQvZX4P361bMu3Q8adyYIsmnk+DLTddmJMb3DROvPmJPFu89BsO1QBRVdmNdIfytecM7h47HmNzn4jKGhqRuA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BQzTxuqW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE14EC43399; Fri, 29 Mar 2024 12:47:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716431; bh=sQkVl30sdVY6EK+DB5C9ADEQCWIPNWJaMiTM9v1dMv4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BQzTxuqW2N5P0I4rNJbLK+/QkWa3r31Udp2bdLCC8TmU16OF78vzayxN1IrQdm0MQ VzsAveq4V+QU8mfi2Zmr+32g9Gc8dy0G4/ja6jQIWXaldr+1dG07VDMfTohbVX6DYT Z+F5X3KILS8hSc0VFY68Kirk91OU2cw6ID/tmpApRugwZDJKYXzqAn3LATJcO9/48L vBTDf+g+ifSUjMcA6YbUC4WtepdbUkIEKh5ojA1hGiXVewy+edxbf6DxZIkXqawpcG 8cQTXbmOgsdqlgcRyh882rNufgy3TrJkIiJyDN4NJrlxadWTR4STPSH1LaZc8KurOd OSwwBi21wB2Ww== 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.1 35/52] sh: Fix build with CONFIG_UBSAN=y Date: Fri, 29 Mar 2024 08:45:29 -0400 Message-ID: <20240329124605.3091273-35-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 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 591125c42d49d..ec3e78c5bff1e 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile @@ -19,6 +19,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