lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ