mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
tc: create helper to access toolchain tools
This commit is contained in:
@@ -924,8 +924,7 @@ so it is close to the failing `0xbf0000cc`.
|
||||
`readelf`:
|
||||
|
||||
....
|
||||
./out/x86_64/buildroot/host/usr/bin/x86_64-buildroot-linux-uclibc-readelf \
|
||||
-s ./out/x86_64/buildroot/build/kernel_module-1.0/hello.ko
|
||||
./runtc readelf -s ./out/x86_64/buildroot/build/kernel_module-1.0/hello.ko
|
||||
....
|
||||
|
||||
does not give any interesting hits at `cc`, no symbol was placed that far.
|
||||
@@ -998,7 +997,7 @@ The base address shows on terminal:
|
||||
Now let's find the offset of `myinit`:
|
||||
|
||||
....
|
||||
./out/x86_64/buildroot/host/usr/bin/x86_64-buildroot-linux-uclibc-readelf \
|
||||
./runtc readelf \
|
||||
-s ./out/x86_64/buildroot/build/kernel_module-1.0/fops.ko | \
|
||||
grep myinit
|
||||
....
|
||||
@@ -1295,7 +1294,7 @@ Cannot access memory at address 0x10604
|
||||
We have also double checked the address with:
|
||||
|
||||
....
|
||||
./out/arm/buildroot/host/bin/arm-buildroot-linux-uclibcgnueabi-readelf-s \
|
||||
./runtc -a arm readelf \
|
||||
./out/arm/buildroot/build/kernel_module-1.0/user/hello.out | \
|
||||
grep main
|
||||
....
|
||||
@@ -2737,7 +2736,7 @@ Notes:
|
||||
It can be found from:
|
||||
+
|
||||
....
|
||||
readelf -e out/x86_64/buildroot/build/linux-*/vmlinux | grep Entry
|
||||
./runtc readelf -e out/x86_64/buildroot/build/linux-*/vmlinux | grep Entry
|
||||
....
|
||||
+
|
||||
TODO confirm further. If I try to break there with:
|
||||
|
||||
Reference in New Issue
Block a user