Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp120744lqc; Thu, 29 Feb 2024 12:04:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRiJfz0wWo+m+ljsHCHCp79ELeQPMz2+wP5wyyqvHY4ImEFPdCbD9U3GG//cH4SkjM8bZAlO8FuQ7LazPSr/Y+3TEqHRuz3S2LOdlI8Q== X-Google-Smtp-Source: AGHT+IGIJeDUw5wXCq2VHg5Ic0SIw6MNzrZ9cyMHawSHPuOtq1cgq3bBNnlCLQfkKcUL0qdDxm8b X-Received: by 2002:a05:6a20:c1a:b0:1a1:edf:7692 with SMTP id bw26-20020a056a200c1a00b001a10edf7692mr2895835pzb.27.1709237084993; Thu, 29 Feb 2024 12:04:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709237084; cv=pass; d=google.com; s=arc-20160816; b=bAn8zhC7uz6LB98ZsRqHbyJYSgcG/+O7DzQaExV+vHgzIu1TBbz1gothZUyPyNvvvH twkQQkt9wrLLdxxmvtYyWsf2ifXQGxzpJay9f15g2iTcbVppQo3Z4uKIIvLMMOMeqImA vzmigDfqNAmD1Z9JDmO4O2c/rdAqS8kEkXBWFsP4DTxl9hhQVpGUl4HOwaxzXBAaxHox DsW7vTUlDzZnW25noJpRwTz5omgK1rSEJ64Y6ss859yherq2IbffWreM00+HCZNUSfL+ rlWD/uxOcsNG3dwcDX/pUml+ZmXJOS3KV78yN78iHihGE0GY0O0jBUmAvY2p70w9GYN4 4J2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=xQ+Fhk4WQxEmKz/ShN/ng2U8j7O0Fx7nHCKEYWhQZSA=; fh=yhMgfoMZl2+EQpOOFuNJh4/BtWGJoe3v2mj3VQnOV08=; b=DlITruelH2JYEaW71STi4vHTRuLA8EHZcHSPmK8/D2m0QjPC9yDCwFfIcSOV1t6ajM 0jiuk4eD+rAfFzi1+2D3OyGJ4VqpCtR5cn1T0Tf5kNwRdQiWHKVB5xwTdQ/NDVLaZQHb VMoYX0ABI++Ubxij+4UEst282HcOao6VFR9fgFwWIeK5hznjJO0cUROFD8dXZIsTL17T aYADEYavy5bfIHbKwpASHIF9U/8JWg+8Fe0xMt/6ppf32qtkGKx4h87paV0cmZQYo1ic vIdBucf5p0Az7sdw8ch+PTIDqCzpTbfpffY1BznYIVN77N57P2b9BRmfMFWNjuywI2zO OpRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZOtieByr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r13-20020a63e50d000000b005dcbb9cf3a4si2036968pgh.129.2024.02.29.12.04.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 12:04:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87396-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=@intel.com header.s=Intel header.b=ZOtieByr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 45244B22322 for ; Thu, 29 Feb 2024 20:00:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5815613F439; Thu, 29 Feb 2024 20:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZOtieByr" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 C91477A125; Thu, 29 Feb 2024 20:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709236847; cv=none; b=O7Jo/jdfRjVlVbiBVBx+FbtWlcxA4ppy2XE8dPdI/mcCPgwzcje42/L+tKz/WXnypFaez39pZGnd2hxh6eadG7mdhwxWp8RaUwBH8HXQ7D6Ad5MJ2ZfTjVS3KJXLcyTa4jEdhzAvNips+7RP54Rx1YgrEwK3ppsKcHKLNuolE0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709236847; c=relaxed/simple; bh=pgMPjnzpWVwWRax5G9fKHRUUN5IDvl4E8Lqx/QZdIyg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TVTUL59uxV1CE6szegIC3tXYRey9Mj8UjSYSE5I1RCX+beB8ypyh/dzCIT2XJuVT59F5dA1zixix/uEVGVnDHCknzX/AbIFP9nCd3Fp2UoAPx1vdacUrUpmeO8ebTbpa62eGRIq5wXH+AFc2WeXaigJXgfUAoMy9Bfo3ksFqxcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZOtieByr; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709236846; x=1740772846; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pgMPjnzpWVwWRax5G9fKHRUUN5IDvl4E8Lqx/QZdIyg=; b=ZOtieByr5ATnyeWbDDZNXYNcuY1EKzMZ7MNGtb5wJ7AS/EZ7FappYSQd LLxSKjeEQYp/Fg8N/Z0rDmI0rhYBlHx/oK1eFKYJ2Sm5hihaXCltClz9v 8+0HLzDDiGqpCuApERqcNkkt9srbHbQnvIWNlHbGKn5asYGYXvN4EyNPQ vLHsRXSmg01RC+4Jy1+3+0FQNL/EvyA8WTApPifEr14k2cmt6Otz/BlNY Vgv/ccEezonpqBt5OE7JgAQmMMClppNn3c1RxcIcKaL3IHJs8E8PNdYGv RQKNysq4XX/bPZa8JRdgCFmNq2u6qn/OzzEXuzNasT9DOPvwmrcVqeHRx g==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="14376081" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="14376081" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 12:00:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="913991086" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="913991086" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 12:00:42 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rfma6-00000008m8s-3tH6; Thu, 29 Feb 2024 22:00:38 +0200 Date: Thu, 29 Feb 2024 22:00:38 +0200 From: Andy Shevchenko To: Kees Cook 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: 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: <20240223165942.work.950-kees@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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. -- With Best Regards, Andy Shevchenko