From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE69F5228 for ; Sat, 30 Mar 2024 02:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711764371; cv=none; b=XOuoMJXEdzJGwaR4O3Be5TMixp9xDgmtSdLqagrA/zSclJWdOzyKIWiVbW3fKYdG4DVlHv3Qx++r3Q4qkUrH/CVbc3Q+Zc1W1ZBqXVZ6KolpyDoO37ISkVNqGcqmMRB/e4SDXK9ks5JK9vPPSKeSBkgWzLjtNTrDJuA9Vj9MfBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711764371; c=relaxed/simple; bh=t0Hz0IPe/fb7iYcCk0H6dJUvRpizatFmMMLfnMLxuG0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R62nG30BLP1PrJxvfEBicXPJf83WsW3JX30Dn7cR1Km2qUOeTFH1A9OeKwX3ehL3tajpkgKIQrv00iiaKXEUQ8ZTcVtnoRCxNHyDBAHeJiifuG9o7dVG3vIsUMYJiqcJ8JWTrWTOFRqqWxR/TPWIm6MF50oOJXKqYZNJHU1/h/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=YwcfqojT; arc=none smtp.client-ip=209.85.161.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="YwcfqojT" Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5a1b6800ba8so1039095eaf.0 for ; Fri, 29 Mar 2024 19:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1711764369; x=1712369169; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=OZoxhsymi+AEBAv8CEqRs1EG6a56Ts64GeVC5M6dE6M=; b=YwcfqojTBmq/j10fo1+5GhvVHns3eg2r44YjY9moRlsTTliqCske+a48shWkooaHTz i11c+nQ+d7qNyBUyRLiKl8xUrWB6+KwT0UueYxDq5kW8ksdJ/eIvT47RE5B4T7qJk77Y PcILGqYrb44B6nkLfpJeABEYWM3NDSCWn8tTc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711764369; x=1712369169; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OZoxhsymi+AEBAv8CEqRs1EG6a56Ts64GeVC5M6dE6M=; b=SdiesxIi6aPWmFRsi+g2EcFLqk0W/LCs/JcYpEU8AQ7+b8LZB6JFoDQkRQZGdqlRyi CvpFucpLXSrepFErl7DhJWtgxcrgMM3dQfE25jpXo+vMOPJt5OCxjxCBSFENG/J/Yjwd ctfdiAt1MXgCD17P/zDjZjkCW3kpZ910SY3GeLJcGgCKYjlI+GwmhNgBs/e09pWUsez4 ua6b40dv5Ye2TvjA2nuB2/IVMEIit0OQKXoYVXWGKn4c3Z0Q0s0gTa8utNK4J3vVfu8y MBLggEiZ4X13ipbTo+6UW5ov2Fy3mzPxfAFGn8qn5Xxxioi0msKJltBRAfbvNkkTGNGP lLPg== X-Forwarded-Encrypted: i=1; AJvYcCWkYqCeoUgOokcH+6zyeRHW90gnwwTCb9mg3siMSXQxXLlU3BqH5Ih76fb7nt0mkuiWJg5rduvw+EIPVAbeoEnWBSpawjHl X-Gm-Message-State: AOJu0YysjLHZZEaakjFJ92QosOoc3bSdoxx/CrzD4c/Wpo6n4D23H40W MVPvNMPrH06IQbdFOjY2fakbnUHxPIsN/KLf2x0cQneHsCVTEVKpEg4JIikKAA== X-Google-Smtp-Source: AGHT+IHwHlTfLV9GfVQAhEexD8rGmEIWClX4bK7Ct2vKWmplx2znlAy02xAfUSs94N3Wc3qoALt16Q== X-Received: by 2002:a05:6358:5409:b0:183:4d1d:dcaa with SMTP id u9-20020a056358540900b001834d1ddcaamr4207104rwe.3.1711764369017; Fri, 29 Mar 2024 19:06:09 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id o11-20020a17090ac70b00b0029bc9c34a39sm5670564pjt.50.2024.03.29.19.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 19:06:08 -0700 (PDT) Date: Fri, 29 Mar 2024 19:06:07 -0700 From: Kees Cook To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, kernel test robot , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Masahiro Yamada , Nicolas Schier , linux-sh@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.8 75/98] sh: Fix build with CONFIG_UBSAN=y Message-ID: <202403291905.7749C8A8@keescook> References: <20240329123919.3087149-1-sashal@kernel.org> <20240329123919.3087149-75-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240329123919.3087149-75-sashal@kernel.org> On Fri, Mar 29, 2024 at 08:37:46AM -0400, Sasha Levin wrote: > 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 Same as the other: This is harmless to backport, but doesn't do anything. (The UBSAN changes needing this are only in Linus's tree.) -Kees -- Kees Cook