kernel_rop's People
Forkers
singi idkwim sigma-random syjzwjj c0de3 huyna arno01 g5t4r superuser5 scyclzy pandazheng 0xr0ot melbshark wonhongkwon felixzhang00 houcy ygemici tracesrc 0xdec0de8 rako9000 sploitamos zhangji1810 jqhong fengjixuchui imulmul wenki96 jownz matayto liuer yanaygoor plummm crackercat fdlucifer 5l1v3r1kernel_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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.