netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] net: rocker: accessing the data mapped to streaming DMA
@ 2020-08-02 14:26 Jia-Ju Bai
  0 siblings, 0 replies; only message in thread
From: Jia-Ju Bai @ 2020-08-02 14:26 UTC (permalink / raw)
  To: jiri, davem, kuba; +Cc: netdev, linux-kernel

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-02 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-02 14:26 [BUG] net: rocker: accessing the data mapped to streaming DMA Jia-Ju Bai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).