From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 047ADC433F5 for ; Wed, 24 Nov 2021 23:56:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237572AbhKXX7T (ORCPT ); Wed, 24 Nov 2021 18:59:19 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:38695 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236146AbhKXX7S (ORCPT ); Wed, 24 Nov 2021 18:59:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637798167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7Aq2BDIOL1rOwQ9dBnbb+hwIKJaZN1tdzzbInSFnljw=; b=PsFShBzOCpfS6ocmYn6trsCj0ZBzYo9zgT8+QHqiPjeBdQhCaNaxauJW9fs5dN7rxUrJgD nbeeNsgVlo/bmXw0x8sbH4KmGL7RHmwKbwzg+Pcv8q2A9lhtELVwiu0kKgzBJJxgyYjyLC 6XF912QN9MnIxo9MwPRz/av2EAaNjuw= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-307-s9h1mI5GPmy1eA-jWKaf4Q-1; Wed, 24 Nov 2021 18:56:06 -0500 X-MC-Unique: s9h1mI5GPmy1eA-jWKaf4Q-1 Received: by mail-ed1-f71.google.com with SMTP id k7-20020aa7c387000000b003e7ed87fb31so3843822edq.3 for ; Wed, 24 Nov 2021 15:56:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=7Aq2BDIOL1rOwQ9dBnbb+hwIKJaZN1tdzzbInSFnljw=; b=y8cb2ZpAuTPvt6t1KIppDIMIcD4cDNzl0nN1/RedI6ZtjcNjCBUHSXST+qEdP2ekFf cK91cS9444tuwV+nVcGHrzuYaoubnK/l8JMxUsjafz9X3gnB56FYohHn4SM67Hee5N7k vwzT+uy37gm2dFt/b76kQDAuYDJDYg2RBpTi508eYUl6R4HEjgQmB2ogCtZX+75SSUM5 tdQUMCUyA0e15faB6wDH5Jznxd/KTcIQZEkpc6g3TZtYY60qa+SlbVsAM/PK740ToVM2 uQwYuJTDzUttLLysoYwfg7TN35IhIFxo+o+xnIzqWdN7Q8LaZtM8xqU9gQLDgBzsESaU E7eQ== X-Gm-Message-State: AOAM533xRZheei5Y8uVJXz6DxRL5B3t8SMGae7DEYC5t/DfwhShzTF0J d6pC+d9s7AV3cI87LCJ3TAPQxvUOw58MID2jJo4oe4CplsBihI1l+cL0iluvxejZZCcNfiIM2we USGbXLfctkKewBdqJVzBkXlDX X-Received: by 2002:a17:907:86a1:: with SMTP id qa33mr25976960ejc.142.1637798164843; Wed, 24 Nov 2021 15:56:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/BeF/KE9jXz/y70P34AnKAccg8V9yjGfdr5JI7QmEdI6beBgERTWQTzGGy07CdiEexVs2GQ== X-Received: by 2002:a17:907:86a1:: with SMTP id qa33mr25976932ejc.142.1637798164681; Wed, 24 Nov 2021 15:56:04 -0800 (PST) Received: from redhat.com ([2a0e:1c80:14::66]) by smtp.gmail.com with ESMTPSA id q17sm863125edd.10.2021.11.24.15.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 15:56:03 -0800 (PST) Date: Wed, 24 Nov 2021 18:55:56 -0500 From: "Michael S. Tsirkin" To: Vincent Whitchurch Cc: wsa@kernel.org, jie.deng@intel.com, viresh.kumar@linaro.org, conghui.chen@intel.com, virtualization@lists.linux-foundation.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH v2 0/2] virtio-i2c: Fix buffer handling Message-ID: <20211124185546-mutt-send-email-mst@kernel.org> References: <20211111160412.11980-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211111160412.11980-1-vincent.whitchurch@axis.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 11, 2021 at 05:04:10PM +0100, Vincent Whitchurch wrote: > This fixes a couple of bugs in the buffer handling in virtio-i2c which can > result in incorrect data on the I2C bus or memory corruption in the guest. > > I tested this on UML (virtio-uml needs a bug fix too, I will sent that out > later) with the device implementation in rust-vmm/vhost-device. > > Changes in v2: > - Added Acked-by and Fixes tags What are the plans for this patchset? > Vincent Whitchurch (2): > i2c: virtio: disable timeout handling > i2c: virtio: fix completion handling > > drivers/i2c/busses/i2c-virtio.c | 46 ++++++++++++++------------------- > 1 file changed, 19 insertions(+), 27 deletions(-) > > -- > 2.28.0