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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02C2BC35646 for ; Fri, 21 Feb 2020 13:17:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD1CB24650 for ; Fri, 21 Feb 2020 13:17:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=scylladb-com.20150623.gappssmtp.com header.i=@scylladb-com.20150623.gappssmtp.com header.b="rz7zzZxs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727053AbgBUNRS (ORCPT ); Fri, 21 Feb 2020 08:17:18 -0500 Received: from mail-qv1-f52.google.com ([209.85.219.52]:42258 "EHLO mail-qv1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728300AbgBUNRR (ORCPT ); Fri, 21 Feb 2020 08:17:17 -0500 Received: by mail-qv1-f52.google.com with SMTP id dc14so946308qvb.9 for ; Fri, 21 Feb 2020 05:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scylladb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=cQ9Z8lb6ALwbwNJQ49eWfbgNtxEpXerq+TtFuIm+Exs=; b=rz7zzZxs7OPKNXS+kC+s1gNhW5R0DYBIppRY44T2EBqWxBmtqAlPn1SllGx/OO6Oq6 ClespWUCzopjJRbSKqPoQgvixXjQqCuh9DSCV3Qk0IQ/IPEsMcq4y7CFY2BTupHTZV8m 8jpKEnj9XPxK9P34X2ii5UinjPEvzg1LN3IbhHa2oJGTJpGY2sdPcok6C+bZYP9mYLoo /hGDY7Ddnesh4fl3gjjc9XwZEuWJq0aJNBDUqJiuSdONrsFVlwSk5ORhtVDTYLAQqX1K PARlpWSdWXC72jUokBYi+OWu+84mDZ5vOTfHgrU/DirUHFhkU1UarqEeUshuPshYseBk 8HPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cQ9Z8lb6ALwbwNJQ49eWfbgNtxEpXerq+TtFuIm+Exs=; b=aSxf6lVjEffgCV+nAPabfCujMu9Wp8so/cGf6u4DPezdcJ63Pv8yKBxqy5sFktRDdh WAjrq6nt+FNqhIEIjQJlF7wV6aFihg/VUuf3NzWGibRcuQ7lBGqmefApOmXcNfalf3LC hRAkLGO6bcq5+B8+VUunGyYl/fr+c7a1X/LgpAkKXfqyHt4XqprGjb5YI83oZtCNrV/p PT0bM7ol2WIhl6dZcGpd96q/67gJRyebAXotZqaQdxN+QdoxOVHxjnhL00R6axXLWVNO k0FdGfyLM+y+0T/h6ZAfDByZ0cn/LOikZQKiO8EAcctTx/k+eDyS81FPUUYx98xuUoLE 4zMg== X-Gm-Message-State: APjAAAVtGxr/HNsdOC8HzYg8YtxvA1ykaQRoEWmn1k1qh4WxL1G2zF6T BtbqoDfC4gtTwXu7FoVl8WUovTvaJ7muHEjCGt5yCTdvcUljpA== X-Google-Smtp-Source: APXvYqw5mygQr+kN/R52L/Q9MJb9w78NuPTG0GbJHCTGXCGH0NuKmWy+G+jsQFx4JQqLGP/jAtNqs0AhPzYQJdTActg= X-Received: by 2002:a05:6214:1253:: with SMTP id q19mr29980642qvv.75.1582291035561; Fri, 21 Feb 2020 05:17:15 -0800 (PST) MIME-Version: 1.0 From: Glauber Costa Date: Fri, 21 Feb 2020 08:17:04 -0500 Message-ID: Subject: Crash on using the poll ring To: io-uring@vger.kernel.org, Avi Kivity , Jens Axboe Content-Type: multipart/mixed; boundary="0000000000001b6cab059f15d7d3" Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org --0000000000001b6cab059f15d7d3 Content-Type: text/plain; charset="UTF-8" Hi Today I found a crash when adding code for the poll ring to my implementation. Kernel is 2b58a38ef46e91edd68eec58bdb817c42474cad6 Here's how to reproduce: code at https://github.com/glommer/seastar.git branch poll-ring 1. same as previous steps to configure seastar, but compile with: ninja -C build/release apps/io_tester/io_tester 2. Download the yaml file attached 3. Run with: ./build/release/apps/io_tester/io_tester --conf ~/test.yaml --duration 15 --directory /var/disk1 --reactor-backend=uring --smp 1 (directory must be on xfs because we do c++ but we're not savages) --0000000000001b6cab059f15d7d3 Content-Type: text/plain; charset="US-ASCII"; name="poll-ring.txt" Content-Disposition: attachment; filename="poll-ring.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k6w73ho11 WzM1NzM5Ljc0OTU4OF0gQlVHOiBrZXJuZWwgTlVMTCBwb2ludGVyIGRlcmVmZXJlbmNlLCBhZGRy ZXNzOiAwMDAwMDAwMDAwMDAwMDAwClszNTczOS43NDk2NTldICNQRjogc3VwZXJ2aXNvciBpbnN0 cnVjdGlvbiBmZXRjaCBpbiBrZXJuZWwgbW9kZQpbMzU3MzkuNzQ5NzA3XSAjUEY6IGVycm9yX2Nv ZGUoMHgwMDEwKSAtIG5vdC1wcmVzZW50IHBhZ2UKWzM1NzM5Ljc0OTc1NF0gUEdEIDAgUDREIDAg ClszNTczOS43NDk3ODZdIE9vcHM6IDAwMTAgWyMxXSBTTVAgTk9QVEkKWzM1NzM5Ljc0OTgyM10g Q1BVOiAwIFBJRDogMTQ4NDUgQ29tbTogaW9fdGVzdGVyIE5vdCB0YWludGVkIDUuNi4wLXJjMSsg IzE0ClszNTczOS43NDk4ODFdIEhhcmR3YXJ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MDAwNDAwClszNTcz OS44NjI0ODFdIFBLUlU6IDU1NTU1NTU0Cgo= --0000000000001b6cab059f15d7d3 Content-Type: application/x-yaml; name="test.yaml" Content-Disposition: attachment; filename="test.yaml" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k6w73hnd0 LSBuYW1lOiBsYXRlbmN5X3JlYWRzCiAgc2hhcmRzOiBhbGwKICB0eXBlOiByYW5kcmVhZAogIHNo YXJkX2luZm86CiAgICBwYXJhbGxlbGlzbTogMTAKICAgIHJlcXNpemU6IDUxMgogICAgc2hhcmVz OiAxMDAKICAgIHRoaW5rX3RpbWU6IDAKCg== --0000000000001b6cab059f15d7d3--