Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0678E606A31F for ; Mon, 26 Oct 2026 09:35:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=PpIvruJJ; dkim=pass (2048-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=MCQJ07kz Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xLH6z-0008HU-S6; Mon, 26 Oct 2026 05:35:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLH6u-0008GG-MS for qemu-devel@nongnu.org; Mon, 26 Oct 2026 05:35:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xLH6s-0006Wh-Ly for qemu-devel@nongnu.org; Mon, 26 Oct 2026 05:35:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793007317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=O8+j6SIiQfiELw1Cjww5LLGcfodYNp9TwgZKpwIfVak=; b=PpIvruJJdaoy7ZdmdnxkPcS7VOyO/ab2LeibqAe/5JWASsiUjk/raE36irfYQzR/LYyGmF GvTh1S8hbkcIZhAOxtkYPvX6TBhzIrECoo5ttib6vNXdbA7qVo0FGKkwUU5pBqvW34r3VG YFb9ehCzyAryCxJnolxr2PQ+ROQcjaM= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-68-UIWp9KbHNPydrY-Cho3u_Q-1; Mon, 26 Oct 2026 05:35:15 -0400 X-MC-Unique: UIWp9KbHNPydrY-Cho3u_Q-1 X-Mimecast-MFC-AGG-ID: UIWp9KbHNPydrY-Cho3u_Q_1793007314 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-48df02b91f9so2534902f8f.1 for ; Mon, 26 Oct 2026 02:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1793007314; x=1793612114; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=O8+j6SIiQfiELw1Cjww5LLGcfodYNp9TwgZKpwIfVak=; b=MCQJ07kzG512NQZTp0iEPN4T5t3zqxgtr9GHpatchwB9Ukr9/eUIbacnJwsi1F8Sd1 DdLhoSUDKYFCKJK3jtZ/accZv1jvsQcQOGIEZag6UFdxYW1m4EDwHe838ARe30yaTaTi 1QrtaoY64btD9cEkrHqiCbugdxyc6jvC84FOG1Q40ii/CXTuK3RF7YY69QwK3smoWUqf MLLXcfYgbWL7rzQtALnrrmIhyvGDUDatRhlpnqeUPwpmpDmqL4JZJ3OjuzwGF8EktF6/ 9It0l3j9W8ZTYUQbBbbUuifSiAsYC9FVsgMi+71rlN2LQQ187DA9QA8YRNSTqc3SddH8 cqjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793007314; x=1793612114; h=content-transfer-encoding:content-type:in-reply-to:autocrypt :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=O8+j6SIiQfiELw1Cjww5LLGcfodYNp9TwgZKpwIfVak=; b=KzmaUfXw3E/mO4zMXnnorJFe0+Ybe0qKkGhpGORosGLQUTSm7lJyrklhcTXWfmAJy0 cpb8lQa7pdAg7KjAeG0xDvQcWyW6Fxmx9Nvz3ACJOxHqdIO2IG2H8Ckv8FruRYgKWbCr yC44G814djuzyga6AKfW7/xfcsYU4AatYJr0JE9DgNYTIYeKKKpaXk9oBsShj52syhVi fIpr6tuEsl6ErGQuZsCQFYoznB+BhDUmnFxacAV2hdX6vI6s36oIxI4tMBiV6yU4Sj8N IUk15dGcgFu+Fbs6TMB9nTewKUyVi2pPrwVaAPD4rZ92uO9jOrtX7gA8SohHc8rKBz5P I2gg== X-Forwarded-Encrypted: i=1; AKwUvBxfEoTlBL9djMSdTaLBwwypt6/oGl2mtsqyCtEYfSzKkDeNQx7yx0dXjGudPLA0bEkRmZiZsxPoIsIM@nongnu.org X-Gm-Message-State: AFq9FYL8+AEoJCfoQYBmwDhZDBObKpmnG2V8hklKg0J2Uc7zDBIMEMQI 66I31wO0wMjyEQaCRXTQ8RZHZlmhLLBZwFIdG+TPrQGg+fns5DnzBdXg9ZKCYVaIkltGYcXGqFp JMlgimGhEDOcdxe+v6GVHku/s2EKDR0MRjbVVzVZTEaINuswFa0ugHL/l X-Gm-Gg: AYBFou0Qzre0LIej7vyt/B5B8IyimEQ/GqE4nMomdC/c7ziTXlDFp/EAt8D/DAItw2x aBn2kyePc9AE2gyK9RMG9+HHkfJ4iNUVQqGNu1H2PWaCCMpSj/In96H2HnLNvnkREzCp5ThDl3f +l+FSHRrF5w475Fr4NWIOxZPw61nVknDvaRDo3VmvjPqPxhWabmTOsxW8xY0ZDqYZcu3nMA2VH8 grGJnUuhq45p7TTKpi6uEmZSM19tMXGYy/n27L3PPYJX6hxzRLn0mnoAc+kM18vhdFv/kUg7llj sKGvwjgZ1Y1O2bsqbhX1b0iPGr/YT8vLq4JaqpMoih43ooB2N/GaKgui6ibUbsqOw0GJ5rA= X-Received: by 2002:a05:600c:3145:b0:4a1:88df:8a2a with SMTP id 5b1f17b1804b1-4a35aea3be1mr127039955e9.13.1793007314273; Mon, 26 Oct 2026 02:35:14 -0700 (PDT) X-Received: by 2002:a05:600c:3145:b0:4a1:88df:8a2a with SMTP id 5b1f17b1804b1-4a35aea3be1mr127039485e9.13.1793007313813; Mon, 26 Oct 2026 02:35:13 -0700 (PDT) Received: from [192.168.0.9] ([47.64.112.93]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a35a55e9aasm184786935e9.5.2026.10.26.02.35.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Oct 2026 02:35:13 -0700 (PDT) Message-ID: <97f60010-c6fb-4d21-92fd-754d2c791928@redhat.com> Date: Mon, 26 Oct 2026 10:35:12 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PULL 2/9] tests/9p-race: add 9p race test suite (race FID-path mutations) From: Thomas Huth To: Christian Schoenebeck , qemu-devel@nongnu.org Cc: Greg Kurz , Peter Maydell , "open list:RISC-V" References: <2296ed61d2a38b5198d2fd9fe88056be4cd4adba.1792420035.git.qemu_oss@crudebyte.com> Content-Language: en-US Autocrypt: addr=thuth@redhat.com; keydata= xsFNBFH7eUwBEACzyOXKU+5Pcs6wNpKzrlJwzRl3VGZt95VCdb+FgoU9g11m7FWcOafrVRwU yYkTm9+7zBUc0sW5AuPGR/dp3pSLX/yFWsA/UB4nJsHqgDvDU7BImSeiTrnpMOTXb7Arw2a2 4CflIyFqjCpfDM4MuTmzTjXq4Uov1giGE9X6viNo1pxyEpd7PanlKNnf4PqEQp06X4IgUacW tSGj6Gcns1bCuHV8OPWLkf4hkRnu8hdL6i60Yxz4E6TqlrpxsfYwLXgEeswPHOA6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FqPoc+YSU0+0QIdYJp/XFsgWxnFIMYwDpxSHS 5fdDxUjsk3UBHZx+IhFjs2siVZi5wnHIqM7eK9abr2cK2weInTBwXwqVWjsXZ4tq5+jQrwDK cvxIcwXdUTLGxc4/Z/VRH1PZSvfQxdxMGmNTGaXVNfdFZjm4fz0mz+OUi6AHC4CZpwnsliGV ODqwX8Y1zic9viSTbKS01ZNp175POyWViUk9qisPZB7ypfSIVSEULrL347qY/hm9ahhqmn17 Ng255syASv3ehvX7iwWDfzXbA0/TVaqwa1YIkec+/8miicV0zMP9siRcYQkyTqSzaTFBBmqD oiT+z+/E59qj/EKfyce3sbC9XLjXv3mHMrq1tKX4G7IJGnS989E/fg6crv6NHae9Ckm7+lSs IQu4bBP2GxiRQ+NV3iV/KU3ebMRzqIC//DCOxzQNFNJAKldPe/bKZMCxEqtVoRkuJtNdp/5a yXFZ6TfE1hGKrDBYAm4vrnZ4CXFSBDllL59cFFOJCkn4Xboj/aVxxJxF30bn In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-17.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 26/10/2026 09.44, Thomas Huth wrote: > On 19/10/2026 16.27, Christian Schoenebeck wrote: >> Add a qtest-based stress test suite racing 9pfs server-side state. >> >> This patch adds the first race test "race/fid-path" for this new >> test suite: it races (per round) one Tlcreate (which is mutating >> the FID path) against a number of reader requests (Twalk and >> Txattrwalk) on the same FID. >> >> This very first 9pfs race test guards CVE-2026-93834 (fixed by >> commit fe9e30899f "hw/9pfs: Use read-write lock for protecting fid >> path."). >> >> Hitting the small race window is timing dependant, so this is a >> probabilistic test, not a deterministic one. During my tests the >> (unpatched) vulnerability triggered sometimes after few hundred >> rounds, and sometimes after >100k rounds. Furthermore, it expects >> QEMU being compiled with a sanitizer (e.g. ASan) which is >> supposed to detect the actual race (e.g. by memory violation): >> >>    ../configure --enable-virtfs --enable-debug \ >>    --extra-cflags="-fsanitize=address -fno-omit-frame-pointer" \ >>    --extra-ldflags="-fsanitize=address" ... >> >> Even though this is a new test suite, in the codebase separate >> from the already existing deterministic 9pfs test cases (while >> 9p test client code being shared between the two test suites), >> this new race test suite is run with the same binary as the >> other qtests. However being a very slow test, it is registered >> as such, so the -m slow argument is required for this race test >> to run (as it is skipped by default): >> >>    ASAN_OPTIONS=detect_leaks=0 \ >>    tests/qtest/qos-test -m slow >> >> Or if you only want to run this single race test (e.g. on x86_64): >> >>    ASAN_OPTIONS=detect_leaks=0 \ >>    tests/qtest/qos-test -m slow -p \ >>    /x86_64/pc/i440FX-pcihost/pci-bus-pc/pci-bus/virtio-9p-pci/virtio-9p/ >> virtio-9p-tests/race/fid-path >> >> On other systems, use `tests/qtest/qos-test -l` to get the correct >> (arch dependent) full test name. >> >> `ASAN_OPTIONS=detect_leaks=0` is currently required, it suppresses >> a memory leak error at the end of each race test, which is a known >> QEMU shutdown memory leak, unrelated to 9p server or this race test >> suite. The official QEMU CI pipeline sets >> `ASAN_OPTIONS=detect_leaks=0` by default for this reason. >> >> There are some knobs that can be controlled via environment >> variables: >> >>    V9FS_RACE: skip test suite by setting to 0 or force running by >>               setting to 1 >> >>    V9FS_RACE_ROUNDS: total amount of rounds to run >>                      (default: 20000) >> >>    V9FS_RACE_NCONCURRENT: amount of concurrent reader requests >>                           (default: 4) >> >> A full run with 20000 rounds took around 7 minutes on my test >> machine. If you can't hit the (narrow) race window with >> unpatched QEMU, it might help to either add some load on the >> host system and/or turning the two knobs above. >> >> Link: https://lore.kernel.org/qemu- >> devel/4a0eff0539f16434b48728cd8e5a89f906c293d8.1791368962.git.qemu_oss@crudebyte.com >> Signed-off-by: Christian Schoenebeck >> --- >>   MAINTAINERS                       |   1 + >>   tests/qtest/meson.build           |   1 + >>   tests/qtest/virtio-9p-race-test.c | 575 ++++++++++++++++++++++++++++++ >>   3 files changed, 577 insertions(+) >>   create mode 100644 tests/qtest/virtio-9p-race-test.c >  Hi Christian! > > Since this has been merged, I'm now seeing timeouts of the qos-test when I > run "make -j8 check-qtest SPEED=thorough" ... can we please fix this > somehow, e.g. by increasing the timeout setting of the qos-test, or by > decreasing the default number of rounds that this test is trying to do? WDYT? FWIW, when I allow the tests to run longer, these are the current testing times on my machine: qemu:qtest-arm/qos-test : 373.06s 167 subtests passed qemu:qtest-aarch64/qos-test : 391.52s 148 subtests passed qemu:qtest-i386/qos-test : 407.43s 154 subtests passed qemu:qtest-loongarch64/qos-test : 405.79s 146 subtests passed qemu:qtest-ppc64/qos-test : 407.26s 134 subtests passed qemu:qtest-x86_64/qos-test : 393.14s 154 subtests passed qemu:qtest-riscv32/qos-test : 767.21s 216 subtests passed qemu:qtest-riscv64/qos-test : 684.54s 216 subtests passed Thomas