Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3149010pxj; Mon, 17 May 2021 19:02:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzesh1bQwWBI0tijxkPNborUH2OH5sbt8n318nIO1QDtGqxQYt2S7XTz8beBet0ScZpdmF/ X-Received: by 2002:a05:6e02:d:: with SMTP id h13mr2247088ilr.112.1621303375089; Mon, 17 May 2021 19:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621303375; cv=none; d=google.com; s=arc-20160816; b=OF9Bki9mYPJcBnFJIxnF6Wpp4BDg6nM39CDbmMkNjQd4uqfT/6mvAPpi5SfbuDw7yf LwIzXEF8oFgM9LREseYogSM79KxSahqLXER6+gzxyungtws2X794zwu8QAbz2U93g0QI 79hUGNZO6v9SyaEBAHgPZqydxzKIBNxmMR2bPPnWaSqkma3heydTdF20uP2+0Qy5mEHc vlPD8bBv5rkVggTnhsmtEL2PnJzJAHrriSXtU0g2m/YgIE4RqkzhWhSVEh3OfnpE/vP+ QGFEe4TtA1TDwfhLo8xexH85cJYI4ixG2UiQeiDGUsgz952qXyRUveJuLsga1QygrTb2 0RsQ== 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=xYuVntA3/R/ZCitOay3lqoXYi06Ia6ssKRAW0I+ZVEQ=; b=j/fBEMF0BwGC46xXhJupurLo7VW8x7idfmZFqwilt75fajT4vvqQ4eM4uJum+i9N1H Hsq0zqOkepZ6mbe0H6BWH1yUm2XGRjp2geeNWKwSQ1lGE6I/3ZUfNVAA26FDEqao4qHf DBvZrP3e8tyN1cTFfPTBwq3aoVSFu/N6EppV2ZYvneQlWUebFmZunL6BeCDY+0CRjxFw NxA2VCnVLEOo0J7XhvkbjMohYryVawgMGajnz5XfqybbxbN46KeHh7vRZJ5yYqM3GORc n4kX/OXbSZg9aqBM0z4MZry6J+C339JdCl/KCdzqsTTWxqGsrE0Vu9HCuRdd2qNDXnfU C8pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=onF0H9B9; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si20139642jak.28.2021.05.17.19.02.35; Mon, 17 May 2021 19:02:55 -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=pass header.i=@suse.com header.s=susede1 header.b=onF0H9B9; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240081AbhEQOg5 (ORCPT + 99 others); Mon, 17 May 2021 10:36:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:42578 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239505AbhEQOcV (ORCPT ); Mon, 17 May 2021 10:32:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1621261864; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xYuVntA3/R/ZCitOay3lqoXYi06Ia6ssKRAW0I+ZVEQ=; b=onF0H9B9bQCdRewBj3vytxij9z4KTsIYSNxSqcecKyQPRdrOAi3efgEfmkDESl/9FsDWVo 6+qrRVNjhH/qaue35jXNjD2juuBvyrIgFtkt2fBMIAQAMnidxKaXFBXxmaXC4bwdlogYh9 E+4coHG6PiyCc5dDwMBVb6U+ubsV3Ac= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 03E4EB275; Mon, 17 May 2021 14:31:03 +0000 (UTC) Date: Mon, 17 May 2021 16:30:56 +0200 From: Petr Mladek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ingo Molnar , Laurence Oberman , Michal Hocko , Peter Zijlstra , Thomas Gleixner , Vincent Whitchurch , Andrew Morton , Linus Torvalds , Sergey Senozhatsky , Sasha Levin Subject: Re: [PATCH 5.12 123/363] watchdog: cleanup handling of false positives Message-ID: References: <20210517140302.508966430@linuxfoundation.org> <20210517140306.783130885@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210517140306.783130885@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2021-05-17 15:59:49, Greg Kroah-Hartman wrote: > From: Petr Mladek > > [ Upstream commit 9bf3bc949f8aeefeacea4b1198db833b722a8e27 ] > > Commit d6ad3e286d2c ("softlockup: Add sched_clock_tick() to avoid kernel > warning on kgdb resume") introduced touch_softlockup_watchdog_sync(). [...] > Make the code more straightforward: > > 1. Always call kvm_check_and_clear_guest_paused() at the very > beginning to handle PVCLOCK_GUEST_STOPPED. It touches the watchdog > when the quest did sleep. > > 2. Handle the situation when the watchdog has been touched > (SOFTLOCKUP_DELAY_REPORT is set). > > Call sched_clock_tick() when touch_*sync() variant was used. It makes > sure that the timestamp will be up to date even when it has been > touched in atomic context or quest did sleep. > > As a result, kvm_check_and_clear_guest_paused() is called on a single > location. And the right timestamp is always set when returning from the > timer callback. > > Link: https://lkml.kernel.org/r/20210311122130.6788-7-pmladek@suse.com Please, remove this patch from the stable backport. It might cause false softlockup reports, see https://lore.kernel.org/r/20210517140612.222750-1-senozhatsky@chromium.org Best Regards, Petr