Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp165944lqc; Thu, 29 Feb 2024 13:33:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+W5kpUBLIU45o+7ZHDjtVYtDxGpEiJ4pp4a7vRWdfd6s85wli/UHdL38dahKnIvkSTqoKaBaAWt48Go/yfF08evCnCwLvA5Z+xp6AZQ== X-Google-Smtp-Source: AGHT+IE4j27ArDa0ngeGdCDXEpJrWLTkiplCE6HfLPmNJS7LZAjckp3JeBohuGBgWHfhgDvHO8My X-Received: by 2002:a05:6a20:9f89:b0:1a1:1f2f:cb36 with SMTP id mm9-20020a056a209f8900b001a11f2fcb36mr3627002pzb.26.1709242383296; Thu, 29 Feb 2024 13:33:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709242383; cv=pass; d=google.com; s=arc-20160816; b=U1+RusAJ2NGW5CuSygLO/Lc9RBIz4O0QiHflmVdCfOVVIe3cX8rpKwfPLlG/U94hMU D2+v89UKVaCEYB2j8lDHX4uEUJCSf8aG/gs5PStmuAxBvfbDkRt52O0OQcrRDZ+FowJm Gi0hNSM5T604pzAnFmwJtOnUFTyTNwPNEMtUqOMgOwaYMZEjxE7EXQqj7aBP9Z/sqGNC yQQ9USrqIjCBBldq1OxgpQSmCGAW6x/9R75940V/7wcbUZLSQEVlnA2YUKoyt8wzTOyb MfEGUOJgveqJnhZMQDpX/jB2Cafo9wUNNscT3i715IB4e3LmvptlT81Sm6fX4pelmLie a/Ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nZXiBnNhAhi4ZtO0SADmUcnGG7Y1r2RQ91McDK9U7hM=; fh=pMkLBj2SbtFv+Iqu5HiWSCQliTFoF3avDOVIQtAOnTI=; b=NmuXq7ShxUVEQB6eBuTLMELWhfwGOVWB3Bgx2N7BP/6K+u4G7VK31ai3q7EqRDLrNC LTySzUuwjQ4OroJKIYCm5HUAUD7PamWaZ6/Wc4gXyD4mx6C59ymX1ICNO/LP3B/koEHG S0ifx01gNmmRXKs6w4iJecSPk3Iw6FEyfyl8LPMjAS0/SlFNknoygHqnTBSK5fgBTHsH ZUyEFQ0H75uxIx6TD/GlAGLV5TP4eFPtrLRy1OvYWx1ZCoyV0hYWDk4uq7IRfWPOA1/S A9VOfG0q/XxJQt6oq8yGFdYfFj71XUUr00LsERTJF2cCKqChFiCTrkHE9aULYxLXyo4R QPKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I+9QetA6; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87589-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i131-20020a639d89000000b005d8bb714e7csi2098593pgd.593.2024.02.29.13.33.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 13:33:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I+9QetA6; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-87589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87589-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F2E24283891 for ; Thu, 29 Feb 2024 21:33:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 565FA6D505; Thu, 29 Feb 2024 21:32:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="I+9QetA6" Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 3AFEF16FF47 for ; Thu, 29 Feb 2024 21:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709242376; cv=none; b=VSKLhm4YZEjYknYRHZOXLpRZFbmqxlkUP7N1L/UycqvTYgH5d5OZ63DNqd48oNDTJSfCMZ2CLqIGkmIPub8QL0iJaqtqPfJwhsn0zQuBTrfL/FURUbqGHLAyEyxzxLhh/BcTt5YQLQAPB4QruupiE1lRxo+27kHZvSxf6eFgaEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709242376; c=relaxed/simple; bh=M1OIAA0ItaLeA6OMZsMNhafiM0P2mVk8eYOUN2HrEfw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jnm/JaE5ZrTAUxPg06MOcNz5Nrc3RoRORi04zhh9y4V+taCWIfi7C1of6vsH+yQgYzzquPSAC+2edK8FjCLVFi+cEiNHY/jkA6vQVMf6qD03dLnvQA3rP2XQDaj+U5OtAKl9D9CIcK+qs9LibcBiyLUM15CKujVR9pGj/IfjLSs= 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=I+9QetA6; arc=none smtp.client-ip=209.85.216.50 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 Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-299b818d63aso1140074a91.0 for ; Thu, 29 Feb 2024 13:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709242374; x=1709847174; 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=nZXiBnNhAhi4ZtO0SADmUcnGG7Y1r2RQ91McDK9U7hM=; b=I+9QetA60AKN7+t5WCRGjyqQwKr9rI+ukig6Mf/i2z299vpTYLGtWS9tn9ZHxElQkt dFio/wStFf14NLTi30iYq8N8D09+JygkatmXoIRG1z9YbJKvEnTi8GQHUGsOWiK/spJF 1zSwoSK5171OWb4jpi4BY+BLYI7PQ+0/a6jaE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709242374; x=1709847174; 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=nZXiBnNhAhi4ZtO0SADmUcnGG7Y1r2RQ91McDK9U7hM=; b=NkAXZZxEZyqmluRyWZ82Z/1vqul1EA68TK6rFPdoRsF/eTxEMR1EnE9x0PWkcs9BAs 5wRXkLXzmwTVfhvbhc/ZgQut8FHJtJ7D3EBwa2dqq/X+BnH4MCk8NQUUeN8MAql9QMvX 7EtiJcvwzYSQ0CBip7TT6361dviJFEYf9cVx5znUmagkO+zy6YbLU2DGPz8cCgf/5GtC lqJvk5BntjdgR/P+nZLBEQ/6WrXBINneygTgIsl4VU/APCwC+i+oSyNEwSMMToPxfZzU spioUhUquUq/7VompOEuWQohe/hwo6GFYILHCw6sNvdGEcU1GtQMFMBMy2EGNZt5yjWW H7hw== X-Forwarded-Encrypted: i=1; AJvYcCUUH5tTtmCwGpsaeMo9/shUzxZBZIpVmLJBqSBBqRDiq9OA/pXPH6nRo9p/QHN+nIxVGHPWM8MOSHP/WaEAbNg9Pj55I9+3a0LEAfDz X-Gm-Message-State: AOJu0YxN6DJYXg9H5nWqPKuwF1RdlPRC9bhwt5PMjPSxYL183AulnSFZ Lg6W5needsI5Aw3yiZ7nk/kCm6b/TuZZYOz33Fc6k5T69RVlpcbczSp7l8vtjg== X-Received: by 2002:a17:90a:4491:b0:299:3c2c:b680 with SMTP id t17-20020a17090a449100b002993c2cb680mr241994pjg.15.1709242374560; Thu, 29 Feb 2024 13:32:54 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id c6-20020aa78806000000b006e53cc789c3sm1728164pfo.107.2024.02.29.13.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 13:32:54 -0800 (PST) Date: Thu, 29 Feb 2024 13:32:53 -0800 From: Kees Cook To: Andy Shevchenko Cc: "David S. Miller" , Andreas Larsson , Masahiro Yamada , Sam Ravnborg , Helge Deller , Guo Ren , sparclinux@vger.kernel.org, Catalin Marinas , "Russell King (Oracle)" , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] sparc: vdso: Disable UBSAN instrumentation Message-ID: <202402291332.2C89081A@keescook> References: <20240223165942.work.950-kees@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@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: On Thu, Feb 29, 2024 at 10:00:38PM +0200, Andy Shevchenko wrote: > On Fri, Feb 23, 2024 at 08:59:45AM -0800, Kees Cook wrote: > > 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' > > > > Signed-off-by: Kees Cook > > --- > > Cc: "David S. Miller" > > Cc: Andreas Larsson > > Cc: Masahiro Yamada > > Cc: Sam Ravnborg > > Cc: Helge Deller > > Cc: Guo Ren > > Cc: sparclinux@vger.kernel.org > > I dunno how you applied patches, but these Cc seems to appear in a few commits > in your hardening branch. > > I formatted patch from 9fd54b08040669, checked out the new branch just before > this commit and run `git am 0001-...`. I don't see them. Ah, hm, yes, I'll need to split up my trees a bit to get the right results. Thanks for pointing that out! -- Kees Cook