From 9f9845eb28f0b516d36cb5478bae8dd5714733f1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 8 Jul 2020 17:12:04 +0200 Subject: tools/syz-check: improve warning for NLA_REJECT --- tools/syz-check/check.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 81f1e9e05..58f34c6fb 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -671,8 +671,10 @@ func checkAttrType(typ *prog.StructType, payload prog.Type, policy nlaPolicy) st if typ.TemplateName() != nlattrT || payload.TemplateName() != "nla_bitfield32" { return "should be nlattr[nla_bitfield32]" } - case NLA_NESTED_ARRAY, NLA_REJECT: - return fmt.Sprintf("unhandled type %v", policy.typ) + case NLA_NESTED_ARRAY: + return "unhandled type NLA_NESTED_ARRAY" + case NLA_REJECT: + return "NLA_REJECT attribute will always be rejected" } return "" } -- cgit mrf-deployment