From b986d195b8a71d1f3cf3c13e47367fb369d0bfc3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 19 Jan 2023 17:38:43 +0100 Subject: pkg/report: detect custom VFS errors Fixes #3621 --- pkg/report/linux.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 0cca28424..c3345edde 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -2242,6 +2242,30 @@ var linuxOopses = append([]*oops{ }, []*regexp.Regexp{}, }, + { + // Custom vfs error printed by older versions of the kernel, see #3621. + []byte("VFS: Close: file count is 0"), + []oopsFormat{ + { + title: compile("VFS: Close: file count is 0"), + fmt: "VFS: Close: file count is zero (use-after-free)", + noStackTrace: true, + }, + }, + []*regexp.Regexp{}, + }, + { + // Custom vfs error printed by older versions of the kernel, see #3621. + []byte("VFS: Busy inodes after unmount"), + []oopsFormat{ + { + title: compile("VFS: Busy inodes after unmount"), + fmt: "VFS: Busy inodes after unmount (use-after-free)", + noStackTrace: true, + }, + }, + []*regexp.Regexp{}, + }, { []byte("Internal error:"), []oopsFormat{ -- cgit mrf-deployment