Skip to content

Commit 2ec6e06

Browse files
committedJan 25, 2022
Move symbolizer info to SYMBOLIZER.md
1 parent 06afe31 commit 2ec6e06

File tree

2 files changed

+36
-30
lines changed

2 files changed

+36
-30
lines changed
 

‎README.md

+1-30
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,4 @@ You can subscribe to it either with a Google account or by sending an email to k
1212
Kernel bugs found with Sanitizers should be reported to kernel maintainers.
1313
Issues in Sanitizers themselves can be reported on the [Sanitizers Bugzilla](https://bugzilla.kernel.org/buglist.cgi?component=Sanitizers&product=Memory%20Management&resolution=---).
1414

15-
## Symbolizer
16-
17-
To simplify reading kernel reports, use the [symbolizer script](/tools/symbolizer.py):
18-
19-
```
20-
$ cat report
21-
...
22-
[ 107.327411] [<ffffffff8110424c>] call_usermodehelper_freeinfo+0x2c/0x30
23-
[ 107.328668] [<ffffffff811049d5>] call_usermodehelper_exec+0xa5/0x1c0
24-
[ 107.329816] [<ffffffff811052b0>] call_usermodehelper+0x40/0x60
25-
[ 107.330987] [<ffffffff8146c15e>] kobject_uevent_env+0x5ee/0x620
26-
[ 107.332035] [<ffffffff8146c19b>] kobject_uevent+0xb/0x10
27-
[ 107.333108] [<ffffffff8173bd7f>] net_rx_queue_update_kobjects+0xaf/0x150
28-
...
29-
```
30-
31-
```
32-
$ cat report | ./symbolizer.py --linux=path/to/kernel/ --strip=path/to/kernel/
33-
...
34-
[<ffffffff8110424c>] call_usermodehelper_freeinfo+0x2c/0x30 kernel/kmod.c:265
35-
[<ffffffff811049d5>] call_usermodehelper_exec+0xa5/0x1c0 kernel/kmod.c:612
36-
[<ffffffff811052b0>] call_usermodehelper+0x40/0x60 kernel/kmod.c:642
37-
[<ffffffff8146c15e>] kobject_uevent_env+0x5ee/0x620 lib/kobject_uevent.c:311
38-
[<ffffffff8146c19b>] kobject_uevent+0xb/0x10 lib/kobject_uevent.c:333
39-
[< inlined >] net_rx_queue_update_kobjects+0xaf/0x150 rx_queue_add_kobject net/core/net-sysfs.c:771
40-
[<ffffffff8173bd7f>] net_rx_queue_update_kobjects+0xaf/0x150 net/core/net-sysfs.c:786
41-
...
42-
```
43-
44-
As an alternative, use [syz-symbolize](https://github.com/google/syzkaller/blob/master/tools/syz-symbolize/symbolize.go) (part of [syzkaller](https://github.com/google/syzkaller))).
15+
See the [Symbolizer](/SYMBOLIZER.md) page for information about symplifying reading bug reports produced by Sanitizers.

‎SYMBOLIZER.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Symbolizer
2+
==========
3+
4+
To simplify reading kernel reports, you can use the [symbolizer script](/tools/symbolizer.py).
5+
It appends fileline information to each stack trace frame in the kernel log.
6+
The script requires access to the vmlinux and kernel modules binaries built with `CONFIG_DEBUG_INFO`.
7+
8+
```
9+
$ cat report
10+
...
11+
[ 107.327411] [<ffffffff8110424c>] call_usermodehelper_freeinfo+0x2c/0x30
12+
[ 107.328668] [<ffffffff811049d5>] call_usermodehelper_exec+0xa5/0x1c0
13+
[ 107.329816] [<ffffffff811052b0>] call_usermodehelper+0x40/0x60
14+
[ 107.330987] [<ffffffff8146c15e>] kobject_uevent_env+0x5ee/0x620
15+
[ 107.332035] [<ffffffff8146c19b>] kobject_uevent+0xb/0x10
16+
[ 107.333108] [<ffffffff8173bd7f>] net_rx_queue_update_kobjects+0xaf/0x150
17+
...
18+
```
19+
20+
```
21+
$ cat report | ./symbolizer.py --linux=path/to/kernel/ --strip=path/to/kernel/
22+
...
23+
[<ffffffff8110424c>] call_usermodehelper_freeinfo+0x2c/0x30 kernel/kmod.c:265
24+
[<ffffffff811049d5>] call_usermodehelper_exec+0xa5/0x1c0 kernel/kmod.c:612
25+
[<ffffffff811052b0>] call_usermodehelper+0x40/0x60 kernel/kmod.c:642
26+
[<ffffffff8146c15e>] kobject_uevent_env+0x5ee/0x620 lib/kobject_uevent.c:311
27+
[<ffffffff8146c19b>] kobject_uevent+0xb/0x10 lib/kobject_uevent.c:333
28+
[< inlined >] net_rx_queue_update_kobjects+0xaf/0x150 rx_queue_add_kobject net/core/net-sysfs.c:771
29+
[<ffffffff8173bd7f>] net_rx_queue_update_kobjects+0xaf/0x150 net/core/net-sysfs.c:786
30+
...
31+
```
32+
33+
The script supports using multiple `--linux` and `--strip` arguments.
34+
35+
As an alternative, you can use [syz-symbolize](https://github.com/google/syzkaller/blob/master/tools/syz-symbolize/symbolize.go) (part of [syzkaller](https://github.com/google/syzkaller)).

0 commit comments

Comments
 (0)
Please sign in to comment.