[lvc-project] [PATCH] PCI/IOV: "virtfn4294967295\0" requires 17 bytes
Alexey V. Vissarionov
gremlin at altlinux.org
Sun Dec 18 06:33:47 MSK 2022
Although unlikely, the 'id' value may be as big as 4294967295
(uint32_max) and "virtfn4294967295\0" would require 17 bytes
instead of 16.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: dd7cc44d0 ("PCI: add SR-IOV API for Physical Function driver")
Signed-off-by: Alexey V. Vissarionov <gremlin at altlinux.org>
---
drivers/pci/iov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PCI-IOV-virtfn4294967295-0-requires-17-bytes.diff
Type: text/x-patch
Size: 306 bytes
Desc: not available
URL: <http://linuxtesting.org/pipermail/lvc-project/attachments/20221218/db2ecf9c/attachment.bin>
More information about the lvc-project
mailing list