Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3513225pxb; Mon, 4 Apr 2022 19:25:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMAfg7BJTu7lcK1MALTSdiaUavtKPEoUkSVZvtDViBnA8oUOeYYD+30t1I2sAPn3OBeELc X-Received: by 2002:a17:902:f24b:b0:156:8fd1:68d8 with SMTP id j11-20020a170902f24b00b001568fd168d8mr1129123plc.75.1649125558959; Mon, 04 Apr 2022 19:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649125558; cv=none; d=google.com; s=arc-20160816; b=XId7IdDBMMDS3w8aJY32/Y1c9OHRwDDvs990C1EOGqWuVpQHWHnlysUdwq9YMU+vYA 9lNGM1iKLQdiZqqR4P+mV11SDJNcezNc6TueCygWA7XFXkt+dZ8VKYqRmjv1mFYu9j7z qI/FDGtwBRPQNQOEGDTQlILBhgQfqD4ml0X8nOEo6xoPiNy81uxiCS9s7aJRGWTwxiA2 0tEh5HIbQeEN8CzHCU1XCYUp3JmF4Kh4MjIt3ouXcWaR0dniYZ1o3N7a0I6otS1MDhSF /fhyUjxmCTtNQOswovRg6rv++4boeB8WIt1kYs1CEwgAcl0upFjMHZGoi4vqYDgJxzfy k76Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=gRtfWuNLHAesYLm4T4vvIRUPh5jkPB771OoKEOCAkLQ=; b=CismEPqz4ZS4wkhY8DuXSrOq1S5vd7qW7kkwis01+xtc3JnaXARFYue0B06QdICSHJ TKPyN0Oj8mugCw2WAgbF34gNazmR52rTVsvCzhE6J9YJ4oCe5O9fNpj4nmnWzzaSUzr5 +gtK2Urp06pNp4YSnYostE8+dT05CvPPl6IQ/oPqiBvW9OKsS13yqpT6TydCqoE8QFYp RvN0v+6LJenmD6Md6GpnJgTuER4GYk3GzN5iXfl3aX8qQC1Flmwgo17yP9kHiCb7WwA8 avANeTL4aMk70h/sXixO6zi2KN3Y6QwxCCXm6s3xlpwDbpfKbI5r85yV2GuKqnBeXW6E 4r2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=P9kXrory; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y3-20020a17090322c300b00153b2d164bcsi13166282plg.196.2022.04.04.19.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=P9kXrory; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B3D9D31FFE2; Mon, 4 Apr 2022 17:48:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359606AbiDCRPe (ORCPT + 99 others); Sun, 3 Apr 2022 13:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359604AbiDCRP3 (ORCPT ); Sun, 3 Apr 2022 13:15:29 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CDFA636B for ; Sun, 3 Apr 2022 10:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=gRtfWuNLHAesYLm4T4vvIRUPh5jkPB771OoKEOCAkLQ=; t=1649006014; x=1650215614; b=P9kXroryPUrfHpoCzlf+6mVpjx8a1ceZx0lDAucOhnRonLI MZxvl5RBpLT2ND7K4jNKYUnk7AXVYtNze+b0eL5RjnnhN6Rx40P9do77IRN7QL8ZTd81vvRr1qcX9 /2SbWq8wd8VsW46LUF9kO40tMxKHyxqdy2u7R7d9q6hyM682SD/k/ChYxhRDuEcicgU0o36QI+ZGb lNAgMWTGY+7l19qPUSQKeXrTDRg3CVTn6gKvUv8rUc4yX26aoq9HZqAFC029qpL5S00ePKxlZqmaS QHmwObKIW75O/kyr55opu8q+2m1S3Y13CjkKf5JVuzMSY7T1a/3kU8l3JHfKf9Qw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nb3my-004NZ5-K1; Sun, 03 Apr 2022 19:13:20 +0200 Message-ID: <32423b7c0e3a490093ceaca750e8669ac67902c6.camel@sipsolutions.net> Subject: Re: UML time-travel warning from __run_timers From: Johannes Berg To: Thomas Gleixner , Vincent Whitchurch Cc: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, Anna-Maria Gleixner , Frederic Weisbecker Date: Sun, 03 Apr 2022 19:13:19 +0200 In-Reply-To: <877d86m978.ffs@tglx> References: <20220330110156.GA9250@axis.com> <84f9d627092660c38400b607198c3b83f795be7f.camel@sipsolutions.net> <877d86m978.ffs@tglx> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 2022-04-03 at 18:18 +0200, Thomas Gleixner wrote: > On Sat, Apr 02 2022 at 16:09, Johannes Berg wrote: > > At init, we get > > > > init_timer_cpu(0) base 0 clk=0xffff8ad0, next_expiry=0x13fff8acf > > init_timer_cpu(0) base 1 clk=0xffff8ad0, next_expiry=0x13fff8acf > > > > which makes sense, jiffies is set up to wrap very quickly after boot. > > > > The warning triggers when we have jiffies=0x13fff9600, so it's just > > after the "next_expiry", so in this code: > > which does not make sense. If you say so, I have no idea :) > If next_expiry is 0x13fff8acf and jiffies > advanced to 0x13fff9600 when the warning triggered, then either it > missed to expire the timer at 0x13fff8acf or it failed to recalculate > next_expiry. There was no timer. If there's ever a timer on this base (BASE_DEF) then this doesn't happen. So it has to be the latter, but I'm trying to understand in the code where it would*ever* recalculate next_expiry if it in fact never expires? > Could you enable all [hr]timer tracepoints on the kernel command line, > set panic on warn and ftrace_dump_on_oops which should spill out the > tracebuffer on the console and provide the output. That should at least > give us an hint what's going on. > Sure, but since we simulate ~50 days of uptime, that's a massive number of events and lots of them are not there: https://p.sipsolutions.net/fb491cbbde82c600.txt johannes