Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3128636rwb; Mon, 15 Aug 2022 18:51:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR4FGvoQgZdqIWKKply/snWIf4GndilFXGDtaVsOhwHhAOw+dXHUBfGXOzlA15kwMcvusz3m X-Received: by 2002:a17:906:98c8:b0:730:8bfb:6cd with SMTP id zd8-20020a17090698c800b007308bfb06cdmr11761738ejb.334.1660614667684; Mon, 15 Aug 2022 18:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614667; cv=none; d=google.com; s=arc-20160816; b=B7/64bS40oJnipduOqdeASvNjwaJRZubXGXXhtc1FeDHypkzuJ8QKPWzsFbpYagW/V CVMkoDWKyYH7xkNpXTQb5adkz9EacVw6s3MTQjXt0WDOGq5jkZF80oqSK5JLpjpRnwb+ 3w8Xb0o8MOW7lVyPU4lXAt2NldA86TBNF8rFbC1hZzmRbN/iganTY1cWqecIIGS+YQTm 7709xzn68m5REwH1149J5jNM4WbSFHKIqyO6u5GFVmjjnS87Ry+2LSZFhqgdPqsS/w4D uYgUP+JNATN67FSp3x4m2ynjStEg9mMLMOffoiiABo/2IVTCE9BQNdydAomfLYVC0FeX TQWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=9d7dhCe3Fqd/bfA8yD544NDBFEKnJIxJgepP6HupnHc=; b=sCANDT43C5B7iWMeF5x41kZ8ic5/jGmz6iTpQ/T5ha8IxWxn1QS3LMTK60xJRVc7f7 lwSePCzyIMTyRfam4YvEN4CxtXFhFFqyabt/EwXRVAtPmqHk4ZncZlgkWvo7EHYLFt9/ d/gOL5nIkBBjGfqT/ZV5qtGs9LC73Q2Y2lq8TUylili3J+EkQGkrPqXiY/JQn5Bfpgrc 6YyukBPicDQJo3WDoLXUtDMUdWL7I9KbNlB2Eyg6qyuFuuDPrz1JGrexWm7VJNhaGag9 ARovM4yt84UNLubcvnhcD7QfXiojo39/THXrTgacl2covdDqH5Y1aw8IRXqtcIgsk/JW 7ADw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm1 header.b=Sw2GBTR4; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=KOJlnqL0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a50cc8f000000b0043ade0b9a7fsi8721455edi.195.2022.08.15.18.50.42; Mon, 15 Aug 2022 18:51:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm1 header.b=Sw2GBTR4; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=KOJlnqL0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245475AbiHPBTT (ORCPT + 99 others); Mon, 15 Aug 2022 21:19:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233520AbiHPBS6 (ORCPT ); Mon, 15 Aug 2022 21:18:58 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E6458099; Mon, 15 Aug 2022 14:10:54 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 12D0C32002D8; Mon, 15 Aug 2022 17:10:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 15 Aug 2022 17:10:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1660597837; x=1660684237; bh=9d7dhCe3Fq d/bfA8yD544NDBFEKnJIxJgepP6HupnHc=; b=Sw2GBTR4vuywnmfbU2VucVwN4b efRwLx92+SeVxu9DpYiM9sS9H38X+M9nmB2XpzhNvOxxb5JoJDbTxawwkLvyk2c3 buevRKZhBacx0DwC2+uAC/LsFPKBO76ez0raPhNZoceUAslgZH4W2rO7xZmFFmtt NV3qcTcxQFLYsWMFvy4tzaHbZYJ6Vt2/wj/Sta4FHeb65rISF4i+p9Tv4zpDkP8A NK+lS5/hOGiOxGACwReToCSic0km/wxhPXT7vfwCUeCdbIMCQ8wgCnkZn78PLK9o +pcAZ9QUkGDWP5Mvnob0xP2ktcIZkVN7CKZAoof0l396WC6OVXZHaU/q840Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1660597837; x=1660684237; bh=9d7dhCe3Fqd/bfA8yD544NDBFEKn JIxJgepP6HupnHc=; b=KOJlnqL03kLLyaO/0NB3mk/dJoirnU68Nx7JTKUpj8rf vVe7p792KJXBC1XDT+m4D2XgZDLPBhNoR4xTIgMVHlR6yfvZ3QIQsgWhIqzQ44V8 PUSEk7w8PQAn/cFwQq+u3nktOgacR/uZ+f/6/FbpnfDILGqmlI1I8po77UZvWuG2 wg6vQMgkdVeECgU1fuw5SKVQh+x1HHTMdqhw/Ae0XBcAIi4nLfb24x4PrqZt2H83 JWa0oWlIGniGkDoc2Y1SnLtkyK6JXlFGoKLWA1QB5a6CrDmNS4mJ6vX5P2Yl+I/+ v5EOExxCTEDkGcg3t8qDwfwwukD2UeOcM6FCEGo6gw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehvddgudeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Aug 2022 17:10:36 -0400 (EDT) Date: Mon, 15 Aug 2022 14:10:35 -0700 From: Andres Freund To: "Michael S. Tsirkin" Cc: Xuan Zhuo , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, Linus Torvalds , Jens Axboe , James Bottomley , "Martin K. Petersen" , Guenter Roeck , linux-kernel@vger.kernel.org, Greg KH , c@redhat.com Subject: Re: upstream kernel crashes Message-ID: <20220815211035.r2ojxkilwsbxyewu@awork3.anarazel.de> References: <20220815081527.soikyi365azh5qpu@awork3.anarazel.de> <20220815042623-mutt-send-email-mst@kernel.org> <20220815113729-mutt-send-email-mst@kernel.org> <20220815164503.jsoezxcm6q4u2b6j@awork3.anarazel.de> <20220815124748-mutt-send-email-mst@kernel.org> <20220815174617.z4chnftzcbv6frqr@awork3.anarazel.de> <20220815161423-mutt-send-email-mst@kernel.org> <20220815205330.m54g7vcs77r6owd6@awork3.anarazel.de> <20220815210437.saptyw6clr7datun@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815210437.saptyw6clr7datun@awork3.anarazel.de> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2022-08-15 14:04:37 -0700, Andres Freund wrote: > Booting with the equivalent change, atop 5.19, in the legacy setup_vq() > reliably causes boot to hang: I don't know much virtio, so take this with a rock of salt: Legacy setup_vq() doesn't tell the host about the queue size. The modern one does: vp_modern_set_queue_size(mdev, index, virtqueue_get_vring_size(vq)); but the legacy one doesn't. I assume this means the host will assume the queue is of the size suggested by vp_legacy_get_queue_size(). If the host continues to write into the space after the "assumed end" of the queue, but the guest puts other stuff in that space, well, I'd expect fun roughly like the stuff we've been seeing in this and related threads. Greetings, Andres Freund