aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim/netdev.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-07-09 20:59:10 +0000
committerJakub Kicinski <[email protected]>2025-07-11 23:00:19 +0000
commit0346000aaab8cf8baf4ae40c48a5779a03971e80 (patch)
tree515ee55b06e1498849cfc9af674e35f85fede946 /drivers/net/netdevsim/netdev.c
parentvirtio_net: simplify tx queue wake condition check (diff)
downloadkernel-0346000aaab8cf8baf4ae40c48a5779a03971e80.tar.gz
kernel-0346000aaab8cf8baf4ae40c48a5779a03971e80.zip
eth: fbnic: fix ubsan complaints about OOB accesses
UBSAN complains that we reach beyond the end of the log entry: UBSAN: array-index-out-of-bounds in drivers/net/ethernet/meta/fbnic/fbnic_fw_log.c:94:50 index 71 is out of range for type 'char [*]' Call Trace: <TASK> ubsan_epilogue+0x5/0x2b fbnic_fw_log_write+0x120/0x960 fbnic_fw_parse_logs+0x161/0x210 We're just taking the address of the character after the array, so this really seems like something that should be legal. But whatever, easy enough to silence by doing direct pointer math. Fixes: c2b93d6beca8 ("eth: fbnic: Create ring buffer for firmware logs") Reviewed-by: Alexander Duyck <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/netdevsim/netdev.c')
0 files changed, 0 insertions, 0 deletions