Code Monkey home page Code Monkey logo

Comments (7)

dwks avatar dwks commented on June 30, 2024

Thanks to the rowhammer attack, it looks like Linux now requires root privileges to access /proc/pid/pagemap (even if you ran the process yourself):

To make life harder for attackers attempting to exploit the rowhammer vulnerability, a simple patch was merged for the 4.0-rc5 release in March. The patch turned the pagemap file into a privileged interface; attempts to open it will now fail unless the process in question has the CAP_SYS_ADMIN capability. The 4.0 release came out with that restriction in place, and everybody who was paying attention slept a little easier.

From https://lwn.net/Articles/642069/. Try using sudo or logging in as root.

from pagemap.

Zibri avatar Zibri commented on June 30, 2024

nope.. is not that.. I have full access to pagemap! (older kernel on a test machine)

from pagemap.

wayling avatar wayling commented on June 30, 2024

Hi
You can change "unsigned long data;" to "unsigned long long data;" in arm32.

from pagemap.

dwks avatar dwks commented on June 30, 2024

@Zibri, can you confirm exactly which architecture you are using? arm32 vs arm64. Thanks.

from pagemap.

Zibri avatar Zibri commented on June 30, 2024

ARM 32 cortex a9

from pagemap.

arunjmit avatar arunjmit commented on June 30, 2024

Hi,

I'm facing the same issue on ARM.
$ ./pagemap2 711
=== Maps for pid 711
pread: Invalid argument
pread: Invalid argument
pread: Invalid argument
pread: Invalid argument

from pagemap.

amdn avatar amdn commented on June 30, 2024

I changed "unsigned long" to the portable "uint64_t" in this PR, might fix this issue
#3

from pagemap.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.