Skip to content

Commit 23e8226

Browse files
committed
pkg/report: add test for kmemleak with crc hash
KMEMLEAK now prints a crc hash. Add a test to ensure we can properly parse it.
1 parent a998aac commit 23e8226

File tree

1 file changed

+36
-0
lines changed
  • pkg/report/testdata/linux/report

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
TITLE: memory leak in lookup_or_create_module_kobject
2+
TYPE: LEAK
3+
CORRUPTED: N
4+
5+
BUG: memory leak
6+
unreferenced object 0xffff8882d78c9ea0 (size 96):
7+
comm "syz.0.23", pid 5988, jiffies 4294941388
8+
hex dump (first 32 bytes):
9+
df 82 95 86 ff ff ff ff a8 9e 8c d7 82 88 ff ff ................
10+
a8 9e 8c d7 82 88 ff ff 00 00 00 00 00 00 00 00 ................
11+
backtrace (crc c9a1c131):
12+
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
13+
slab_post_alloc_hook mm/slub.c:4951 [inline]
14+
slab_alloc_node mm/slub.c:5245 [inline]
15+
__kmalloc_cache_noprof+0x42f/0x5e0 mm/slub.c:5719
16+
kmalloc_noprof include/linux/slab.h:957 [inline]
17+
kzalloc_noprof include/linux/slab.h:1094 [inline]
18+
lookup_or_create_module_kobject kernel/params.c:774 [inline]
19+
lookup_or_create_module_kobject+0x57/0x110 kernel/params.c:764
20+
module_add_driver+0x13c/0x1e0 drivers/base/module.c:46
21+
bus_add_driver+0x148/0x280 drivers/base/bus.c:682
22+
driver_register+0xb1/0x140 drivers/base/driver.c:249
23+
usb_gadget_register_driver_owner+0x69/0xe0 drivers/usb/gadget/udc/core.c:1704
24+
raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:595 [inline]
25+
raw_ioctl+0xad7/0x10f0 drivers/usb/gadget/legacy/raw_gadget.c:1306
26+
vfs_ioctl fs/ioctl.c:51 [inline]
27+
__do_sys_ioctl fs/ioctl.c:597 [inline]
28+
__se_sys_ioctl fs/ioctl.c:583 [inline]
29+
__x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583
30+
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
31+
do_syscall_64+0xa4/0x2c0 arch/x86/entry/syscall_64.c:94
32+
entry_SYSCALL_64_after_hwframe+0x77/0x7f
33+
34+
35+
<<<<<<<<<<<<<<< tail report >>>>>>>>>>>>>>>
36+

0 commit comments

Comments
 (0)