virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio-i2c: Fix buffer handling
@ 2021-10-19  7:46 Vincent Whitchurch
  2021-10-19  7:46 ` [PATCH 1/2] i2c: virtio: disable timeout handling Vincent Whitchurch
  2021-10-19  7:46 ` [PATCH 2/2] i2c: virtio: fix completion handling Vincent Whitchurch
  0 siblings, 2 replies; 32+ messages in thread
From: Vincent Whitchurch @ 2021-10-19  7:46 UTC (permalink / raw)
  To: wsa, jie.deng, viresh.kumar
  Cc: linux-kernel, Vincent Whitchurch, kernel, linux-i2c,
	virtualization

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.

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

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2021-11-09  4:52 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19  7:46 [PATCH 0/2] virtio-i2c: Fix buffer handling Vincent Whitchurch
2021-10-19  7:46 ` [PATCH 1/2] i2c: virtio: disable timeout handling Vincent Whitchurch
2021-10-19  8:09   ` Viresh Kumar
2021-10-19  9:36     ` Greg KH
2021-10-19  9:42       ` Viresh Kumar
2021-10-19 11:16         ` Greg KH
2021-10-19 14:37           ` Viresh Kumar
     [not found]             ` <YW8LFTcBuN1bB3PD@ninjato>
2021-10-20  4:20               ` Jie Deng
2021-10-20  5:36                 ` Greg KH
2021-10-20  6:35                   ` Jie Deng
2021-10-20  6:41                     ` Viresh Kumar
2021-10-20  7:04                       ` Jie Deng
2021-10-20 10:55                         ` Vincent Whitchurch
2021-10-20 11:03                           ` Viresh Kumar
2021-10-21  3:30                             ` Jie Deng
2021-10-29 12:24                               ` Vincent Whitchurch
2021-11-01  5:23                                 ` Jie Deng
     [not found]                                   ` <MWHPR11MB0030C3489F38FF2AAF7C3D0A908C9@MWHPR11MB0030.namprd11.prod.outlook.com>
2021-11-03  6:37                                     ` Viresh Kumar
2021-11-03 14:42                                       ` Vincent Whitchurch
2021-11-09  4:52                                         ` Viresh Kumar
     [not found]         ` <YW6owLxoYbxG5GxT@ninjato>
2021-10-19 14:14           ` Viresh Kumar
2021-10-20  3:36     ` Jie Deng
2021-10-19  7:46 ` [PATCH 2/2] i2c: virtio: fix completion handling Vincent Whitchurch
2021-10-19  8:22   ` Viresh Kumar
2021-10-20  8:54     ` Jie Deng
2021-10-20  9:17       ` Viresh Kumar
2021-10-20 10:38         ` Vincent Whitchurch
2021-10-20 10:47           ` Viresh Kumar
2021-10-29 11:54             ` Vincent Whitchurch
2021-10-21  5:55   ` Jie Deng
2021-10-21  5:58     ` Viresh Kumar
2021-11-02  4:32   ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).