Skip to content

Instantly share code, notes, and snippets.

@srikanth007m
Created April 6, 2018 05:02
Show Gist options
  • Save srikanth007m/5a24fae360ab22ef26b5df3a2ddf01e0 to your computer and use it in GitHub Desktop.
Save srikanth007m/5a24fae360ab22ef26b5df3a2ddf01e0 to your computer and use it in GitHub Desktop.
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index 0a79b33..8eb18e0 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -631,9 +631,9 @@ var linuxOopses = []*oops{
fmt: "KASAN: %[1]v %[2]v",
},
{
- title: compile("BUG: KASAN: (.*)"),
- fmt: "KASAN: %[1]v",
- corrupted: true,
+ title: compile("BUG: KASAN: (.*)"),
+ fmt: "KASAN: %[1]v",
+ //corrupted: true,
},
{
title: compile("BUG: KMSAN: (.*)"),
@@ -775,6 +775,54 @@ var linuxOopses = []*oops{
"vmalloc", "kmem", "slab", "alloc", "create_object"},
},
},
+ {
+ title: compile("BUG: KASAN:"),
+ report: compile("BUG: KASAN: slab-out-of-bounds (Read|Write) in {{FUNC}}"),
+ fmt: "KASAN: slab-out-of-bounds %[1]v in %[2]v",
{
title: compile("BUG: KMSAN: (.*)"),
@@ -775,6 +775,54 @@ var linuxOopses = []*oops{
"vmalloc", "kmem", "slab", "alloc", "create_object"},
},
},
+ {
+ title: compile("BUG: KASAN:"),
+ report: compile("BUG: KASAN: slab-out-of-bounds (Read|Write) in {{FUNC}}"),
+ fmt: "KASAN: slab-out-of-bounds %[1]v in %[2]v",
+ stack: &stackFmt{
+ parts: []*regexp.Regexp{
+ compile("BUG: KASAN: slab-out-of-bounds in {{FUNC}}"),
+ compile("Call Trace:"),
+ parseStackTrace,
+ },
+ },
+ },
+ {
+ title: compile("BUG: KASAN:"),
+ report: compile("BUG: KASAN: slab-out-of-bounds in {{FUNC}}"),
+ fmt: "KASAN: slab-out-of-bounds in %[2]v",
+ stack: &stackFmt{
+ parts: []*regexp.Regexp{
+ compile("BUG: KASAN: slab-out-of-bounds in {{FUNC}}"),
+ compile("Call Trace:"),
+ parseStackTrace,
+ },
+ },
+ },
+ {
+ title: compile("BUG: KASAN:"),
+ report: compile("BUG: KASAN: use-after-free (Read|Write) in {{FUNC}}"),
+ fmt: "KASAN: use-after-free %[1]v in %[2]v",
+ stack: &stackFmt{
+ parts: []*regexp.Regexp{
+ compile("BUG: KASAN: use-after-free in {{FUNC}}"),
+ compile("Call Trace:"),
+ parseStackTrace,
+ },
+ },
+ },
+ {
+ title: compile("BUG: KASAN:"),
+ report: compile("BUG: KASAN: use-after-free in {{FUNC}}"),
+ fmt: "KASAN: use-after-free in %[2]v",
+ stack: &stackFmt{
+ parts: []*regexp.Regexp{
+ compile("BUG: KASAN: use-after-free in {{FUNC}}"),
+ compile("Call Trace:"),
+ parseStackTrace,
+ },
+ },
+ },
},
[]*regexp.Regexp{
// CONFIG_DEBUG_OBJECTS output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment