Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1459473ybj; Tue, 5 May 2020 21:52:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJHEVUn4ht+TrKwN9ZXPv6TY2jleRDQWldK3Al0JocHSzDZ3UKVv3BrpJWn8gvHXT+wCalk X-Received: by 2002:a17:906:3d69:: with SMTP id r9mr5897399ejf.20.1588740720917; Tue, 05 May 2020 21:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588740720; cv=none; d=google.com; s=arc-20160816; b=YVeMrXtoisb/4/+xrSxteMq5vJ8u8frF3YvxKTqTSZ/Gbq7qcPMHYRnVQn+orjuhd0 rWL1bN80LinMwVKLpxtBgFUJbd9KmW1osCB7g07NXdLMt30DvbNxcLOSSG8ZwO1lThH4 ercLyndSolVOmTcH2ezeRHVPeu/inWDQDBqTOar2XUXZPWxLxOIuvVuubln9V89AJd7N Yfcrj5iVsCPLy4zIpLFi7VbmcfuPMIcvcqpdRw6S1ptMESVejQqMa4h6EtpZUMPFT4V+ GO80QSSnPsDtJ5g6CZ7Qqc/VjVw0X3Orudq01fW0C5Ju5AAiaEUrglp/PllxaNvOOMaj 2naQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Iqotp4Pzqr9RQqsgLMpXGPLAwQseruKWmRPMUXLKxY4=; b=XS2Jxg+t4LiFO9rF0HVZIOssBOQLfDHxQYblMOQ+F1a5qlpc8o693yguyDcuwCCE02 Tnveuecb6kfieiay0XXdgl8SPWOi8dxzuQ5eC5dDFvK+dII3kVLQyEDeOM9NtWjS35Rh KioXQEZs22axF1a89LN3sd66Wlxmne9pM6mdhtkn8peq9tJrInVQj5aBrhEf0dqe/WEc dpUzfOT9j2Uo38SwIzJUoS45US1Jmm/O9s0Gw4N4no1BeukdclZKUfmObzM45/e8qK04 ruTZLRZdEiAqJZWo8ovLi68svGkyJI30NdNjHnn9pfytEIYjzXeYi7hDYvvbTzqkY1RR mpBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dNYljanB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k15si471255edk.194.2020.05.05.21.51.37; Tue, 05 May 2020 21:52:00 -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=@google.com header.s=20161025 header.b=dNYljanB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbgEFEpR (ORCPT + 99 others); Wed, 6 May 2020 00:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgEFEpQ (ORCPT ); Wed, 6 May 2020 00:45:16 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23D41C061A0F for ; Tue, 5 May 2020 21:45:16 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id u16so857520wmc.5 for ; Tue, 05 May 2020 21:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Iqotp4Pzqr9RQqsgLMpXGPLAwQseruKWmRPMUXLKxY4=; b=dNYljanBzrbTS1pIe5fVzt2wPBuZEBnSMI5xTqSjKCm5pBWo45oj87/rEcsvAj+fyG ejziA6igQ3J1BuLiRKf7QfkZovsocQgMp7sfLa2hkfS5hSRp+Wd2n3TSCIahHFKxf+0F wXePzIJqbhUN3fJiQ6SC+EL5KmtH4nSwA6ytYDVwk7yA1GiOZqg7u6EiiMFWHTue8CRR j2WbBxKtVthNdffzVFJ5fd9tvadNHjoj6WD+CjYQF7e6CRfUzH2hhOfAjkeiTpzIdn/R qZ23jkSjPLJh8rzPu7EAVlBU2EZszA9/qDPGv6JWLZbZe6mChM3IfVVGyR1QzfVJlNy0 /Upw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Iqotp4Pzqr9RQqsgLMpXGPLAwQseruKWmRPMUXLKxY4=; b=U8U2mNEdRvfX27CHf+5/1n4WTnwnaAC1oQx+kFaAR2z2DbkCYTBlxICdNzv5tjrV1C z1GlKfXGowTygdXM+U10Iw4nVNXUC42gv/kp0Ke8l3Xv0ymvJrjZLxY04QieH/jqf72A t+hmcocaD4vaUCpORplpKtqx42vsQBnrwT3qln5dVdkrakruk7T29gSpvd5s7XRjTI9l mC9MJm1IazGC3z5ak+X2bP9J5bI17R4ZPAmw5hl5x/PN+lwxFh0KZWDinrMRtpeKq2OH +oUuGpPxkFpIO35JmsE8TpPQKQtZZ9TT2pwFUvYrIPrxt8wlTJX3MKOG7U7BGUnFrf64 bKFw== X-Gm-Message-State: AGi0Pua2B+J+eO6izmgShMsR0f2aofU31JA5XU21UrNxu2X8UaSS1wOB S37aYaACJILg8sexxIpAGJZdghHyK25YCE2eAr9elQ== X-Received: by 2002:a1c:1fcf:: with SMTP id f198mr2157051wmf.16.1588740314500; Tue, 05 May 2020 21:45:14 -0700 (PDT) MIME-Version: 1.0 References: <20200505182821.47708-1-elver@google.com> In-Reply-To: <20200505182821.47708-1-elver@google.com> From: David Gow Date: Wed, 6 May 2020 12:45:03 +0800 Message-ID: Subject: Re: [PATCH v2] kcsan: Add test suite To: Marco Elver Cc: "Paul E. McKenney" , Dmitry Vyukov , Alexander Potapenko , Andrey Konovalov , kasan-dev , Linux Kernel Mailing List , KUnit Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 6, 2020 at 2:30 AM Marco Elver wrote: > > This adds KCSAN test focusing on behaviour of the integrated runtime. > Tests various race scenarios, and verifies the reports generated to > console. Makes use of KUnit for test organization, and the Torture > framework for test thread control. > > Signed-off-by: Marco Elver Thanks, this works much better on my setup: having an explicit error for there not being enough CPUs is a lot better than hanging. It'd still be nice to have these be "skipped" rather than "failed" at some stage, but that's a nice-to-have for the future once we've implemented such a thing in KUnit. I'm still a little hesitant about non-deterministic tests in general =E2=80= =94 even if they're only run when CONFIG_KCSAN is enabled, it's possible that a future CI system could run under KCSAN and report false breakages on unrelated patches. Given no such setup exists yet, though, I think it's probably a problem for the future rather than a blocker at the moment. Regardless, I hit no unexpected issues in my testing, so, Tested-by: David Gow -- David