From f8f2b4da0e6eaaf0aeed6f6d613d86d599aafcd3 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 29 Jul 2025 12:23:28 +0200 Subject: pkg/manager: improve patched crash skip rules The rules were too generic - there are plenty of functions that have "stall" as substring, yet they do not relate to rcu stall bugs. Improve the rules list and add a unit test. --- pkg/manager/diff_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pkg/manager/diff_test.go') diff --git a/pkg/manager/diff_test.go b/pkg/manager/diff_test.go index 9e27dc288..454a92831 100644 --- a/pkg/manager/diff_test.go +++ b/pkg/manager/diff_test.go @@ -107,3 +107,16 @@ func TestModifiedSymbols(t *testing.T) { assert.Equal(t, []string{"function", "function2"}, modifiedSymbols(base, patched)) }) } + +func TestSkipDiffRepro(t *testing.T) { + for title, skip := range map[string]bool{ + "no output from test machine": true, + "SYZFAIL: read failed": true, + "lost connection to test machine": true, + "INFO: rcu detected stall in clone": true, + "WARNING in arch_install_hw_breakpoint": false, + "KASAN: slab-out-of-bounds Write in __bpf_get_stackid": false, + } { + assert.Equal(t, skip, skipDiffRepro(title), "title=%q", title) + } +} -- cgit mrf-deployment