Files
linux/drivers/char
Xie Yongji 03202ed9b8 virtio_console: Assure used length from device is limited
[ Upstream commit d00d8da586 ]

The buf->len might come from an untrusted device. This
ensures the value would not exceed the size of the buffer
to avoid data corruption or loss.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210525125622.1203-1-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 11:27:25 +09:00
..
2013-05-05 00:11:29 -04:00
2016-07-14 16:21:53 +09:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2023-05-15 14:34:59 +09:00
2013-02-22 23:31:31 -05:00
2023-05-15 16:16:41 +09:00
2016-01-22 18:04:28 -05:00
2023-05-16 10:36:45 +09:00
2011-01-10 08:51:44 -08:00