Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6148126iog; Thu, 23 Jun 2022 12:20:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u2Fn+9hS7iSRMNQtQZqzS4omUrsaXywjPNb4G/q9eI2brGlKqCipu0Hxy3xFN1wPHWbuRS X-Received: by 2002:a17:906:149:b0:712:c8:fa53 with SMTP id 9-20020a170906014900b0071200c8fa53mr9609418ejh.563.1656012015844; Thu, 23 Jun 2022 12:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656012015; cv=none; d=google.com; s=arc-20160816; b=Pk9oEfC1eTXXgxER9Gw+yy4zSFsXl3z4niAM4P8QG1zEUB4iUgTFIPJI9qZ0m96h16 FlJElpPChYQoAKSvnzpDb2+FfmvdHv+UCyv1dr6uhOLR2QL+vwfzyhwl34jqdWpmYb72 K4sweWix2gAqm1i1yDjX7Mn0/xBFa13JHt7l1jG0UHfxKcT9ho667xSWlwDjjALdLpOV 0VkPDLWBShi0g0olG7RFtWGIZi/W3OwNbKt5dhVlC8T72hBBx2mMrVOogLmOhwNyJVvD 3r9Z915gzZh4r4+c8NPp9QA5qAOTSXy+Tn7OXaePMRw+VDI5WcvX9bgOJnfBKlekM1ep AKqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RxFLo6mda6lL+F7N7xnj+8x3uil0/i/ipXQ16b8B57Y=; b=UY1UcFVTW37kB3DDp+hOw1e5XYUoBzCFTSqFtvtzoEKQg9tWh1gDdv2LCZ0TRVBx5n C3HiSPPyY0htrrHCDHr2U8rujltcYtxEZ946Y0+2yjiEw/ZWGSzLFlOmFTQzgp43lGG9 Fd1etsSveR9oCdHo947n0DmBEIT2q9z+qp9BGZViw9TUooZ6rYttPuci58vRB8Sqe1xY PV/03K9IfYvz+GFGk36pg8zGO3eEG6bthh6TJPssECWz2RGjP4HRASDNEmXJZIgHE2oR iVMfcUhfXRdd+ew95bO9FO22+zSNNyMwUhrMta78MwS3y5b64I1YetA2S4hbbPrYdYTP kwmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Gx8Io8lN; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e25-20020a170906081900b00726297021a3si2281752ejd.606.2022.06.23.12.19.48; Thu, 23 Jun 2022 12:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@intel.com header.s=Intel header.b=Gx8Io8lN; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbiFWTAf (ORCPT + 99 others); Thu, 23 Jun 2022 15:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231821AbiFWTAD (ORCPT ); Thu, 23 Jun 2022 15:00:03 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3620B858C; Thu, 23 Jun 2022 11:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656007536; x=1687543536; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wK7PtfVDpfomb57ubvzsIdHXetcpN8TvU96nmL+7ONE=; b=Gx8Io8lNmUovPdeCwhitpgIPAJztn4fk8shzk+RN6DEH6ZUJor9J6k9O aktvmuKjEeoBObUIA6DuC7elVPldLK7mFcezDHbCiaMPgvdaYvTBUuSde n3menpL0CTBW/0Oj231o7mQ4C/l2mIfxJ8IXgY6V74CftZc2FJdDUsAf6 vZjpSLeerInw25rgH2ZH+TkbVQ94f3QtBDYA2gNCxJmc8DPWPcpmnDUDp J5ArLSDQIp3gwZIwHUDF6OEV8p68hxp2kLS2/AeUe8Z+pIubw3DcrOe4D ZMtHhXL/ns+IMkGy9WSvT+RodwBIqsVP2P7g4BSREm7QQDc+JykP+ARTL w==; X-IronPort-AV: E=McAfee;i="6400,9594,10387"; a="269523769" X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="269523769" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 11:05:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,216,1650956400"; d="scan'208";a="834750314" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 23 Jun 2022 11:05:24 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o4RCl-0002gr-Od; Thu, 23 Jun 2022 18:05:23 +0000 Date: Fri, 24 Jun 2022 02:04:46 +0800 From: kernel test robot To: "Jason A. Donenfeld" , LKML , Thomas Gleixner , linux-crypto@vger.kernel.org Cc: kbuild-all@lists.01.org, "Jason A. Donenfeld" , stable@vger.kernel.org Subject: Re: [PATCH] timekeeping: contribute wall clock to rng on time change Message-ID: <202206240128.jVs1F5jD-lkp@intel.com> References: <20220623165226.1335679-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220623165226.1335679-1-Jason@zx2c4.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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-crypto@vger.kernel.org Hi "Jason, I love your patch! Yet something to improve: [auto build test ERROR on tip/timers/core] [also build test ERROR on linus/master v5.19-rc3 next-20220623] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Jason-A-Donenfeld/timekeeping-contribute-wall-clock-to-rng-on-time-change/20220624-010017 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 57963a92a70b037aa22544fbc34742e5be689c04 config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20220624/202206240128.jVs1F5jD-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/f2f11bc49b9a71c5663e44d46c8265f9b4fc8011 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jason-A-Donenfeld/timekeeping-contribute-wall-clock-to-rng-on-time-change/20220624-010017 git checkout f2f11bc49b9a71c5663e44d46c8265f9b4fc8011 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/time/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): kernel/time/timekeeping.c: In function 'do_settimeofday64': >> kernel/time/timekeeping.c:1349:9: error: implicit declaration of function 'add_device_randomness' [-Werror=implicit-function-declaration] 1349 | add_device_randomness(&xt, sizeof(xt)); | ^~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/add_device_randomness +1349 kernel/time/timekeeping.c 1303 1304 /** 1305 * do_settimeofday64 - Sets the time of day. 1306 * @ts: pointer to the timespec64 variable containing the new time 1307 * 1308 * Sets the time of day to the new time and update NTP and notify hrtimers 1309 */ 1310 int do_settimeofday64(const struct timespec64 *ts) 1311 { 1312 struct timekeeper *tk = &tk_core.timekeeper; 1313 struct timespec64 ts_delta, xt; 1314 unsigned long flags; 1315 int ret = 0; 1316 1317 if (!timespec64_valid_settod(ts)) 1318 return -EINVAL; 1319 1320 raw_spin_lock_irqsave(&timekeeper_lock, flags); 1321 write_seqcount_begin(&tk_core.seq); 1322 1323 timekeeping_forward_now(tk); 1324 1325 xt = tk_xtime(tk); 1326 ts_delta = timespec64_sub(*ts, xt); 1327 1328 if (timespec64_compare(&tk->wall_to_monotonic, &ts_delta) > 0) { 1329 ret = -EINVAL; 1330 goto out; 1331 } 1332 1333 tk_set_wall_to_mono(tk, timespec64_sub(tk->wall_to_monotonic, ts_delta)); 1334 1335 tk_set_xtime(tk, ts); 1336 out: 1337 timekeeping_update(tk, TK_CLEAR_NTP | TK_MIRROR | TK_CLOCK_WAS_SET); 1338 1339 write_seqcount_end(&tk_core.seq); 1340 raw_spin_unlock_irqrestore(&timekeeper_lock, flags); 1341 1342 /* Signal hrtimers about time change */ 1343 clock_was_set(CLOCK_SET_WALL); 1344 1345 if (!ret) 1346 audit_tk_injoffset(ts_delta); 1347 1348 ktime_get_real_ts64(&xt); > 1349 add_device_randomness(&xt, sizeof(xt)); 1350 1351 return ret; 1352 } 1353 EXPORT_SYMBOL(do_settimeofday64); 1354 -- 0-DAY CI Kernel Test Service https://01.org/lkp