Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp393796pxv; Thu, 15 Jul 2021 06:46:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtIH2fZpQzLYVq+vQH0YDqriAm3l81HAGZPn14h90eEwjOhIU76WYjyjuLdLnmA0NRFZmK X-Received: by 2002:a17:906:32d8:: with SMTP id k24mr5643188ejk.422.1626356811931; Thu, 15 Jul 2021 06:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626356811; cv=none; d=google.com; s=arc-20160816; b=TstOsML7nO4ILAfN86N9TKyVuwkpKBFh+K4CdNer99iVh8ouvGty2dTuC4sRpgi5Kc uyGy9w+Eujwyrk+eCQ+9Lje3UkMBX25l4KWz1KcjsFkliUAJlvJqmr6l0GgE7Q14mhbc HZWXHBT2qnhXU/WNo8ONJabHz1orr6C7YH/FCu8kS3a62pI1+k/wrzkizBxweDB2HWm5 wVoJ6VTBCcsUDhH8q66fhPZu4SzBkYpvn2nugnq2kO/pXSKEkty5l4SSp254Mby8oYVf +U1Y0tGio17xykg8IXCMHlmK4XyManYs+4iT2QZ44u7CRVV/wsz/672qAFpSgPqCH2vy lmwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=iigDebZmco0taqe9SkCJHTZVbm5Ws4kCnxgL/XzwRgo=; b=CaYa8PKC9yGVfDTymh/rfR07cYf/SyYiX6zcXCtswOHLyLZtX+I26McSMg3oJH4VWz FCiiUh2rsMlwFYaNkcA5B29i6F1Ay/pLhtQ7b/Mj0FsdRf/MwIXm8kDQjPC+pPi5tFEa CPILC3pyDTlX7j5/PlfhmMajZZxQxtML16sOkrVDHXnBgXo9ROl0Ohj22IXYgSa1YEi/ uqWN7ooCOrPtlIEEDatIlHGD0ss/bto/IDsvacT5FmxKQWT4a2WsMHD9u1ayzh7GfFEA LNsjlbuwM92Qdr0yFpcTDjK3dyrEAaqKHodkrAgqx8arvYuCKqJM4bfc8cDiL3VEjtKd i40Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MGyJvJdD; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si7165414eja.677.2021.07.15.06.46.24; Thu, 15 Jul 2021 06:46:51 -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=@redhat.com header.s=mimecast20190719 header.b=MGyJvJdD; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232800AbhGOLI5 (ORCPT + 99 others); Thu, 15 Jul 2021 07:08:57 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41044 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232607AbhGOLI4 (ORCPT ); Thu, 15 Jul 2021 07:08:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626347163; 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; bh=iigDebZmco0taqe9SkCJHTZVbm5Ws4kCnxgL/XzwRgo=; b=MGyJvJdD+U+DrNf4VeX4JfpwrwV6xneTKEZZoKN9FPqvvCekcZtePXUnjxwuyYub8TkrqD BIN7XseHXTDsBaYuUsipSyBAoHeWsp7VdEB79cXcSHuBx2uo/71laaDITLnyyfsrKWaqDw 7SWyo9eQjL5danH2XgKqW9z8oAyf6Nc= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-431-o7DqarVfNbqzID69Hf9x0A-1; Thu, 15 Jul 2021 07:06:01 -0400 X-MC-Unique: o7DqarVfNbqzID69Hf9x0A-1 Received: by mail-wr1-f70.google.com with SMTP id 32-20020adf82a30000b029013b21c75294so3143095wrc.14 for ; Thu, 15 Jul 2021 04:06:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iigDebZmco0taqe9SkCJHTZVbm5Ws4kCnxgL/XzwRgo=; b=oOgvwkKdnmrbe80X2//jLU/DxKWR9CUFsM90Uu8tJtEwvIlgxgk/7QV4IbglU9ztyX Md44YdVlkKkUUL8T2eYSGjeZIQuseDbZbhvrLAV7DtreAqw2OuADw4ra87/4Rgm7azZq k0h2FwbjZv5vOkknMwlZKYAXjv4YriaK6RAMpsa8RW3rB7/FVR37cD9e54+E14UfSUWb FZ0yh4Yu/HPtS/3Y54M72Dg68ze5jgTZ2WECeD5kP9OZHWS70Oi2oB7JgA5skqnfs4Ub iVOwqox6VCdvCFmCyRSkSSshTb19tpg9hBaM6QorFn3uyzWq9WNquRFWiiwIZUA/gnJo Gwrg== X-Gm-Message-State: AOAM533WRTFyl0MeePUgNh133WBFfY5NE8cGluIKEYS0CbOaqbnhpLMu 6gNmJkjn+YVgMJaLL7FxHm5xLH+0kjdopnvsmKh1yZ8Ur/+qSki63cGU/iAKVp4OkbHY4mKzvcF tA1KgDFY6wueuxKNOdp6aKh/N X-Received: by 2002:a5d:4086:: with SMTP id o6mr4617947wrp.379.1626347160800; Thu, 15 Jul 2021 04:06:00 -0700 (PDT) X-Received: by 2002:a5d:4086:: with SMTP id o6mr4617931wrp.379.1626347160625; Thu, 15 Jul 2021 04:06:00 -0700 (PDT) Received: from ?IPv6:2001:b07:add:ec09:c399:bc87:7b6c:fb2a? ([2001:b07:add:ec09:c399:bc87:7b6c:fb2a]) by smtp.gmail.com with ESMTPSA id t6sm6198126wru.75.2021.07.15.04.05.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jul 2021 04:05:59 -0700 (PDT) Subject: Re: 5.13-rt1 + KVM = WARNING: at fs/eventfd.c:74 eventfd_signal() To: He Zhe , Daniel Bristot de Oliveira , Jason Wang , Thomas Gleixner , Sebastian Andrzej Siewior , "Michael S. Tsirkin" , Juri Lelli Cc: LKML , Al Viro References: <8dfc0ee9-b97a-8ca8-d057-31c8cad3f5b6@redhat.com> <475f84e2-78ee-1a24-ef57-b16c1f2651ed@redhat.com> From: Paolo Bonzini Message-ID: Date: Thu, 15 Jul 2021 13:05:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/07/21 12:10, He Zhe wrote: > The following was provided in this thread. The commit log contains the call traces that I met and fixed back to Apr. 2020. > > https://lore.kernel.org/lkml/20210618084412.18257-1-zhe.he@windriver.com/ > 001: WARNING: CPU: 1 PID: 1503 at fs/eventfd.c:73 eventfd_signal+0x85/0xa0 > ---- snip ---- > 001: Call Trace: > 001: vhost_signal+0x15e/0x1b0 [vhost] > 001: vhost_add_used_and_signal_n+0x2b/0x40 [vhost] > 001: handle_rx+0xb9/0x900 [vhost_net] > 001: handle_rx_net+0x15/0x20 [vhost_net] > 001: vhost_worker+0xbe/0x120 [vhost] > 001: kthread+0x106/0x140 > 001: ? log_used.part.0+0x20/0x20 [vhost] > 001: ? kthread_park+0x90/0x90 > 001: ret_from_fork+0x35/0x40 This call trace is not of a reentrant call; there is only one call to eventfd_signal. It does fit the symptoms that Daniel reported for PREEMPT_RT though. > https://lore.kernel.org/lkml/beac2025-2e11-8ed0-61e2-9f6e633482e8@redhat.com/ This one is about PREEMPT_RT, so it would be fixed by local_lock. There _may_ be two bugs, so let's start by fixing this one. Once this one is fixed, we will examine the call stacks of any further reports, and diagnose whether the second bug (if it exists) is related to vDUSE, PREEMPT_RT or neeither. Paolo