diff options
author | Greg KH <[email protected]> | 2019-10-01 18:56:11 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2019-10-04 15:13:27 -0300 |
commit | 3840c5b78803b2b6cc1ff820100a74a092c40cbb (patch) | |
tree | b82191530895a388ffe0019a42f1d939f4299c2c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 94635c36f3854934a46d9e812e028d4721bbb0e6 (diff) |
RDMA/cxgb4: Do not dma memory off of the stack
Nicolas pointed out that the cxgb4 driver is doing dma off of the stack,
which is generally considered a very bad thing. On some architectures it
could be a security problem, but odds are none of them actually run this
driver, so it's just a "normal" bug.
Resolve this by allocating the memory for a message off of the heap
instead of the stack. kmalloc() always will give us a proper memory
location that DMA will work correctly from.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Nicolas Waisman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Tested-by: Potnuri Bharat Teja <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions