rowhammer | Source code for testing the Row Hammer error mechanism
kandi X-RAY | rowhammer Summary
kandi X-RAY | rowhammer Summary
Memory tester for RowHammer. (Built on top of Memtest86+ v5.01.). RowHammer is a new type of memory failure that is found only in recent generations of DRAM chips [1]. Just by reading from the same address >100K times, it is possible to corrupt data in nearby addresses. More technically, repeated "activations" to the same DRAM row corrupts data in adjacent DRAM rows. RowHammer is a security threat since it allows a malicious program to breach memory protection. This is because different DRAM rows are mapped to different software pages. As of mid-2014, the problem is not well publicized.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rowhammer
rowhammer Key Features
rowhammer Examples and Code Snippets
Community Discussions
Trending Discussions on rowhammer
QUESTION
I am trying to allocate physically contiguous pages in DRAM using the alloc_pages_exact function. When I try to allocate 10MB of pages, the returned address is always 0. But when I try to allocate 1MB of pages, the allocation is almost immediate. Also, can someone please tell me how to find the exact row size of DRAM? I had to search the datasheet of my RAM to figure it out. I was wondering if there is a command to determine the row size of DRAM. Earlier I thought that the System page size should be the DRAM row size as well, but the System page size turned out to be 4kB and my calculated row size came to be 8kB. Please help. Code:
...ANSWER
Answered 2021-Jun-28 at 09:50The maximum size in pages supported by alloc_pages
and family is 2 to the power of MAX_ORDER
. MAX_ORDER
is usually 11 unless overridden by the CONFIG_FORCE_MAX_ZONEORDER
kernel configuration (which is only set for some architectures, and it may be manually configurable).
A MAX_ORDER
value of 11 allows 2048 pages to be allocated, which for the most usual page size of 4096 allows a maximum allocation size of 8388608 (8 MiB).
I have no idea how to determine the DRAM row size, but it probably is not related to the system page size because the latter is determined by the architecture's MMU (and is 4096 for most architectures).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rowhammer
Option 1: From bootloader (e.g., GRUB2) $ cd rowhammer/src $ make $ sudo cp memtest.bin /boot $ sudo vi /boot/grub2/grub.cfg # add new entry $ sudo reboot # Select new entry from GRUB2 menu
Option 2: From disk $ cd rowhammer/src $ make iso $ sudo dd if=mt501.iso of=/dev/... $ sudo reboot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page