From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28F20C433EF for ; Thu, 14 Jul 2022 23:48:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240825AbiGNXsK (ORCPT ); Thu, 14 Jul 2022 19:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbiGNXsJ (ORCPT ); Thu, 14 Jul 2022 19:48:09 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF636D9D8 for ; Thu, 14 Jul 2022 16:48:08 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id ss3so6134297ejc.11 for ; Thu, 14 Jul 2022 16:48:08 -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=jtB7Ozk+Cxa7ka7EGUvIpISJLyIGflqVSLPjqA/TC+E=; b=bFleYVBqGeZKBfSfgno7pfLfs+mqMudf/doLnSi5uuw6FkgmL9axt/8kDlFHhh/krX oxPSmnK+wSQSYc0LQb4MIgL3wsfFLXATvM5HV0m0Y1+ROymhv0S6WmVq/Z5ni7Svk7Ad nE7cAe7E5SiqRHXDNNfJkMc+9GwuJuPGCcfcNkSw+7nbX962MP5FgnN/iqxMlxf+eh6P 2GA3DSJ+PToE/NUzympAmLWhylB2owsEXy6KpR3U/lip5pHtDBZDWOXxvXUoFTL/UuGl jQvd8sx7aqy9DxJMGChIQ4a+RFFy2CqopFAb2bM/b+5yXXLusaXq81wCqlVqcL6Wt1qx XoIA== 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=jtB7Ozk+Cxa7ka7EGUvIpISJLyIGflqVSLPjqA/TC+E=; b=50gMNFp3X2hqPVuoKz0rrf0JusKPv7FXT/LDL3UpcctrFW8hUNdNHLO16X2EeLbCkg rFLGB1HA51/CrJcEwIIqIKb2Ah9eglhO7/8LF6niO762T4q0OAqwp8X4g3NccBopN/6g scvBMPchjyA3noE3VE6zvIsDvQOr0sUKvZfXWmYzkAkkx7gzCJVzlgaUUIwmwEW7gDJm NuW3JBpaoh44Jk2QT05S/3WWdvvguADKX2Dr8XHYikR4CVGZkzuuKJ7bZBK1QqlNXASC uHA9K7vyNJZmXLZ4zKYhr5a7yXUS6u3plJicbzanM9irysLmbfUtiQ/AI3ZxiipICTIM RHug== X-Gm-Message-State: AJIora+5nuvEPeSiSZN73541zGFULyD4XoIWBMK0uDECS2Oq4259ezMa w3Id1A5/jzUeGeEWnF9LB2oRneYYftmqgKfAN9vtmg== X-Google-Smtp-Source: AGRyM1vaTiICwkcHlN20EEVbkmpYuLihgqvtTFHttjuhk+0JrDjbSPErwCqUfHFynWuVlGKRia0SOMRPVEUf4QEpMDs= X-Received: by 2002:a17:906:98c7:b0:72b:20fe:807d with SMTP id zd7-20020a17090698c700b0072b20fe807dmr11332291ejb.75.1657842486964; Thu, 14 Jul 2022 16:48:06 -0700 (PDT) MIME-Version: 1.0 References: <20220518073232.526443-1-davidgow@google.com> <20220518073232.526443-2-davidgow@google.com> In-Reply-To: From: Daniel Latypov Date: Thu, 14 Jul 2022 16:47:55 -0700 Message-ID: Subject: Re: [PATCH 2/2] kcsan: test: Add a .kunitconfig to run KCSAN tests To: Marco Elver Cc: David Gow , Brendan Higgins , Shuah Khan , Dmitry Vyukov , KUnit Development , kasan-dev , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 14, 2022 at 4:45 PM Daniel Latypov wrote: > Ack. > So concretely, so then a final result like this? > > $ cat kernel/kcsan/.kunitconfig > # Note that the KCSAN tests need to run on an SMP setup. > # Under kunit_tool, this can be done by using the x86_64-smp > # qemu-based architecture: Oops, this bit would need to be updated to something like: # Under kunit_tool, this can be done by using --qemu_args: > # ./tools/testing/kunit/kunit.py run --kunitconfig=kernel/kcsan > --arch=x86_64 --qemu_args='-smp 8' > > CONFIG_KUNIT=y > > CONFIG_DEBUG_KERNEL=y > > CONFIG_KCSAN=y > CONFIG_KCSAN_KUNIT_TEST=y > > # Need some level of concurrency to test a concurrency sanitizer. > CONFIG_SMP=y > > # This prevents the test from timing out on many setups. Feel free to remove > # (or alter) this, in conjunction with setting a different test timeout with, > # for example, the --timeout kunit_tool option. > CONFIG_KCSAN_REPORT_ONCE_IN_MS=100