Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp503858ybg; Tue, 9 Jun 2020 06:15:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQF6tmniUUGFvkuZnSaTliRIOjWFiv5uJHS9qdnyFkNlyAFf2xzabWJIB0UhzeFxRdS1l5 X-Received: by 2002:a17:906:1917:: with SMTP id a23mr17987214eje.181.1591708529320; Tue, 09 Jun 2020 06:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591708529; cv=none; d=google.com; s=arc-20160816; b=yd+OMBvxgYW1l6gbzLjJUzXT2YPYme+dW1A5xhncNOT/1dgN1TTa5YiVOIwGI2b9ZU Nb4rnDwUOoivVf22Mp0t5Crd+1iNjx/egv7hWSKRkbDQ5vQ3A4CW3P1ot+Y4liV3j/z0 g6i+Vgluj2J04AtpL9DG6k6zpoFUwYi1ciHWYIJWiEFZALhsFpCRY6EjP0eq3o0Xs+Np p9E/WpnRq6hCJ2FgKXGM7EV77hWwImPYMM/8xrsjfyRmSurs+9ZfOfrQgSQKEb0y3jRp 9GuZJVs7hfB+rIzXOPmincNeq0WtNFn4oC+hVlLGtoe3ZlX7jsUcqwjC/hqvidxJtTa5 G8uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WTT7IKjpcsE5Mp5edVXpMG+kNpU/LPg9ObpL4+ooCUI=; b=rN5rbIVk4fxufE8YCif4UvBvgNGf+3744vpop69znZbZ6wBlkFha6CKU+4+2nHT4LU mVidnNmcjjgwwajcHYPWs5zZw39iBjRjYaEdeLcSNnzxY6/Bi8k6M5FAg8HBzUQsROI6 FaNEJYbRnJQNhrD4SdTbbL5YK8wIImUTVasSUoDnFpISWg1g0CRg0JlbzZHa9LQ0K/0w Te4Q4aT6M6XqKe8SjODw6BzICRam3rr01sJg7nMq2NCPZAnit5BY99/a0ylxFvITsW3e Do/Kqk6+SJ4rk3r7GOEyNwHGobAdiSYMedsZsPQIBtCo6wv/bUUdkhuYNN+HxSLbn+Ck IgDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Nvyzw1f2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si10771421ejr.322.2020.06.09.06.15.05; Tue, 09 Jun 2020 06:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Nvyzw1f2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727945AbgFINKi (ORCPT + 99 others); Tue, 9 Jun 2020 09:10:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbgFINK3 (ORCPT ); Tue, 9 Jun 2020 09:10:29 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C167FC05BD1E for ; Tue, 9 Jun 2020 06:10:28 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id n24so22310909ejd.0 for ; Tue, 09 Jun 2020 06:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WTT7IKjpcsE5Mp5edVXpMG+kNpU/LPg9ObpL4+ooCUI=; b=Nvyzw1f2MKdAhdIkiS5X8YSaMyO2WhkjwA8TWvObxQ0WRdRvsw3Q4pEJztanXrmWN3 VQobsCiOYWm/7HgQr2De0iXxmRcr6tuvD5LhUpRN+7fJ5HE+HW5UbZ7L8hPcbG6rRlRB ThmJ58n71EDlVsqmXb8E18t4blmgb6CpF8P+o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WTT7IKjpcsE5Mp5edVXpMG+kNpU/LPg9ObpL4+ooCUI=; b=GCci2LvHFrObGr37hgiJa95+3x4n3ELkqA5zU1Jj1naAqd+tardpOfRGkYr9HCtMn/ IU2i44I7Tw6u+w9lVJPt4+cgFxXG6ai94pAGoTwcRlJ5clXZcjGaDMYRfjhHUr/B15eJ QexUqQ3H63ny3yrHshTRNjj/42Gj6gB4l7eyeyUQaIyW3LckcsVzhWIr0YNotzrfUTaj KpcGz4n3OxXrhFwFAzgkef46zNHWXKJATIHFVo6OkAsG4QcF04KmRxPxqU1c1vxtJqzt gW3C7R6jDxkfW3wJK4FfManNjVg5tBzXvRVBoXpqasJGf5QqFA4EHlIYZFx3b0f5tvqd Hf0w== X-Gm-Message-State: AOAM533gPRiiF+QExBxYKDDnLyoDuz2hAeT7GeymfCB7PG13NF9rv9nP /eO+5I8MHiktI/q8zdZMJX0FYvAHai4w85/2EcjvjY9VWCt4mw== X-Received: by 2002:a17:906:4310:: with SMTP id j16mr24334724ejm.511.1591708226713; Tue, 09 Jun 2020 06:10:26 -0700 (PDT) MIME-Version: 1.0 References: <20200606215114.380723277@linutronix.de> In-Reply-To: <20200606215114.380723277@linutronix.de> From: Miklos Szeredi Date: Tue, 9 Jun 2020 15:10:15 +0200 Message-ID: Subject: Re: [patch 0/3] vdso: Unbreak VDSO with PV and HyperV clocksources To: Thomas Gleixner Cc: LKML , x86@kernel.org, Vincenzo Frascino , Andy Lutomirski , Paolo Bonzini , Juergen Gross , Christophe Leroy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 7, 2020 at 11:36 AM Thomas Gleixner wrote: > > Miklos reported [1] that the recent VDSO changes broke paravirt clocksource > based VDSO in the case that the clocksource is invalidated by the > hypervisor which happens after a suspend/resume cycle of the host. > > The result is a stale clocksource which is about 2200 seconds ahead of the > actual time and jumps forward by 2200 seconds once 2200 seconds have > elapsed. > > The reason for this is the core code change which optimized the VDSO > clocksource validation by checking for the clocksource mode instead of > using the rather subtle check for the clocksource read return value whether > it has bit 63 set. > > For some reason my brain blanked when doing that change, even if I should > have known better. > > The following series restores the previous behaviour but preserves the > initially intended optimization for architectures which don't need that PV > handling. Thanks for fixing. Tested-by: Miklos Szeredi Miklos