diff options
author | Konstantin Khorenko <[email protected]> | 2018-11-23 19:10:28 +0300 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2018-12-20 12:02:26 -0800 |
commit | 31389b53b3e0b535867af9090a5d19ec64768d55 (patch) | |
tree | 512c28eaa91cbedeac40993b1b2e37f7a920529e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cd0d465bb697a9c7bf66a9fe940f7981232f1676 (diff) |
i40e: define proper net_device::neigh_priv_len
Out of bound read reported by KASan.
i40iw_net_event() reads unconditionally 16 bytes from
neigh->primary_key while the memory allocated for
"neighbour" struct is evaluated in neigh_alloc() as
tbl->entry_size + dev->neigh_priv_len
where "dev" is a net_device.
But the driver does not setup dev->neigh_priv_len and
we read beyond the neigh entry allocated memory,
so the patch in the next mail fixes this.
Signed-off-by: Konstantin Khorenko <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions