Re: [PATCH 1/2] i2c: virtio: disable timeout handling

From: Jie Deng
Date: Tue Oct 19 2021 - 23:39:26 EST



On 2021/10/19 16:09, Viresh Kumar wrote:
Doing this may not be a good thing based on the kernel rules I have
understood until now. Maybe Greg and Wolfram can clarify on this.

We are waiting here for an external entity (Host kernel) or a firmware
that uses virtio for transport. If the other side is hacked, it can
make the kernel hang here for ever. I thought that is something that
the kernel should never do.


I'm also worried about this. We may be able to solve it by setting a big

timeout value in the driver.