Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp857161pxb; Thu, 21 Apr 2022 11:55:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLb0oGZleUkkPkylouOoG0q3Q6+/a2mYU3uLSnstF3J4bi6H3pxWM0hUeeJ2LtjizugDET X-Received: by 2002:a17:907:d8d:b0:6df:b214:392a with SMTP id go13-20020a1709070d8d00b006dfb214392amr791257ejc.669.1650567339950; Thu, 21 Apr 2022 11:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650567339; cv=none; d=google.com; s=arc-20160816; b=dCHmsOjCwjYdEeiiVEt/bafGBskWkqUvRpvSbwZNxC51smAb69HiSSQIpgwPuxzMl+ +UnJJFE/esQph/0BJcdlD06exZqDKU/su0Opehk97MxNNHypyLn0SjGx2tzFg8dS1Ar2 v24xzSp27T6lXQ+crdqZ3vprh2UOnGhIkUR1WHbmYYKxyUYsquI3C3cLNquKzvBhXy8U PNpYGMzPQchu0Cz5EbbOIvAS6men8nPK5OqG2aMsy4magV82A7PcCRCRPl73dutjCm1c QGWIvirrJJifvxxOCtqgAIeCv04zQck23WfZvLZZzRnSgyPyS4Gc0PqRMBxsIzrZ23Vx Wl2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Jt59HgPlqQAbr+xBdeeNro2Km6rxUizJSG+/mwm8z3E=; b=M5lKlVzdWuyHp5mWfn91tuNEVEywCZE0ViIiovvPtddKuA/pheHj2JYqtPPi+2AG6H I+FUrg2Pf3OIajoSCxB1H/SAULBBi6+1/QZK/yfvr78HV7JmKeghe9Hqx4Oz8utEC4tH KVlY92j8POluWohTMucB7RpGSuqFctjVjjerfYBiZ8vbHhuDbuzvj80tOPwTA1B7MqHL mVA9TynYCiLvGzyjwJO4O0IwOvSH2HWkgrjhMvd1aAKIytBeQd0fl0QKpVOBS3l2OHyG u/eTV21e0IUeiCKv6fL+9fahmgrKFzBXX25khp2e+Kf8Yhqsa3zPt+cs82P1vobIi3Oo XaYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=blu42ize; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a50fd91000000b00420d20a7a35si1551595edt.312.2022.04.21.11.55.13; Thu, 21 Apr 2022 11:55:39 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=blu42ize; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383033AbiDTXCS (ORCPT + 99 others); Wed, 20 Apr 2022 19:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231172AbiDTXCQ (ORCPT ); Wed, 20 Apr 2022 19:02:16 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D25B167E8 for ; Wed, 20 Apr 2022 15:59:29 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-2eafabbc80aso34345097b3.11 for ; Wed, 20 Apr 2022 15:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jt59HgPlqQAbr+xBdeeNro2Km6rxUizJSG+/mwm8z3E=; b=blu42izeVLIH3FXNDbCVq2ndCMOVQ9SJ3WJyJSkxXProNxLuAorEcr6LwjjxidBT28 DNGQFJzQFTs8mj5YFTVd46sGALbKQpOcBk3gbbOLkuR6Skd07v+hntehB/ckdG9uIiFv eCRCsczYN95hr72PjOZghvAtC0Fr0HPUyj1hK//r/ls7j+YdOWY5F93ROpmBgZpbi4/2 bPTWbjPuFCvb22O/OCSX2DfwQ3pjxakpKM4LgNptWSlo/C3wF37pRXHstsipHuNC7TeQ rNf29nyc882QymgvmJP5EHYso1pymKG1TpOMF2SspxrlcvCPsQ5gsCd8gxFtmHpRscOA 8Hpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jt59HgPlqQAbr+xBdeeNro2Km6rxUizJSG+/mwm8z3E=; b=Zl/Byix0DygVU0AUAk7kZSpq00rVRrEyC2PaBanLRbxEfdtgew9dfrY80XuhgcCOZ1 4keNMLLiCAkTltaUvYJQ+NXu1GLd3ZfDijUPuNvy1n1oQqohQo7Infph0aWhz+Dn6k1a yVzKEe2VrEObReOPgMmJHFrfmvo8l8tAP80xO+K1mOBAKrXOE1uhQJuSa0r05zePLk4I vKx4eaNH7vI4LX1dU2uuUscotuNIuZ0oJBMUQc0GkUNTZFOj7eAF2XOQWFaEGP5jviAy B8WmnW4ozv3h1ZccCN1FSRqOiWtPN1mFYrAE1ZuNH+aE6o3Jmvpy7u7IzOjlsIVVpqiC 4A3A== X-Gm-Message-State: AOAM5334lEx7Tjrgzwg/lsavtZRsvdOCYqCk1dinQ6a0K2Ztj14pqy6l 7BbeG553cFqdxTOfCpzwO638YyCeZKfN3/yp0jx7aA== X-Received: by 2002:a81:1cd5:0:b0:2f4:c3fc:2174 with SMTP id c204-20020a811cd5000000b002f4c3fc2174mr4041623ywc.512.1650495567045; Wed, 20 Apr 2022 15:59:27 -0700 (PDT) MIME-Version: 1.0 References: <20220416081355.2155050-1-jcmvbkbc@gmail.com> In-Reply-To: From: Marco Elver Date: Thu, 21 Apr 2022 00:58:50 +0200 Message-ID: Subject: Re: [PATCH] xtensa: enable KCSAN To: Max Filippov Cc: "open list:TENSILICA XTENSA PORT (xtensa)" , Chris Zankel , LKML , Dmitry Vyukov , kasan-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 On Wed, 20 Apr 2022 at 20:11, Max Filippov wrote: > > Each test case is run with varying number of threads - am I correctly > > inferring that out of all test cases, usually only one such run failed, > > and runs with different number of threads (of the same test case) > > succeeded? > > For most of the failures -- yes. > For the test_missing_barrier and test_atomic_builtins_missing_barrier > on the hardware it was the opposite: only one subtest succeeded while > all others failed. Does it mean that the xtensa memory model is > insufficiently weak? No - KCSAN's weak memory modeling and detection of missing barriers doesn't care what the HW does, it only approximates the LKMM. If the test_barrier_nothreads case passed, there's nothing wrong with barrier instrumentation. Regarding the test case failures, if at least 1 passed I'm guessing it's just flaky (not enough concurrency, or unexpected barriers due to too many interrupts which can happen if we enter the scheduler). Unfortunately I don't know xtensa and if this is normal, but modulo flakiness, I think it's fine. (I've made a note to try and deflake the test if I can find time to try the xtensa version.)