Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7817495rwb; Wed, 23 Nov 2022 11:07:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zjWybvRnx56dw2dWfrQta9CJFk+233EhTVXqgwuHUSjzhyA3X+XUZPcSL41HFNcAlBw49 X-Received: by 2002:a17:902:ec92:b0:189:377c:9aa with SMTP id x18-20020a170902ec9200b00189377c09aamr7690692plg.90.1669230467803; Wed, 23 Nov 2022 11:07:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669230467; cv=none; d=google.com; s=arc-20160816; b=YF540QnoFMcItz3qT0jfUWJQ+7m4c8nCw9U6QxIlG6G8hO5OD/UcAokUig52ZM5zQR cjqvBJifqgP+lXWP18yCYTYH5utKG+mR8S2iaB/Ljplw7ia5DOJhOsz2ZrCg7x4CZFSO xYLhUoQuueWQ31R/gVZuoV/OkMigEEC2QT7BnLSy+DEPQIye7HrVh/luVz9DfKBTtivQ J4g90gHCbQVRfcCpsOciZYDqGiT9ScuCK94EYW6WtZo68iKD2eZKw/d5r2XEr2UBcYuo 7O2vkesNPYn1an2s+u7UyWCkmsroZwYEvmNMAUUC4D+Nwo2JS+Rkjz6W2hhIUlNC/bkK h+Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YkY98wWkOr8gcPA7rEJ+Ei5Q1t6NA6kWh2YpykOcth4=; b=yhks+foLtOcd9za1BLXanAmehrSR6XhVv9dIRUU7fy/b0c5t0SZ+cWx8OBgtnXL0ut TfvAzeDzfYpsnR/d376+rZJG3eOpFiNOVp3juauMWToGFSBJRgQAMVFVwLs/sB+/aRkh gswWJ9c7R+IEeg24QyKsDYVDLkAR4cNuieonh4klHYzKDN/aa2nr/hTw2VFhxv2qy/Zd ueVqTNqclWtdat8omkBduf1rcXFCxWJcqC3es4va56yaPI7ho9+RivZcKAU0Y33piw51 t8nQIvfVekMSMRHbBVbz7mBKX9m6tpbpf3WDsGNGCoYGbJSnGH2nI4uRDMCj80FCrMP7 ZXzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="h/KmO1JP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22-20020aa787d6000000b00573a320160csi5818359pfo.307.2022.11.23.11.07.34; Wed, 23 Nov 2022 11:07:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="h/KmO1JP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239085AbiKWSyo (ORCPT + 88 others); Wed, 23 Nov 2022 13:54:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238111AbiKWSyj (ORCPT ); Wed, 23 Nov 2022 13:54:39 -0500 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C318220B for ; Wed, 23 Nov 2022 10:54:38 -0800 (PST) Received: by mail-vs1-xe32.google.com with SMTP id p4so18331085vsa.11 for ; Wed, 23 Nov 2022 10:54:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YkY98wWkOr8gcPA7rEJ+Ei5Q1t6NA6kWh2YpykOcth4=; b=h/KmO1JPprgqmpWqh2J/alqyxC9f+AjXXJRyeDTBqUUe92grkau7vpD/KZxCtOjEBc Mn2ZR5cg4JdRUx4XruFVAsYt+t4jDonUJ9sSN3JfNww7hanbIIb3Nye9j86ejJoC8Xrm L/BYMoITUydsw+LXLxpT4M0eGnYAWUtODeGhy6xQK/L0zn4uk7e2AYmR+rfw45Dosmyu Ku7+Y24VnxQjRALrKlWZBz9N4x/pCcJjKJI5di/0EigVprwWuHFjKKQc3j90DohxKjWS EKPj8dTXKzpRO17HDO3dp0eu8ndJXZVO643mQCP9jYfLfScjJ2munKVM/J8eBD5qypK4 gg+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=YkY98wWkOr8gcPA7rEJ+Ei5Q1t6NA6kWh2YpykOcth4=; b=u54sD5K/lQ68yuUKQPnQJ7J/Xzp4HAOOkVOk2iHG1PnS/IdEThrurWM3ydiXQfv9+s iLBET4kSy91zGBsm1VHVjtvJWBqFRCmy+wjdmRToavc0Cm8nFtMecCUteJbB78vSW566 e49OLU9tWCfHNbwrapxotPOQ6hvSjQGUaurRceLwJI+bkv39m8/KWzcZljKS5utQAL3J K3SZLTkuZlpB4geADfvossC6qS9Mg73ovpdfVDQMDcbRnhezJtwe29RHPjXFVn9lhHym Wx/cv2J3kYg9e8fd0CagQX2lREHenrvat5QfnoBqUUYkm3d7WR7gfNREIjXw78xwLR4c wWvA== X-Gm-Message-State: ANoB5plcDF4g1btJcppYdnBZ8y6NKQkpMHNi5F9u1FObOu2/F3bPwzQR UjmnMbk8WhnGeU3BThJETNY+fifshrKPo7O5xLuzl09SLA== X-Received: by 2002:a67:ed94:0:b0:3aa:8846:b9a with SMTP id d20-20020a67ed94000000b003aa88460b9amr6311148vsp.58.1669229677407; Wed, 23 Nov 2022 10:54:37 -0800 (PST) MIME-Version: 1.0 References: <20221121055345.111567-1-jake.macneal@gmail.com> In-Reply-To: <20221121055345.111567-1-jake.macneal@gmail.com> From: John Stultz Date: Wed, 23 Nov 2022 10:54:27 -0800 Message-ID: Subject: Re: [PATCH] time: copy tai value (International Atomic Time, in seconds) to output __user struct in get_old_timex32(). To: Jacob Macneal , Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Stephen Boyd Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 20, 2022 at 9:54 PM Jacob Macneal wrote: > > Previously, this value was not copied into the output struct. This is > despite all other fields of the corresponding __kernel_timex struct being > copied to the old_timex32 __user struct in this function. > > Additionally, the matching function put_old_timex32() expects a tai value > to be supplied, and copies it appropriately. It would appear to be a > mistake that this value was never copied over in get_old_timex32(). > > Signed-off-by: Jacob Macneal > --- > kernel/time/time.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/time/time.c b/kernel/time/time.c > index 526257b3727c..7da9951b033a 100644 > --- a/kernel/time/time.c > +++ b/kernel/time/time.c > @@ -311,6 +311,7 @@ int get_old_timex32(struct __kernel_timex *txc, const struct old_timex32 __user > txc->calcnt = tx32.calcnt; > txc->errcnt = tx32.errcnt; > txc->stbcnt = tx32.stbcnt; > + txc->tai = tx32.tai; > This does seem like something that was overlooked. Arnd: There isn't something more subtle I'm missing here, right? Otherwise: Acked-by: John Stultz thanks -john