Skip to content

KernelAddressSanitizer, a fast memory error detector for the Linux kernel

Notifications You must be signed in to change notification settings

tvyavaha/kasan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KernelAddressSanitizer (KASAN)

KASAN is now maintained in the Linux kernel repository, this repository no longer hosts any KASAN code.

KASAN usage instructions can be found in the documentation.

For questions about KASAN use the [email protected] mailing list. You can subscribe to it either with a Google account or by sending an email to [email protected].

Kernel bugs found with KASAN should be reported to kernel maintainers. Issues in KASAN itself can be reported on the KASAN bug tracker.

To simplify reading KASAN reports you can use the symbolizer script:

$ cat report
...
[  107.327411]  [<ffffffff8110424c>] call_usermodehelper_freeinfo+0x2c/0x30
[  107.328668]  [<ffffffff811049d5>] call_usermodehelper_exec+0xa5/0x1c0
[  107.329816]  [<ffffffff811052b0>] call_usermodehelper+0x40/0x60
[  107.330987]  [<ffffffff8146c15e>] kobject_uevent_env+0x5ee/0x620
[  107.332035]  [<ffffffff8146c19b>] kobject_uevent+0xb/0x10
[  107.333108]  [<ffffffff8173bd7f>] net_rx_queue_update_kobjects+0xaf/0x150
...
$ cat report | ./kasan_symbolize.py --linux=path/to/kernel/ --strip=path/to/kernel/
...
 [<ffffffff8110424c>] call_usermodehelper_freeinfo+0x2c/0x30 kernel/kmod.c:265
 [<ffffffff811049d5>] call_usermodehelper_exec+0xa5/0x1c0 kernel/kmod.c:612
 [<ffffffff811052b0>] call_usermodehelper+0x40/0x60 kernel/kmod.c:642
 [<ffffffff8146c15e>] kobject_uevent_env+0x5ee/0x620 lib/kobject_uevent.c:311
 [<ffffffff8146c19b>] kobject_uevent+0xb/0x10 lib/kobject_uevent.c:333
 [<     inlined    >] net_rx_queue_update_kobjects+0xaf/0x150 rx_queue_add_kobject net/core/net-sysfs.c:771
 [<ffffffff8173bd7f>] net_rx_queue_update_kobjects+0xaf/0x150 net/core/net-sysfs.c:786
...

About

KernelAddressSanitizer, a fast memory error detector for the Linux kernel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%