diff options
| author | Chris Leech <[email protected]> | 2016-06-30 08:32:36 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2016-07-13 21:49:57 -0400 |
| commit | fa06883281afaa158b2b350f16c377c448df6b61 (patch) | |
| tree | 6f41d942268a64f6c64a6a25eb8eb17f4e6f2ec6 /tools/perf/scripts/python/bin | |
| parent | 4b9bc86d5a999e344098303882d6395d39e36c13 (diff) | |
libfc: sanity check cpu number extracted from xid
In the receive path libfc extracts a cpu number from the ox_id in the
fiber channel header and uses that to do a per_cpu_ptr conversion. If,
for some reason, a frame is received with an invalid ox_id, per_cpu_ptr
will return an invalid pointer and the libfc receive path will panic the
system trying to use it.
I'm currently looking at such a case, and I don't yet know why a cpu
number > nr_cpu_ids is appearing in an exchange id. But adding a sanity
check in libfc prevents a system panic, and seems like good idea when
dealing with frames coming in from the network.
Signed-off-by: Chris Leech <[email protected]>
Acked-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions