Received: by 10.192.165.148 with SMTP id m20csp743662imm; Wed, 25 Apr 2018 07:03:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/FlJJ4/onziVH4CkWIruZA11eI8gyaUhUDOPGoL1/Ftczua2CFXPnsaTpCuOod3iXBuTnL X-Received: by 10.98.165.8 with SMTP id v8mr28202842pfm.225.1524665038482; Wed, 25 Apr 2018 07:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524665038; cv=none; d=google.com; s=arc-20160816; b=sL14tMWQ2ih6cf4Bgdqyj9pIFk54DJcU3h5muCh8GFD9l6XQXq2UWxEoQnWvnCQMwv z8/qWpE39Wj8GTs2c5GEkBWfc+Rjwi2MJnflpyX7gIYQt9hC+o9n7/4ea3KCdXrOhLuk l8eiCddgeW/2RldFFhEiYhp0oT9bBNh0F9wT6/mSupYxAQVshSwkWYfWW74H80srbX7M BZ47ALRM/bzYL2ccWGmvIZ8x2ORNNk0ZwVc/d4DzF0buX96ucLhv6pPDsTrxxm+ukcI0 QJo5RbAH5eio2qVG3y2EhdhHqnhQaTp0a0NYxrSm3W0tSgUe6RZhoFbtueioeRNz3PFE 3aMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to:date :arc-authentication-results; bh=JsqsyWrLXgrMbdrAS2cWypXK1T8x6SY75jrhVyBw96A=; b=Qs7mnS54hDHXu3uAN5ywy/rsp38L1DyzAXBK+Mr42NdMhhA/B+YCz0nml3q15X5/W8 7dtPZJ/Pl+NPxBux3/FQTT6oVifnG7VUVd8UsbP3V5zlnMU/S95spIO34SZNj/NSo7op H7xF04BU1YcggAdCiQ0icBCGUQnu6bYFMofCBGCXQHWGrl+IxoOCUevCTpr6Wg5/H3W5 RP8g8AA91zfbkTSm17D8H9524Yy3Qvs8tJeLEUm7yZFj07nRTZrWgdQri+jlA2xbHccf oZTgg5KPWdZYARDtc6sslZYqjXDydbrG3mfywKAmWbYvptl95xlZHkLA7ZoB8kSM5hhw LgQw== 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 y139si11175571pfc.163.2018.04.25.07.03.43; Wed, 25 Apr 2018 07:03:58 -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 S1754530AbeDYOCC convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Apr 2018 10:02:02 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:38107 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753509AbeDYOCA (ORCPT ); Wed, 25 Apr 2018 10:02:00 -0400 X-Originating-IP: 185.220.70.132 Received: from [10.44.10.6] (unknown [185.220.70.132]) (Authenticated sender: amit@amitshah.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 1C7C44000F; Wed, 25 Apr 2018 16:01:36 +0200 (CEST) Date: Wed, 25 Apr 2018 07:01:33 -0700 In-Reply-To: <20180424214104-mutt-send-email-mst@kernel.org> 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=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH 0/6] virtio-console: spec compliance fixes To: "Michael S. Tsirkin" , linux-kernel@vger.kernel.org CC: Amit Shah , Arnd Bergmann , Greg Kroah-Hartman , virtualization@lists.linux-foundation.org, stable@vger.kernel.org, Tiwei Bie , Jason Wang From: Amit Shah Message-ID: <33E19766-1FBE-446D-8D04-17B0960EA013@amitshah.net> X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24 April 2018 11:41:29 AM GMT-07:00, "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? I'm traveling this week, will be able to take a look early next week. Amit -- http://amitshah.net