From nobody Tue Mar 01 15:47:03 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C5E3619EE47F for ; Tue, 1 Mar 2022 15:47:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K7M7W4XQ4z3pgk for ; Tue, 1 Mar 2022 15:47:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 78BD512787 for ; Tue, 1 Mar 2022 15:47:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 221Fl3gT043421 for ; Tue, 1 Mar 2022 15:47:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 221Fl32B043420 for bugs@FreeBSD.org; Tue, 1 Mar 2022 15:47:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262273] Subsuquent Calls to clock_gettime(CLOCK_THREAD_CPUTIME_ID,... ) return time in the past Date: Tue, 01 Mar 2022 15:47:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: firk@cantconnect.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646149623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h2Eoimbp4llTtffTyG+ZSsA0tGcdIRztjKq2TiE0yVg=; b=RtvxAOD5depLYpOjf/C78YuUzwGhLd6l8kywlVl9lZJvuyu1g+UpnZilRXz7Utrv3llJbi 0BIgOCUcU64HABjJ601hq76M3r6073QVZzSueLUmxXDC9tc4zH3JgioWr6G6K+TzUDHk4a gXXP5DLn0j3/9c0lQBe+Uy7TQ1iqgSqlZrs4YcuGp4zP/05xKMGoXMBuU03E7BvGeuv/iW FdOKX+UVsaSfM3I5X8bt0kv2R3ppHm5xFXYD+xLCRnsoaMi8KI3Y8KzeUx11n5URLUbtEL DUaIkaEjtLkcNeeuodx1OLcpwl5L6/sg27yTaOJFf843jLILlK2Zl5naLKso3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646149623; a=rsa-sha256; cv=none; b=PUu+mpZWhOWOm4dIF77nrjLMAUGVzoCGNXa8htO7k09IyM4bTLxok6qsRicQymhXnxEMsh X8GcQXwlkisIS7sWBxFPCuULHGGz/+06hz38OVbvtICgxLpfptal6ZXjvvP55V7LpDe0l/ dVuW7E74mebXqtJTn5NkSYMyC9FxkRbR+2mXpeeT+acVOgAF+jiR3K62csOu+ZBO2ieiFH +8XIeWZBlCBI/5GAYdJ7A+6Mdap4wI+Fv6oZjC+cl5ko93/SY7cU9Xg7GMHioQLJndol70 QH13IJ3LKAwdOQe9/eMSkcS8w5KLJGl9IJlskydg63YlgBNRS/PDay7HpFKt6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262273 --- Comment #9 from firk@cantconnect.ru --- Created attachment 232188 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232188&action= =3Dedit attempt to fix the problem Please try this patch to kernel. Looks like it is a conflict between switchtime/runtime reading in kern_thread_cputime() and switchtime/runtime updating in statclock(). Fixing statclock will be to expensive, so just make workaround in kern_thread_cputime(). --=20 You are receiving this mail because: You are the assignee for the bug.=