diff options
| author | Taras Madan <tarasmadan@google.com> | 2023-07-21 11:54:11 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2023-07-24 09:12:13 +0000 |
| commit | 7549a7e1b57831cf6b08ce4700fc6e53417919f9 (patch) | |
| tree | 8e027cdaf7abbc52a5fb29c37c7137dfd2122e7a /tools/syz-check | |
| parent | f7eecac8b446ef11cff4122de6f496ad5eaba3a9 (diff) | |
all: use special placeholder for errors
Diffstat (limited to 'tools/syz-check')
| -rw-r--r-- | tools/syz-check/check.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go index 7f86c2d41..6a0b4378b 100644 --- a/tools/syz-check/check.go +++ b/tools/syz-check/check.go @@ -446,7 +446,7 @@ func checkNetlinkStruct(locs map[string]*ast.Struct, symbols map[string][]symbol binary := make([]byte, symb.Size) addr := symb.Addr - rodata.Addr if _, err := rodata.ReadAt(binary, int64(addr)); err != nil { - return nil, fmt.Errorf("failed to read policy %v (%v) at %v: %v", + return nil, fmt.Errorf("failed to read policy %v (%v) at %v: %w", kernelName, name, symb.Addr, err) } policy := (*[1e6]nlaPolicy)(unsafe.Pointer(&binary[0]))[:symb.Size/int(unsafe.Sizeof(nlaPolicy{}))] |
