Skip to content

Commit e4dc0ad

Browse files
mcgovLiliDeng
authored andcommitted
Dmesg: add example for memory corruption kernel message regex
1 parent 2d96d6a commit e4dc0ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lisa/tools/dmesg.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ class Dmesg(Tool):
2020
re.compile("BUG: soft lockup"),
2121
re.compile("Hibernate inconsistent memory map detected"),
2222
re.compile("check_flush_dependency"),
23+
# Error messages related to memory corruption from fault.c for x86_64
2324
# https://github.com/torvalds/linux/blob/0de63bb7d91975e73338300a57c54b93d3cc151c/arch/x86/mm/fault.c#L543
2425
re.compile("BUG: kernel NULL pointer dereference"),
2526
re.compile("kernel tried to execute NX-protected page"),
2627
re.compile("unable to execute userspace code"),
2728
re.compile("BUG: unable to handle page fault for address:"),
29+
# ex: PF: supervisor read access in kernel mode
2830
re.compile(
29-
r"PF: (supervisor|user) (instruction fetch|read access|write access) "
31+
r"PF: (supervisor|user) "
32+
r"(instruction fetch|read access|write access) "
3033
r"in (user|kernel) mode"
3134
),
3235
]

0 commit comments

Comments
 (0)