Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp284989lqn; Fri, 12 Apr 2024 01:00:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMI7qKsjwij2c5pk0XxUsrdwJwSBXyVPo6eItWiq7qvYyVDKAr2saxnBtq8hhm5X/L+E0GntmfLqwND60cXmHXu4tLuzbTWIWRlbaupQ== X-Google-Smtp-Source: AGHT+IFMJYmQujNt1sjTUQvENCQKpyxB3bi14L8vm2xyuD+SbrxGPSH8TMEFFerEj266lLslzX+m X-Received: by 2002:a50:d797:0:b0:56e:2aef:f92e with SMTP id w23-20020a50d797000000b0056e2aeff92emr1201328edi.17.1712908800620; Fri, 12 Apr 2024 01:00:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712908800; cv=pass; d=google.com; s=arc-20160816; b=mjRHc4GbM+FyLoQgHQ879z7qx/mE8TTXLN8W99E/JrmhHZtcO7yohcnNcszX6OKWfI Dl3/ng/dMh3rRqA6kRelS+lwUQ0rdPe8l4aqU5TUlybpOvo21xJoHN7OWRa0vgX7XUo5 KPiQjHvGd3YECTXqyc+52iwH3py4H6bor99TKclJs5tJTCXwCxyiBVqDx75eJ9hiR+fe bD431nbq75Pop01NJESg7MRo0mg+Qkyocxm83JMJtW2zaR6ck3pW9GhZjTWiQtT32eNR p5HtPufaNc0A8Bi4ONggVWAe2F7WMzwIp3co5/hpOleHKposiJPlhrNNtj2RpW5F5J+t JnQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=9kpc36YLxfEtad6uDI4ebX5d/dPQszIr4wDX8T1iaos=; fh=2f6RLOPUWXEkPgApiJc/kdJA05dpaHm20IlkpY/+Kcc=; b=p8snpmJJFTgKuuMG7IWdBW7GoEX+GLD4dafTLWd+qYKXwSC2mAkRoVgnxmL8Qa5t0O /R+S8Rb6vh/KPH+O0ukh+KfWTqeqpMo06CzEs+cQgcxPPdVj0BjPBzsaFTv/Hthj+/dy b/r/t8YQCXvfjQSiWDGDGhPFhY/D8F4h8Ylv3QxWWFNhrub3cv7GsUfey67YwTv48P34 0fhm2M9VXee5MrZWp6c95LAdo2UoQxvnJYkb3/TigCZ6QBq91sGDlfd19hj7fzd6dAvF /KjSOn1sck3r/dXthM5mltwouQ+yhhL2vL9ldVX9NmjOHvM87iBVV3FxoD/9vvqW7amx Edew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=J2N7oNR6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-142189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z93-20020a509e66000000b0056e48c6c530si1480251ede.514.2024.04.12.01.00.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 01:00:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=J2N7oNR6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-142189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 4A5BC1F2291A for ; Fri, 12 Apr 2024 08:00:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5B3E4EB24; Fri, 12 Apr 2024 07:59:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J2N7oNR6" Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.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 C4FF81CD04; Fri, 12 Apr 2024 07:59:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712908791; cv=none; b=Fhzt7MW/u59TnlhYGzaLrIBgn5Wev1F+1P9777uLfD3il7Wc5DzSVMH4VrZk64QT54rj8NQJGvqaTaaZ/6u4FR1rh37F64+tcBtfz7F95AXlsq9TeV9mfQOE3A99AQPtpI0orTuicJVIsqn9vRPUT0SUW3Zu9xK3vUdef1WJXW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712908791; c=relaxed/simple; bh=9kpc36YLxfEtad6uDI4ebX5d/dPQszIr4wDX8T1iaos=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BAu/PcBKnR1B+qBcVo8aAfz5M4dpyNmwu78aMNG9rP1fispPxiY98Htgw9NEAlLiuJCBY1YqIcGr52G5RQnAs5sXAxYwNWVbPj0fSqVjh1fiH8f5FRo7fc3NQRUqfOn9PJYvkwg0xvFhorcIJRa7oVAvYmr+Es9rkch2LGcPigU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=J2N7oNR6; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2a484f772e2so339095a91.3; Fri, 12 Apr 2024 00:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712908789; x=1713513589; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9kpc36YLxfEtad6uDI4ebX5d/dPQszIr4wDX8T1iaos=; b=J2N7oNR6XpowICMG8bhO7Q3ua1q4zYr8DrMHQK/wpzUE6DNe/J6r1xh0WdNMDUxnm0 29KPL6S8R/v5SCZugx66tsb64MSMNr8JrkpnOze+nDs/1/z8FAz1My/cAp/iAWw8DPnu 3GmYuT9BDpepnRIhFxWLYEVPWZIm38lgdCJSbeMacibUfKoxqHumbDvrkymaFwLWKwos 2OczxTNHAWOlsMZkvkg4PXFrOoGJO/TX5qqv6FHkZzl5J0Y8dqHMLiuCfI8csISBjyZT nfwGlJWXVkz5i7N3vwnm34QH2BOLAQaLeHfjbfVmdAjmfd1TftOfHuVkWpTmOObQQSkm mjpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712908789; x=1713513589; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9kpc36YLxfEtad6uDI4ebX5d/dPQszIr4wDX8T1iaos=; b=NTUYuO5FKE3nhzmV1rrda7aNnoBnZTGm21KGXBBMGXWxgw9KuW/Kis0A0BZSxh6ynX 7+nSjrmjWwdLMOnBh877KWlkgt0zhkago6Tksk0gHdedlOfjj2IUiP+m6C1KuWO0gEjZ dJRaraTMmsqc1co1yF34dj/YMAEWT2opFSTQ+idNlbCWOEyja7qV4r+BhVradhtvxiqh 7pNjHD9i+FRrjKLZuOlcgFNx7SDq78kznp8JfDIkyf2jyo16exiyhqzUhdSDgUpwOFOG GBJLoYhS2h9kgzwrImeqfzE+gZYYoYXN7Dcz3NzkbuTQ+dZ/lTvjutqMuYa4fJwgxDOx Cz6w== X-Forwarded-Encrypted: i=1; AJvYcCXSGm1gPVDGmnEhWPwnw5aEKtD6roYa6PCsxXc0dSWJiigIbRLKjn/vSP06meMOkVZ0Vdp/dq6zLv/2lNMlCsEgWWfLeyMZ9HPeRUC8Nz3U3eN1leZQhjOWYZn/FFLMG5D7Rku54QPlCEtHc1Y= X-Gm-Message-State: AOJu0Yw87YTKmOCvcEz3G50wkf0FHMtf0U63J4BvE+W42T3kA8fxPxmT N0Ij/T+XZUC0mYmIkbjtKFNdgCNMIVUXAty53i6Ux46xWspVjS33Wzq9zuMEEGgZFgQ/u5M7uss C43uLAjtriTNYqlge05GN6NprnHw= X-Received: by 2002:a17:90a:c397:b0:2a4:9836:aa2c with SMTP id h23-20020a17090ac39700b002a49836aa2cmr1681059pjt.28.1712908789034; Fri, 12 Apr 2024 00:59:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240411230801.1504496-1-boqun.feng@gmail.com> <20240411230801.1504496-3-boqun.feng@gmail.com> In-Reply-To: From: Miguel Ojeda Date: Fri, 12 Apr 2024 09:58:57 +0200 Message-ID: Subject: Re: [PATCH 2/2] rust: time: Use wrapping_sub() for Ktime::sub() To: Philipp Stanner , Kees Cook Cc: Boqun Feng , Thomas Gleixner , Miguel Ojeda , John Stultz , Stephen Boyd , Alex Gaynor , Wedson Almeida Filho , Gary Guo , bjorn3_gh@protonmail.com, Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 12, 2024 at 9:43=E2=80=AFAM Philipp Stanner wrote: > > Is that going to remain enabled by default or what was the plan here? The plan is to ideally keep it enabled by default, but I defer to Kees with whom we discussed this back then (Cc'd). The goal is that Rust code, since the beginning, has all wrapping operations marked explicitly as such. Cheers, Miguel