Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3200402ybh; Mon, 16 Mar 2020 18:05:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vum78V3nCgCZHdqf6/TuWKp6Bj9APmniQ1Au5KM7m/iS6od3qP8Mmz6VrLRdNjhZjs1SBLl X-Received: by 2002:a54:468a:: with SMTP id k10mr1722133oic.3.1584407143128; Mon, 16 Mar 2020 18:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584407143; cv=none; d=google.com; s=arc-20160816; b=zpTBkr/nn4kx2tyYPqN74LHzo28zAqSYQd+FShwy71S62q7z1PrZ4zdjv9SCtHb8dc vQwJPs3KhvaLEWqq0/76xH3FTLLvP4zMaBYt10SI6XzgULQMuQRZiFYOdr5BEvkW8uW6 G/OZRCl040UhlJLrIYJzehnC5usBum96j9ovMBWiiFIdVr/JP6lc9ok8hzq/6gwVm+wh abdkPdawSr6/nVyBTtelDHBaIJTCQfuJKvQ6OwfrZQqrGLyLa3a2I/DbT7DDvjmWd4HM 6z1uEMAzqsAE+XjF4iZXehEgNzwXOnnI0ayFxszTiCVK4Piyt/f74wt0lZPh1W2Fm6Fb ntHA== 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 :message-id:date:subject:cc:to:from; bh=CQWptyHkXe/FwBRl0Nuh5Qa+ECLLZbQs+9IeTIwtPPQ=; b=KLRl42TxLjqT8nyDXnCx6Gg5NuM5XSIIGwuIbSP+VMtzzn3dMfZXck6LLlxW0FTmxy lga0XWQqBMb43b+I9a0wdA9ysAvvQBJemx4O5L6CGorVGETkJ+HDCn2GpY/JK7Bw0ZF9 YWSLZ7El3bYtIrSX4dxflJNo+LGWw6Vj9eBxouZXrN2unQZ8L0oniqPFsG8sPrXH0yM2 Xv+Gk/hJ+45PYbyGbRFsQW4DR52qCc0Tp1+RFEkn0mK/9A5OyDO+O1xiFtbyE9kVmGe8 5vYHltzNaE2xMyjDpWqv81sle+jL3/fCwI0MStXUDJAne9paMrtkcU+ljj4jwTBnUKeW g95A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si839717oti.268.2020.03.16.18.05.21; Mon, 16 Mar 2020 18:05:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733108AbgCQApU (ORCPT + 99 others); Mon, 16 Mar 2020 20:45:20 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53784 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733005AbgCQApU (ORCPT ); Mon, 16 Mar 2020 20:45:20 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id D46C72711FF From: Gabriel Krisman Bertazi To: jdike@addtoit.com Cc: richard@nod.at, anton.ivanov@cambridgegreys.com, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, Gabriel Krisman Bertazi , kernel@collabora.com Subject: [PATCH 0/2] fixes to the hypervisor ubd thread Date: Mon, 16 Mar 2020 20:45:05 -0400 Message-Id: <20200317004507.1513370-1-krisman@collabora.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, While debugging a somewhat related issue, I ran into two issues I believe can cause the hypervisor to write garbage to the pipe. This was find by visual inspection and is only slightly tested. It seems to partially some the problems my test case shows. Please, let me know what you think Gabriel Krisman Bertazi (2): um: ubd: Prevent buffer overrun on command completion um: ubd: Retry buffer read on any kind of error arch/um/drivers/ubd_kern.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) -- 2.25.0