Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp26388pxb; Tue, 31 Aug 2021 14:13:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsNygSsd7Vdv5wCmHlAF+olHQUj7gzmUVYSOknTfp3HB7ZZD8gekC6Cj92ZgC+7Du+nMfz X-Received: by 2002:a17:906:9401:: with SMTP id q1mr32424169ejx.313.1630444393729; Tue, 31 Aug 2021 14:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630444393; cv=none; d=google.com; s=arc-20160816; b=0jbxG7h/IlgnCT6qoPDIyW2BTkZCx9f9Zhm+lJxN+dFvYfAcWjrc5uBrJX436/eyUM RmQO69HtvT7lYo34ramALIiBFW+qPPGvHUiQXHN1gjN8KCAdrajWeK7PryQJoHv5e1xN Wj23Kc2ogsH04duZIAgKo371Mpb9rsjPE5qya1OSLHUl5m/2kVJM+uuT/iJmPNvarPpn 3BMJlezjfTAce3JusbU6KKFBm29Z2q5RcZPsMnHVdJYCxptj0Ur800k/s1vhQUxFixQ2 36Z2X3TjCGtPT+/KJ04Q0nwCrnIXjwpCSBPUf/G6hG8HBuw/VXn+Q/zKTT5uOIXMJYIz K/Wg== 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=JLu5qlrmGuLEja6uutxysvMjuh0Nn6SdSuohn+QL+Do=; b=gQkhoX9CvDhq09sHAcj5eg0aVCO5gAEH31a+wpPF5/MoQRSUSdV7LFRkzXOHsxsoiz vDRMs81Q+xCwF2g/aROdfmgWrymkEEskxibBfLgTooLuctgfqE+US4YfzT0kxMXTvEO0 mIhVZH/0YLjj14jnEOrIARA7kr89C1Ex0l4QzYRkbu0ATYgMBgXRz8g0UN6tie7JXpnU LmqlkBP7soMM/yn/+ifFYQMmSBP1Co4Y2L5XR67BUnJ+h3f14rqjRTL3j/7OktSA36OJ wId+HaMlFkS5hlL9jVSxY5En5BBfZxSDrMEAN91Rck6tCltfV3E2JbClsw6AlOjEsQnW HZIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C5sIhqEg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si20059279edv.199.2021.08.31.14.12.35; Tue, 31 Aug 2021 14:13:13 -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=@kernel.org header.s=k20201202 header.b=C5sIhqEg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233455AbhHaRtG (ORCPT + 99 others); Tue, 31 Aug 2021 13:49:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:43098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231668AbhHaRtF (ORCPT ); Tue, 31 Aug 2021 13:49:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B391A610D1; Tue, 31 Aug 2021 17:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630432088; bh=FQhT4voOXSGn5CqQjRmxbe6MV9pTwA1BDm62Ac/YtAE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C5sIhqEgn6qoEOgcoz62ZNo93cV4lQCFydN3JR+VsX1d6DjrErCQzyUspUIvqvFSB n1/kZlzCQdmZXJ5QjLE1wwheXwdjiLqI1sosLOFEzLpwyXn8FKdHZkhHKEAqSN5uNT UbyqjiRfYUM6Sg9wnZ3fZzL+d1mDK115MLo7CZ+VBbhBt76BoU9CbVm0XxFQFIY3H9 a8tIiS4yW2QAjjOmLB+6CSvv/SzKXhBpTuQrCCV5LSA1cJmJfY1IbhslMYQlX+rI9v 0utXk8jYmzNqLIkB9mDWX1fhYjL+LpubEFH+sFujK4Id0fzyGoyR2ZvqmT/5jIMxgW xJfeb3VZGcZ9Q== Date: Tue, 31 Aug 2021 10:48:06 -0700 From: Nathan Chancellor To: Marco Elver Cc: Heiko Carstens , Christian Borntraeger , Linus Torvalds , Vasily Gorbik , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, qemu-s390x Subject: Re: [GIT PULL] s390 updates for 5.15 merge window Message-ID: References: <82161448-2770-158c-fdd3-d253b4ae476f@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 31, 2021 at 05:02:15PM +0200, Marco Elver wrote: > On Tue, Aug 31, 2021 at 12:46PM +0200, Marco Elver wrote: > > On Tue, 31 Aug 2021 at 12:13, Heiko Carstens wrote: > > [...] > > > I really don't think this is QEMU related. The test fails are sort of > > > expected: we've seen KCSAN reports when the kernel boots and wanted to > > > fix them later. > > > However I have to admit that I wasn't aware of the KCSAN KUNIT tests, > > > and wouldn't have sent the s390 KCSAN enablement upstream if I would > > > have been aware of failing self tests. > > > > > > We'll fix them, and I let you know if things are supposed to work. > > > > > > Thanks a lot for making aware of this! > > > > Note: Set `CONFIG_KCSAN_REPORT_ONCE_IN_MS=100` (or smaller) instead of > > the default to make the test complete faster. > > > > The pattern I see from what Nathan reported is that all test cases > > that expect race reports don't observe them ("not ok" cases), and all > > those where no races are meant to be reported are fine ("ok" cases). > > Without actually seeing the log, I'm guessing that no races are > > reported at all, which is certainly not working as intended. > > I repro'd, and the problem is part QEMU TCG and a minor problem with > stack_trace_save() on s390: > > 1. QEMU TCG doesn't seem to want to execute threads concurrently, > resulting in no "value changes" being observed. This is probably just > a limitation of TCG, and if run on a real CPU, shouldn't be a problem. > On QEMU, most test cases will pass with CONFIG_KCSAN_REPORT_VALUE_CHANGE_ONLY=n > (There's one left that requires value changes to be observable) Is this just a limitation of s390's TCG implementation or in general? Our CI runs on GitHub Actions, which does not support virtualization so I believe that all of our tests are being done with TCG and x86_64 passes just fine: https://github.com/ClangBuiltLinux/continuous-integration2/runs/3473222334?check_suite_focus=true Good to hear that it is working on bare metal now though, we could still enable build testing of it at a minimum but it would be nice to see the tests pass even in QEMU :) Cheers, Nathan