GithubHelp home page GithubHelp logo

kernel_rop's People

Contributors

vnik5287 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kernel_rop's Issues

BUG: unable to handle kernel paging request at drv.c#L58

Hi @vnik5287 ,

Thank you for the informative blog and the code. I am trying to test this on the kernel 4.15 and getting
this error "BUG: unable to handle kernel paging request at 00007ffcdfbfb5f0" at line drv.c#L58.
Any idea why? I should able to access that user space address (&req) from kernel, right?

Kernel throws this at this line (drv.c#L58.):
0xffffffffa013d0e8 <device_ioctl+43> mov (%rax),%rax

Crash log:

[  478.990333] BUG: unable to handle kernel paging request at 00007fffe3542f90
[  478.990338] IP: device_ioctl+0x2d/0x82 [drv]
[  478.990339] PGD 8000000232ede067 P4D 8000000232ede067 PUD 232d60067 PMD 232f7c067 PTE 8000000203f12867
[  478.990342] Oops: 0001 [#1] SMP PTI```


Thanks in advance.

assignment to ‘void (*)(void)’ from incompatible pointer type

When attempting to build via make, I am getting this error:

drv.c: In function ‘device_ioctl’:
drv.c:60:6: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘long unsigned int **’ [-Werror=incompatible-pointer-types]
   60 |   fn = &ops[req->offset];
      |      ^
cc1: some warnings being treated as errors

assignment to ‘void (*)(void)’ from incompatible pointer type

drv.c: In function ‘device_ioctl’:
drv.c:60:6: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘long unsigned int **’ [-Werror=incompatible-pointer-types]
   60 |   fn = &ops[req->offset];
      |      ^
cc1: some warnings being treated as errors

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.