lkml.org 
[lkml]   [2020]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[BUG] net: rocker: accessing the data mapped to streaming DMA
Date
In rocker_dma_test_offset(), "buf" is mapped to streaming DMA on line 203:
  dma_handle = pci_map_single(..., buf, ...);

Then, "buf" is accessed on line 229:
  expect[i] = ~buf[i];

This access may cause data inconsistency between CPU cache and hardware.

I am not sure how to properly fix this problem, and thus I only report it.


Best wishes,
Jia-Ju Bai

\
 
 \ /
  Last update: 2020-08-02 16:27    [W:0.023 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site