Received: by 10.192.165.148 with SMTP id m20csp1369108imm; Wed, 2 May 2018 20:35:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqCOWt/eF9zTeHRfe06NczMQLjPq8lbn8YpU7AbbuZW3Y2iaCQBLpv50K55e1Y+6tmAX/NH X-Received: by 10.98.137.16 with SMTP id v16mr21262806pfd.13.1525318530706; Wed, 02 May 2018 20:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525318530; cv=none; d=google.com; s=arc-20160816; b=Ou7TmOdZvXXQ/W5Ovn4gK2RU/FHvNa8wYx5UoOZa7SkqpLZIQMGczsQKDLg0fm977F mmowMV0uyr1EjLtCXTew2SbtN142sRuYVWRuUc0GH+7D/R1KI6Ig7m2XSr0JM/+TPrG4 c4rm2CFsrbAe1ATFtlybscndmnxc4Nq32Az1r5IcWZTDC7u7O8UCNgaHhVH/VA89H8Fs P40gBZzFtjWG1KVJ6GvV1b5xFGYWj0XJ0JWqC0ra4ykiibVjZ1O9rO1Z5FoheiKU+pmq 9hKLsa4t1oJ3TIQCa/UcmP8lmSDu70vu17K5uIll4lFmEQvMQlBBD4f13qvrBg47cGy5 Qpcg== 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=PMico0yNOIvYaqIgys2MeimJC+7vXuMvY3EbmEL8XGo=; b=kzXTWdbnfHxWPfUgLfJqH/9CBtYcXBrcuSvijEon8Wt2P+hBRDubAIqW3AFcTWiCck x6hOzM/vgQzZRKLqIJ2mF+EHkLEREAl5srhZzRb+wZq9+n2UDU17ef2nXT4s9ejoWb0C pcAEhzWkkGCm++nETcpaqn47+kHHy7sCoAsfZGR5fgE7iJ2LmOu2LWyBm2V/4RP7mSi5 WomRB7aocTymykTw0Alph9NsV6IoFoTgouXUo8kyet58Klh/uG0XR0huk/CBA0UTxR7w Y5w25od1wYp/22yNUY5zs2gpPOPzVV1iKHg1mJrSkzTjVbxnWotURGqa28QVzM89Rs2s eW+Q== 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 u3si13789250pfj.58.2018.05.02.20.35.02; Wed, 02 May 2018 20:35:30 -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 S1752081AbeECDex (ORCPT + 99 others); Wed, 2 May 2018 23:34:53 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:48091 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006AbeECDev (ORCPT ); Wed, 2 May 2018 23:34:51 -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 6EE3EE0008; Thu, 3 May 2018 05:34:48 +0200 (CEST) Date: Thu, 3 May 2018 05:34:47 +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: <20180503033447.GA16202@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 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/