Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp376091ybv; Fri, 7 Feb 2020 00:56:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzqOWVjb6GAISV8zeALsY4+DMoXGQRNsEyZlsoZhOmXeSy7s+/liWfotw8ciyV201+hzj2f X-Received: by 2002:a05:6830:1f0c:: with SMTP id u12mr1440839otg.253.1581065776541; Fri, 07 Feb 2020 00:56:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581065776; cv=none; d=google.com; s=arc-20160816; b=TmTx6G0yzNNvJVaIWwZR/wtiENxYlc4Tdk1+n0Ls9qy4R9pTrILIBKwbXIeEnpww7Q eAmtjRhtfzZKO+wYhZt6USXd72qk/l1dVAwjJcXg0+ti3nriOeYQSgqPWh3rDj2xhG3H mNN2cXMwf6ySoy4zwsC8nW3r38PpVF9GYwj3Ifz8xUuKRsDKrwutSX+LnVhLmGeimdIm tc7zaeCPGp6wRk0QUzUzNEh6Qi8eMGNEacGCA7xPq+01WK7xjs9E7zdJUNO1+L+WRTFq xvZKqRVOr9JLuELAcPKtblD6pJlcu8vjPmEHVtPNTRUtt7LozKjE7U5bhofiC8ShBHoa +aig== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=0USnf3hBn92ifbh7P2D9fosqj0oQrhEhCYDRgIDXfoE=; b=UzPVkucbRRKMMLE1JREBYWQRFGVdLeUL8rim7CYJbFy9oGpfmDTP9WKcrKH/3yo/6Z 44E7VMrGmhzagsdDpdRuZhc8/KSwxT97I5wFoYMk0exOErmqxAQobSkfTysBqLOFvyvb 0zjEkhefzoI7CmumJJciXv4eq74ML6/F3sdPRAeLkdSpbsrzS28YbYfiIIHzmaBLoBWo OpmelyN2D4uRypDfX/OPXFfsLfDUmGS7O7OLT/eYH/BcYpykh/GrnuZbmyFalVeXeXXJ fHPkcG7oW3i3NfJFe79CfZTYyLoflD/u262vvDMo4fwnSrNATDYop26AueLLJhenyLkZ A8Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KtUCSeXn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id e23si3741141oie.105.2020.02.07.00.56.03; Fri, 07 Feb 2020 00:56:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KtUCSeXn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726843AbgBGIyL (ORCPT + 99 others); Fri, 7 Feb 2020 03:54:11 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:31928 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726626AbgBGIyK (ORCPT ); Fri, 7 Feb 2020 03:54:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581065649; 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=0USnf3hBn92ifbh7P2D9fosqj0oQrhEhCYDRgIDXfoE=; b=KtUCSeXnu4vcZuxCbtH2LyuDPy3dbhTYCSdMa7p55sF3EDZjMOs2G7GmRA5PrFqVn6eOUr T2spddgHEny2fdSombbK6YZz2TX/nlXApBcYvWiC0wNfRXYuAc3vMx9QFpdOuMFdHVj3ZW ouxSQhcVJHzc7XmHZpCK1Dl3Bpp2YEo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-389-wGf86mQwOcWZfWagUhSSDA-1; Fri, 07 Feb 2020 03:54:08 -0500 X-MC-Unique: wGf86mQwOcWZfWagUhSSDA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EF06810CE783; Fri, 7 Feb 2020 08:54:06 +0000 (UTC) Received: from gondolin (ovpn-117-112.ams2.redhat.com [10.36.117.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 82683857BF; Fri, 7 Feb 2020 08:53:56 +0000 (UTC) Date: Fri, 7 Feb 2020 09:53:53 +0100 From: Cornelia Huck To: Christian Borntraeger Cc: "Michael S. Tsirkin" , eperezma@redhat.com, "virtualization@lists.linux-foundation.org" , Stephen Rothwell , Linux Next Mailing List , "linux-kernel@vger.kernel.org" , kvm list , Halil Pasic Subject: Re: vhost changes (batched) in linux-next after 12/13 trigger random crashes in KVM guests after reboot Message-ID: <20200207095353.08bc91e4.cohuck@redhat.com> In-Reply-To: <97c93d38-ef07-e321-d133-18483d54c0c0@de.ibm.com> References: <20200107042401-mutt-send-email-mst@kernel.org> <20200107065434-mutt-send-email-mst@kernel.org> <20200120012724-mutt-send-email-mst@kernel.org> <2a63b15f-8cf5-5868-550c-42e2cfd92c60@de.ibm.com> <1ade56b5-083f-bb6f-d3e0-3ddcf78f4d26@de.ibm.com> <20200206171349-mutt-send-email-mst@kernel.org> <5c860fa1-cef5-b389-4ebf-99a62afa0fe8@de.ibm.com> <20200207025806-mutt-send-email-mst@kernel.org> <97c93d38-ef07-e321-d133-18483d54c0c0@de.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Feb 2020 09:13:14 +0100 Christian Borntraeger wrote: > On 07.02.20 08:58, Michael S. Tsirkin wrote: > > On Fri, Feb 07, 2020 at 08:47:14AM +0100, Christian Borntraeger wrote: > >> Also adding Cornelia. > >> > >> > >> On 06.02.20 23:17, Michael S. Tsirkin wrote: > >>> On Thu, Feb 06, 2020 at 04:12:21PM +0100, Christian Borntraeger wrote: > >>>> > >>>> > >>>> On 06.02.20 15:22, eperezma@redhat.com wrote: > >>>>> Hi Christian. > >>>>> > >>>>> Could you try this patch on top of ("38ced0208491 vhost: use batched version by default")? > >>>>> > >>>>> It will not solve your first random crash but it should help with the lost of network connectivity. > >>>>> > >>>>> Please let me know how does it goes. > >>>> > >>>> > >>>> 38ced0208491 + this seem to be ok. > >>>> > >>>> Not sure if you can make out anything of this (and the previous git bisect log) > >>> > >>> Yes it does - that this is just bad split-up of patches, and there's > >>> still a real bug that caused worse crashes :) > >>> > >>> So I just pushed batch-v4. > >>> I expect that will fail, and bisect to give us > >>> vhost: batching fetches > >>> Can you try that please? > >>> > >> > >> yes. > >> > >> eccb852f1fe6bede630e2e4f1a121a81e34354ab is the first bad commit > >> commit eccb852f1fe6bede630e2e4f1a121a81e34354ab > >> Author: Michael S. Tsirkin > >> Date: Mon Oct 7 06:11:18 2019 -0400 > >> > >> vhost: batching fetches > >> > >> With this patch applied, new and old code perform identically. > >> > >> Lots of extra optimizations are now possible, e.g. > >> we can fetch multiple heads with copy_from/to_user now. > >> We can get rid of maintaining the log array. Etc etc. > >> > >> Signed-off-by: Michael S. Tsirkin > >> > >> drivers/vhost/test.c | 2 +- > >> drivers/vhost/vhost.c | 39 ++++++++++++++++++++++++++++++++++----- > >> drivers/vhost/vhost.h | 4 +++- > >> 3 files changed, 38 insertions(+), 7 deletions(-) > >> > > > > > > And the symptom is still the same - random crashes > > after a bit of traffic, right? > > random guest crashes after a reboot of the guests. As if vhost would still > write into now stale buffers. > I'm late to the party; but where is that commit located? Or has it been dropped again already?