-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## Command `ksymaddr` | ||
|
||
`ksymaddr` helps locate a kernel symbol by its name. | ||
|
||
The syntax is straight forward: | ||
|
||
```text | ||
ksymaddr <PATTERN> | ||
``` | ||
|
||
For example, | ||
|
||
```text | ||
gef➤ ksymaddr commit_creds | ||
[+] Found matching symbol for 'commit_creds' at 0xffffffff8f495740 (type=T) | ||
[*] Found partial match for 'commit_creds' at 0xffffffff8f495740 (type=T): commit_creds | ||
[*] Found partial match for 'commit_creds' at 0xffffffff8fc71ee0 (type=R): __ksymtab_commit_creds | ||
[*] Found partial match for 'commit_creds' at 0xffffffff8fc8d008 (type=r): __kcrctab_commit_creds | ||
[*] Found partial match for 'commit_creds' at 0xffffffff8fc9bfcd (type=r): __kstrtab_commit_creds | ||
``` | ||
|
||
Note that the debugging process needs to have the correct permissions for this command to show | ||
kernel addresses. For more information see also [this stackoverflow | ||
post](https://stackoverflow.com/a/55592796). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters