aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vminfo
diff options
context:
space:
mode:
authorJoey Jiao <quic_jiangenj@quicinc.com>2024-05-14 10:51:19 +0800
committerDmitry Vyukov <dvyukov@google.com>2024-05-27 09:44:25 +0000
commitb75d07e8995d9d6682851c553b23b4d3e9734436 (patch)
tree09e80808b88d2f6f576becef41a887eb242f3ce3 /pkg/vminfo
parent339d8cf83c825a88ff6d1c6b5a73e20fffd33010 (diff)
all: adapt all cover and sig to 64bit
Taken some arm64 devices for example: kaslr_offset is diff at bits 12-40, and kernel modules are loaded at 2GB space, so we have `ffffffd342e10000 T _stext` where uppper 32bit is ffffffd3. However, if we check modules range, the 1st module is loaded at 0xffffffd2eeb2a000, while the last module is loaded at 0xffffffd2f42c4000. We can see the upper 32bits are diff for core kernel and modules. If we use current 32bits for covered PC, we will get wrong module address recovered. So we need to move to 64bit cover and signal: - change cover/sig to 64bit to fit for syz-executor change - remove kernel upper base logic as kernel upper base is not a constant when kaslr enabled for core kernel and modules. - remove unused pcBase
Diffstat (limited to 'pkg/vminfo')
-rw-r--r--pkg/vminfo/vminfo_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/vminfo/vminfo_test.go b/pkg/vminfo/vminfo_test.go
index 0e5d17ef2..f58e3f7e5 100644
--- a/pkg/vminfo/vminfo_test.go
+++ b/pkg/vminfo/vminfo_test.go
@@ -106,8 +106,8 @@ func createSuccessfulResults(source queue.Source, stop chan struct{}) {
info := &flatrpc.ProgInfo{}
for range req.Prog.Calls {
info.Calls = append(info.Calls, &flatrpc.CallInfo{
- Cover: []uint32{1},
- Signal: []uint32{1},
+ Cover: []uint64{1},
+ Signal: []uint64{1},
Comps: []*flatrpc.Comparison{{Op1: 1, Op2: 2}},
})
}