All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] virtio-i2c: Fix buffer handling
@ 2021-11-11 16:04 ` Vincent Whitchurch
  0 siblings, 0 replies; 27+ messages in thread
From: Vincent Whitchurch @ 2021-11-11 16:04 UTC (permalink / raw)
  To: wsa, jie.deng, viresh.kumar
  Cc: conghui.chen, mst, virtualization, linux-i2c, linux-kernel,
	kernel, Vincent Whitchurch

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

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


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

end of thread, other threads:[~2021-12-02 15:34 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 16:04 [PATCH v2 0/2] virtio-i2c: Fix buffer handling Vincent Whitchurch
2021-11-11 16:04 ` Vincent Whitchurch
2021-11-11 16:04 ` [PATCH v2 1/2] i2c: virtio: disable timeout handling Vincent Whitchurch
2021-11-11 16:04   ` Vincent Whitchurch
2021-11-11 16:46   ` Michael S. Tsirkin
2021-11-11 16:46     ` Michael S. Tsirkin
2021-11-12  2:35   ` Viresh Kumar
2021-11-12  2:35     ` Viresh Kumar
2021-11-19 15:30     ` Vincent Whitchurch
2021-11-19 15:30       ` Vincent Whitchurch
2021-11-23  9:52   ` Wolfram Sang
2021-11-23  9:54     ` Viresh Kumar
2021-11-23  9:54       ` Viresh Kumar
2021-11-23  9:55       ` Wolfram Sang
2021-11-11 16:04 ` [PATCH v2 2/2] i2c: virtio: fix completion handling Vincent Whitchurch
2021-11-11 16:04   ` Vincent Whitchurch
2021-11-11 16:57   ` Michael S. Tsirkin
2021-11-11 16:57     ` Michael S. Tsirkin
2021-12-02 15:34     ` Vincent Whitchurch
2021-12-02 15:34       ` Vincent Whitchurch
2021-11-24 23:55 ` [PATCH v2 0/2] virtio-i2c: Fix buffer handling Michael S. Tsirkin
2021-11-24 23:55   ` Michael S. Tsirkin
2021-11-25  3:21   ` Viresh Kumar
2021-11-25  3:21     ` Viresh Kumar
2021-11-25  6:24     ` Wolfram Sang
2021-11-25  6:47       ` Viresh Kumar
2021-11-25  6:47         ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.