Received: by 10.192.165.148 with SMTP id m20csp1375905imm; Wed, 2 May 2018 20:47:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZroFzYSJYsYFQ9zhvnNa4aFC1HFEGqkGYUaZ932NA+KCOjByjdYa03yjZgby2U2AxWyFnki X-Received: by 2002:a65:5504:: with SMTP id f4-v6mr3857416pgr.177.1525319227507; Wed, 02 May 2018 20:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525319227; cv=none; d=google.com; s=arc-20160816; b=EmJ40CKU8zawUOCYynQf3uKY/VuTw0T87+regFCYH0FBRMgzJwPzeIEnf0s8XHGgJz KwoTfjXS9KXuNKCoc2gZ8HZSo26N94tTH6p4pQEsJ8K8+I/IHm84ZJ+BTLffTRtbelRg QdGhERUKbfuGVJiZW71RbMP1Nu4fsqT2oMxsPBABqRXN0iRkrsvRkeHN1Wnx4iY8l4zU e08GzgHPtqGPnJ7dMQK+gJ+m1yDcTjPg04RxXpeMjR7cpOlGE/y17p4qttjGk6QQ4aLJ VdGZZCVoBmYtq/w3x3ZfX4C/CzW31KJ6On04N8eEvY4iT5KpWJTTgbRRW4Phvx760Kl0 jQBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=RtR0jtyFGB7vFWY6WRZrdG5+jyOlLvVmu88spWhyLJo=; b=U6ChSy+K+5pXUIJfQhg4v3224GRRqKcHscEOOGSOLRCbITrJey5KZc5YueW5gzv7Ba xoqaxi8DfcJfsY0BmkNsiP2HoxpzEltI4zfctjb5pWFtvdZIecNP8PHZEGTDnrQzooBI 2d6el3BUMni33Fn0BwcdbpGiqBXf1Cwy25ljjoJvjHK7XD5q7nTfLRBRE5mwHpClpGBI YLgRC3RYUhZWY+vkHJabwXaUqL/QCXYGjhblXAlE+B22mK+E3Yj9t1yjRk26Tos3BdIl L8lUJv5M2zvX1cyZD4ORbhccpsKni9I+9P7kCB+J/0nNxxz0pPy23s/gcAS11lXJvx13 GRJA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si12826176plx.99.2018.05.02.20.46.53; Wed, 02 May 2018 20:47:07 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085AbeECDpf (ORCPT + 99 others); Wed, 2 May 2018 23:45:35 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:47737 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751993AbeECDpd (ORCPT ); Wed, 2 May 2018 23:45:33 -0400 X-Originating-IP: 212.92.123.35 Received: from localhost (unknown [212.92.123.35]) (Authenticated sender: amit@amitshah.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id DC8D5E0004; Thu, 3 May 2018 05:45:31 +0200 (CEST) Date: Thu, 3 May 2018 05:45:29 +0200 From: Amit Shah To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, Amit Shah , Arnd Bergmann , Greg Kroah-Hartman , virtualization@lists.linux-foundation.org, stable@vger.kernel.org, Tiwei Bie , Jason Wang Subject: Re: [PATCH 0/6] virtio-console: spec compliance fixes Message-ID: <20180503034529.GA16676@grmbl.mre> References: <1524248223-393618-1-git-send-email-mst@redhat.com> <20180424214104-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424214104-mutt-send-email-mst@kernel.org> X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (apologies if you received a dup) On (Tue) 24 Apr 2018 [21:41:29], Michael S. Tsirkin wrote: > On Fri, Apr 20, 2018 at 09:17:59PM +0300, Michael S. Tsirkin wrote: > > Turns out virtio console tries to take a buffer out of an active vq. > > Works by sheer luck, and is explicitly forbidden by spec. And while > > going over it I saw that error handling is also broken - > > failure is easy to trigger if I force allocations to fail. > > > > Lightly tested. > > Amit - any feedback before I push these patches? The changes look good spec-wise. There are a bunch of tests in avocado-vt that test virtio-console functionality. Can you give those a try before pushing? Amit -- http://amitshah.net/