Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp356723rwb; Fri, 12 Aug 2022 22:33:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR5fYgRIS5dMEuhBV8JAiYBerfrvvQmK2+BTag0hRaLBNhfJLFlGxWdgu8LBPWkcUC3eaf6U X-Received: by 2002:a17:907:2c4a:b0:730:87fe:2a88 with SMTP id hf10-20020a1709072c4a00b0073087fe2a88mr4386715ejc.313.1660368805339; Fri, 12 Aug 2022 22:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660368805; cv=none; d=google.com; s=arc-20160816; b=mS3ZcU+969AUX49P/CzsyWUE6TWfGFhyKqE0/GbN+4cote+yN8zJHcGtPHizBM6Nb7 FBWwjHsphzdczBQVoOHBebWip/PD6eZPdgHMTr+TE/y5OhlCnG8Agp2L/J1TgPfINwwx gePp++K57zcJraXOP5CH+wYRZlE1uy00E72f2LM/MAzlHQvcJW+7pP3jED+LVMLmXFJw x3Xq3UHd1OW/qHBDX+YwnbNorTAuC1WOJseLPUdY8rSTmlO03e5pmSIfROYtsru3N/5l KVJ4xhzkaI75Pa8nc9DOxjVwrKaErE/7SLGN7hECYCc9hK0xp5V8g/yp4JSNq8Ty4U5X ysdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=cS6WpyuURutPAu4nwvLGDWQBwW/mRgd08ggBcfyJ/JM=; b=oegpbaZWhBLIRKnutK7kEiDwyg6fTlTs1m7WQK0AiLGDpdyTJh/y59DemkrvdPBSWz P8bndM7OEpbQ+M3MXRc4MqMx3hpQhWOBSq+SvNpmLtM08SZkd3tV7ytBmPAbeFxixKii js2nr+tU56ghyJzT9660pJR92c408QQpr3bV9KfPTFguG8lU/ANpKKu/elnJfcLiXsU7 p0h64aP94fJqyzKIfDsBAI0qiTzBlBfBHpTDhB5Xn8Z5WzF6JAT/B0L1rVRS2NRSQB8c h+q+Va9R9AcRK6891Nn1Flp7q1Zba6aCoL5WDitG9vJd3RM7qr/tC383LVtSG5XzE/q9 wOdQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg2-20020a1709072cc200b007307c42ab08si2952330ejc.375.2022.08.12.22.32.55; Fri, 12 Aug 2022 22:33:25 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234125AbiHMFBd (ORCPT + 99 others); Sat, 13 Aug 2022 01:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiHMFBb (ORCPT ); Sat, 13 Aug 2022 01:01:31 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 960C570E7D for ; Fri, 12 Aug 2022 22:01:29 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M4Sxz72CVzmVlZ; Sat, 13 Aug 2022 12:59:19 +0800 (CST) Received: from huawei.com (10.67.174.191) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 13 Aug 2022 13:01:27 +0800 From: Li Hua To: CC: , , , , , , , , , , Subject: Re: [Question] Reading /proc/stat has a time backward issue Date: Sun, 14 Aug 2022 02:58:38 +0800 Message-ID: <20220813185838.49743-1-hucool.lihua@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220811124958.GB3284884@lothringen> References: <20220811124958.GB3284884@lothringen> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.191] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_12_24, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,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 Sorry for not seeing your reply in time Your patch doesn't seem to fix the problem. The root cause of the problem is that the "vtime->utime" and "delta" are temporarily added to the stack and show to the user. I tried to submit a patch to avoid presenting time backwards to the user. as bellow: https://lkml.org/lkml/2022/8/12/261 Hope you have better suggestions, thank you for your reply.