[<prev] [next>] [day] [month] [year] [list]
Message-ID: <a89769ea-67fd-89ce-d8fc-c12d98538065@tsinghua.edu.cn>
Date: Sun, 2 Aug 2020 22:26:16 +0800
From: Jia-Ju Bai <baijiaju@...nghua.edu.cn>
To: jiri@...nulli.us, davem@...emloft.net, kuba@...nel.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [BUG] net: rocker: accessing the data mapped to streaming DMA
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
Powered by blists - more mailing lists