Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp528745lqb; Thu, 29 Feb 2024 07:46:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU56/LW9IIeO7KQ2tC1zrR72pCk0uyYkxGXwgRVzN1ebfBlkk9MAIkrIfMo4tcBBZxG14Md5CKY4xTLejOm+Nw8qvGGV9fg4o5E6M58XQ== X-Google-Smtp-Source: AGHT+IH1ocEhxYbOoKyN6B9pSBeBQTnOvG8zlL46Ut/+JCy/nH59MhPwXLEZwLks8RlK5ExFoelx X-Received: by 2002:a05:6402:448e:b0:565:b934:3301 with SMTP id er14-20020a056402448e00b00565b9343301mr1835041edb.16.1709221597666; Thu, 29 Feb 2024 07:46:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709221597; cv=pass; d=google.com; s=arc-20160816; b=l5f26rznIulr70UT/GxZ2AVpqBoIhUjphOTiS/GPlodVIT26B6xreLoaFjAFC/ONCU RNOuFknr/HpfjT/Ab2tU70dbMbpruXXAj0KDvmXmJPHRBf5CqmP59Y4itR//79B1Vj+O Dnkmg9/3o8bvWYyKrkgHxpR04jqQWEHb8AH8u+IS5WuJTmEWAGDPSQiKNHLGEiCetbsS kyY1m2qx6/pS7f5Jw505t1nviXLdAa3PiJzc+omzYx500hY7O+vCLiY9l1Tg4tBnzoZW Mm6uY0CV9eZKP55JoxYeEHpop+29bThIBpxIZ9EVux9dxmzID9C7/uH3We4pz4ih2tba Z94Q== 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=hsIh3lKYHDkVSlYvTDCczdKnG55/TlGKle2593K+ssg=; fh=s3QPbw8WnhGE7pQGS8Q3kt+VihykZoaA2Tz1MyVV7gc=; b=r37ZI5tTK9NZmqAfhInnHNiDEYeNTDeAhevHwoYUBLxjvwxUlL3ojiJBm+UrtHpl8h kn4PPnspGN7+rSxugWU55wSud3hzJLT8iWW19QnTYTEehcBnT22rOVV4vyuxHc8dUX5z giqCJf3Cmda8pSySkD7klZ71/HP29iW2DlOgxBAi/1MnjVh4O1GqGYjmb8O3HdwI9SQ5 IperhZLRxt6rLuQ1DDUCAdRKa4qN+htZ1Z2LpmtwQvfgJNTErl8UQrG1dU58VH1+Rrhv tnT5JgzjU9QQxrmMKfgP08E3jLrvEK74Dfl6H3E/z2eoQa9SO0zYcZAa9hzMWuBpZeMv DxbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=APKkcurN; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s15-20020a05640217cf00b00564479629ecsi634978edy.575.2024.02.29.07.46.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 07:46:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=APKkcurN; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86599-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8C8FD1F254B2 for ; Thu, 29 Feb 2024 11:00:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9C807AE67; Thu, 29 Feb 2024 10:59:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="APKkcurN" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 42AF67A709; Thu, 29 Feb 2024 10:59:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709204370; cv=none; b=imxLY4Jdt//eAnrW8cMoyvmsag/9lPaZialhVANaG6Oui1yacoNuEeaZWNpcFToXJwIjATqZj0h8QvfA0OTE2NNaZ56A4bauxstNeaqXP3BCT0mpzMlgOmXEh78+6/OU3Anhyc86zsikUyQaTxSgPOj6K9Hjo6/GV2FnCFGSuQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709204370; c=relaxed/simple; bh=YjdLAAQGiT0XCs7CLBYxxn9xZUUhhDnrttXTbBDNBak=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oAc+eK5Rz7DJuzQ7PeP+vIj95cFvofQbEBj2GhLihxLVuA1enKe2tQJ6N3nxbMY7f1o9kMAAH4jKrQuPe4QCqhOZ77x2O7I5K4QnBJlMCft4dAGjf5c0Eaun4dENmjxHfALhipvpnOFHO8ewrNCNgU3LkjGxUzEzbabHyAwL4Is= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=APKkcurN; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709204369; x=1740740369; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YjdLAAQGiT0XCs7CLBYxxn9xZUUhhDnrttXTbBDNBak=; b=APKkcurN3+rRf5am4IzJ/iuALooDcsFYrV2MKB6E7CsuGKDLo5nSkcAh ejyqCM6Y6TL4nO/6Ef24JPVNA9AgTUXax0UVbQkaPjZHSwB8gBciT3b7e SUvHf+Vi6zGNFw5JTbbAYXkFiIuRI9Gt7+vVnYZvLzVAxx0lrPOOMCl5a +jncWVsi8dph5W2b16vAwKrtr95E/o3xVL3IgJsI03Gu/hXbQZsWJ12f1 wqgbbWy3ZhdJITGF4++itCz0X4H4uaU7n7AMBQmd3LeraqvifgDfcfUGt ZcFB3iRpwgo0yafETqMJjYZ7gKz5EHN17KgrmekalAqRz1IDehYWTp4BI A==; X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="3789951" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="3789951" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 02:59:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="913979088" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="913979088" 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 02:59:24 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rfe8G-00000008eD8-3SLO; Thu, 29 Feb 2024 12:59:20 +0200 Date: Thu, 29 Feb 2024 12:59:20 +0200 From: Andy Shevchenko To: Kees Cook Cc: Vinod Koul , Linus Walleij , Jonathan Cameron , Mark Brown , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-spi@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Gustavo A. R. Silva" Subject: Re: [PATCH v4 1/8] overflow: Use POD in check_shl_overflow() Message-ID: References: <20240228204919.3680786-1-andriy.shevchenko@linux.intel.com> <20240228204919.3680786-2-andriy.shevchenko@linux.intel.com> <202402281332.9B2F13570@keescook> 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: <202402281332.9B2F13570@keescook> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Feb 28, 2024 at 01:33:15PM -0800, Kees Cook wrote: > On Wed, Feb 28, 2024 at 10:41:31PM +0200, Andy Shevchenko wrote: > > The check_shl_overflow() uses u64 type that is defined in types.h. > > Instead of including that header, just switch to use POD type > > directly. > > > > Signed-off-by: Andy Shevchenko > > Acked-by: Kees Cook Based on the further discussion this seems pretty independent. Can you take it through your tree? -- With Best Regards, Andy Shevchenko