Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1333094lqe; Mon, 8 Apr 2024 06:14:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQV2fE4X51Fd58ty96nC9g1XxviVnwMW2vUajDjNz7URp8MsZdQlOi5Dl3qHx0HeyO8vTbjH/+0dXQCmLxpbSXjZGnpYgZfyjm31fgow== X-Google-Smtp-Source: AGHT+IHrDhbNv4akS5myVitn8cK0TnJv8SF+U/JVtX/cSdKaVaTLi+QSDKZVcmFG35RoyfgmdLlp X-Received: by 2002:a05:6102:3713:b0:47a:dd4:2beb with SMTP id s19-20020a056102371300b0047a0dd42bebmr804030vst.11.1712582088582; Mon, 08 Apr 2024 06:14:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712582088; cv=pass; d=google.com; s=arc-20160816; b=H4l01zFlLHN7GW7c1Lnd0nmjHEpVQdwrw6vP+pchy/kD5anZyjHPMVOG736D6sTeUL JMbHcDRfisLJmnawEl4N+3JOOZNWK0g/erqzqvqMj6wLVaRuwRaL0qq04z71WYhsHJ0m 7GDirnAuFj3Hd56xrH6CfcBqGHhAWShrq2q6FqUIYiUh0I9HNGsqbhUOTy8Y5wWg+Nvg QrFdsNc5J5jn85CBHURnq4uRqWfmW1gdh3HRpLEZ0+UeT6yKIx4b6DhNFrH5GCzmpwX8 Ik7psJJty/0UzPpjEz5634zVLmXLHfSdbP2+RVM+W0ha7+eI1HaIfnmQRB+xwURHcsSk hMuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=LC9sQXTLSbo0WGC9gc3QQQGsICOaWlN1GU1gt+8jlDg=; fh=HIrP3i0WQwu8zLnKtb1acHgteo695uCSG6Yk5OndRkw=; b=zWvfbIzCvU7EoAJow3bQGQmHxocJ2/u3WeFC/fT+WNc5GV0iUVI9OdbyGoNzzEn7Pz ojua6/heLqaY+d4Dl3v3qHU/s9/Oa1NGu4IdcXZ6uZ6mqM/zYTLGB+0uXLfkL7uB1d8H i/pD7Y3QiHQYtqh/NgjCqFxEuDGY/7yUYlYhxCRBCj6y3Wn/Xh5QNZ81/V1S+azgsT4E e4auh7N29kRMxxKGSc214GLHjj6kDMuMtDg5/ULy6sA5W+/AOSNO5b5MXQwqQ4hGtQ5m z0uJ8wDs8bcM+zFRd/0M8C+Q07dACHnCkgEwHSXvy2bOsLweAc2TPoLv5duV+PC6+Hk2 6uVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hQpagJeT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-135404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g39-20020a05610215a700b0047832912459si1166360vsv.3.2024.04.08.06.14.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hQpagJeT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-135404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E5CB41C22DC0 for ; Mon, 8 Apr 2024 13:14:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B92781AB4; Mon, 8 Apr 2024 13:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hQpagJeT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="eD+Z76Li" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 A636080029; Mon, 8 Apr 2024 13:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581847; cv=none; b=VjGuBUamBzBvtaqcIDsDvNEkliXtWYH44z6tsseyVQICQ+AgpLJzxS7fJgwlC0J/DIIFg0dHIrnBL7HVqrudHm0oQnwBcp9VR8eVeCQyPzr+CENnyMbKKK2XdjEEpkt7xoEfahpz72fx3Z2LZWzQp5hgrpFbSn5q9E9mGCGL2Xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581847; c=relaxed/simple; bh=BQ7PyoI725u0z3sCjDHso82ef/w4c8t+ud5AEItxvl8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=sM5B4fRizF06rOO1MxrQOh2A+yKoWs4lpgsAkJ2FbmXGr1CmkBNfwTTBcuIJanr3WEQkrz+FQPQfiet0BdXSItcWqroaSvM5c+ze5J+3sHTF8s56aVBeKm1hehyPE+lZJTCruuxJu9EwjpOltYV+fLbeY1Y5Vz6jrcDP8H5doVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=hQpagJeT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=eD+Z76Li; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Mon, 08 Apr 2024 13:10:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712581844; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LC9sQXTLSbo0WGC9gc3QQQGsICOaWlN1GU1gt+8jlDg=; b=hQpagJeTeCLjVi1oyTlYhHkkaH6+8mxHq/w++Ntjow0Jql028cZfsY+2f2Emr/vE2qKXD6 YjfCS4kKxijBzsy+RGBa/UPWfmF37qE2hQGpldLf9Z/RL1yvwuNZ/vwQk4Xhg5Qu8+hvb5 nc9uELON14dOmUL0QzpT5r5tPGLiMms3MJG9fOsHFPFRPekALvDdwZw7eSZjZHn9TM25HB DNvxSTgUuCtmYoT09ZB/GlIKPkmDPq0HDK6Ox43i8NU/5twpcvRHWw55QebQo7XNvgZFej ndJc5FlkY5N0Z03aFdmvxEODrBKS1P5txm2WdE77NaGK1jNa0qI0Xsdt+3qr5Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712581844; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LC9sQXTLSbo0WGC9gc3QQQGsICOaWlN1GU1gt+8jlDg=; b=eD+Z76LifTM/mTdCW+HQY2n/wEu7+JWHYTuGyIsOOdLSDmNcq/fw9F85QE/wIPjXTCdssO ImuVOSc84RO9E4Ag== From: "tip-bot2 for Adrian Hunter" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] vdso: Add CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT Cc: Thomas Gleixner , Adrian Hunter , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240325064023.2997-4-adrian.hunter@intel.com> References: <20240325064023.2997-4-adrian.hunter@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171258184335.10875.8126157733328789129.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/core branch of tip: Commit-ID: 0c68458b0a5878d735572b4f4d91219a1db7c784 Gitweb: https://git.kernel.org/tip/0c68458b0a5878d735572b4f4d91219a1db7c784 Author: Adrian Hunter AuthorDate: Mon, 25 Mar 2024 08:40:07 +02:00 Committer: Thomas Gleixner CommitterDate: Mon, 08 Apr 2024 15:03:06 +02:00 vdso: Add CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT Add CONFIG_GENERIC_VDSO_OVERFLOW_PROTECT in preparation to add multiplication overflow protection to the VDSO time getter functions. Suggested-by: Thomas Gleixner Signed-off-by: Adrian Hunter Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240325064023.2997-4-adrian.hunter@intel.com --- lib/vdso/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/vdso/Kconfig b/lib/vdso/Kconfig index d883ac2..c46c230 100644 --- a/lib/vdso/Kconfig +++ b/lib/vdso/Kconfig @@ -30,4 +30,11 @@ config GENERIC_VDSO_TIME_NS Selected by architectures which support time namespaces in the VDSO +config GENERIC_VDSO_OVERFLOW_PROTECT + bool + help + Select to add multiplication overflow protection to the VDSO + time getter functions for the price of an extra conditional + in the hotpath. + endif