aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBert Kenward <[email protected]>2017-08-15 13:55:32 +0000
committerDavid S. Miller <[email protected]>2017-08-16 00:19:34 +0000
commit61deee962896f7eb547adc66ef09c8f1e7ddf7d7 (patch)
treea342ee636b165b5ef500aa18d79f2ff55f43427c /net/unix/af_unix.c
parentnet_sched: remove warning from qdisc_hash_add (diff)
downloadkernel-61deee962896f7eb547adc66ef09c8f1e7ddf7d7.tar.gz
kernel-61deee962896f7eb547adc66ef09c8f1e7ddf7d7.zip
sfc: don't try and read ef10 data on non-ef10 NIC
The MAC stats command takes a port ID, which doesn't exist on pre-ef10 NICs (5000- and 6000- series). This is extracted from the NIC specific data; we misinterpret this as the ef10 data structure, causing us to read potentially unallocated data. With a KASAN kernel this can cause errors with: BUG: KASAN: slab-out-of-bounds in efx_mcdi_mac_stats Fixes: 0a2ab4d988d7 ("sfc: set the port-id when calling MC_CMD_MAC_STATS") Reported-by: Stefano Brivio <[email protected]> Tested-by: Stefano Brivio <[email protected]> Signed-off-by: Bert Kenward <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions