forked from lsds/sgx-lkl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimer_attack_log.txt
163 lines (149 loc) · 7.91 KB
/
timer_attack_log.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
SGXLKL_STACK_SIZE=8388608 SGXLKL_CMDLINE="-mem=128mb" SGXLKL_ETHREADS=1 SGXLKL_ETHREADS_AFFINITY=3 SGXLKL_ESPINS=1000000 /home/nelly/sgx-lkl/build/sgx-lkl-run-oe --hw-debug --enclave-config=enclave-config-light.json sqlite-bench.img
[idt.c] locking IRQ handler pages 0x40029000/0x400b1000
[ SGX-LKL ] WARN: WRFSBASE instruction raises SIGILL and will be emulated within the enclave. Run `sgx-lkl-run-oe -t` for information about how to fix this performance issue.
[sched.c] continuing on CPU 3
==== System Settings ====
Pstate max perf pct: 100
Pstate min perf pct: 53
Turbo Boost: 0
cpu pinning: 1
Designated cpu: 3
Running on cpu: 3
[main-oe/sgxlkl_run_oe.c] WARNING: interactive terminal detected; known to cause
[main-oe/sgxlkl_run_oe.c] unstable timer intervals! Use stdout file redirection for
[main-oe/sgxlkl_run_oe.c] precise single-stepping results...
==== Victim Enclave ====
Driver: /dev/sgx/enclave
Base: 0x7ef000000000
Limit: 0x7ef081949000
Size: -2120970240
TCS: 0x7ef081199000
SSA: 0x7ef081199f48
AEP: 0x40061f2d
EDBGRD: debug
--------------------------------------------------------------------------------
[main-oe/sgxlkl_run_oe.c] Registering AEX handler...
--------------------------------------------------------------------------------
[file.c] reading buffer from '/dev/cpu/3/msr' (size=8)
[pt.c] /dev/mem opened!
[apic.c] established local memory mapping for APIC_BASE=0xfee00000 at 0x7f05d4375000
[apic.c] APIC_ID=6000000; LVTT=400ec; TDCR=0
************** Application Start **************
SQLite: version 3.25.2
Date: Mon Jan 23 16:20:40 2023
CPU: 1 * Intel(R) Xeon(R) CPU E3-1280 v6 @ 3.90GHz
CPUCache: 8192 KB
Keys: 16 bytes each
Values: 100 bytes each
Entries: 1000
RawSize: 0.1 MB (estimated)
WARNING: Optimization is disabled: benchmarks unnecessarily slow
WARNING: Assertions are enabled: benchmarks unnecessarily slow
------------------------------------------------
fillseq : 276.205 micros/op;
fillseqsync : 5054.402 micros/op;
fillseqbatch : 40.736 micros/op;
fillrandom : 225.789 micros/op;
fillrandsync : 5028.605 micros/op;
fillrandbatch : 45.689 micros/op;
overwrite : 265.085 micros/op;
overwritebatch : 54.181 micros/op;
readrandom : 39.045 micros/op;
readseq : 37.915 micros/op;
fillrand100K : 28937.817 micros/op;
fillseq100K : 30035.973 micros/op;
readseq : 31.459 micros/op;
readrand100K : 24126.053 micros/op;
************** Application End **************
[[ SGX-LKL ]] Application runtime: 5.837300196s
[ 6.011145] reboot: Restarting system
--------------------------------------------------------------------------------
[main-oe/sgxlkl_run_oe.c] all done; counted 37089 IRQs (AEX)
--------------------------------------------------------------------------------
[main-oe/sgxlkl_run_oe.c] all done; counted 39417 IRQs (AEX)
--------------------------------------------------------------------------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^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mem=128mb" SGXLKL_ETHREADS=1 SGXLKL_ETHREADS_AFFINITY=3 SGXLKL_ESPINS=1000000 /home/nelly/sgx-lkl/build/sgx-lkl-run-oe --hw-debug --enclave-config=enclave-config-light.json sqlite-bench.img
[idt.c] locking IRQ handler pages 0x40029000/0x400b1000
[ SGX-LKL ] WARN: WRFSBASE instruction raises SIGILL and will be emulated within the enclave. Run `sgx-lkl-run-oe -t` for information about how to fix this performance issue.
[sched.c] continuing on CPU 3
==== System Settings ====
Pstate max perf pct: 100
Pstate min perf pct: 53
Turbo Boost: 0
cpu pinning: 1
Designated cpu: 3
Running on cpu: 3
[main-oe/sgxlkl_run_oe.c] WARNING: interactive terminal detected; known to cause
[main-oe/sgxlkl_run_oe.c] unstable timer intervals! Use stdout file redirection for
[main-oe/sgxlkl_run_oe.c] precise single-stepping results...
==== Victim Enclave ====
Driver: /dev/sgx/enclave
Base: 0x7fa000000000
Limit: 0x7fa081949000
Size: -2120970240
TCS: 0x7fa081199000
SSA: 0x7fa081199f48
AEP: 0x40061f2d
EDBGRD: debug
--------------------------------------------------------------------------------
[main-oe/sgxlkl_run_oe.c] Registering AEX handler...
--------------------------------------------------------------------------------
[file.c] reading buffer from '/dev/cpu/3/msr' (size=8)
[pt.c] /dev/mem opened!
[apic.c] established local memory mapping for APIC_BASE=0xfee00000 at 0x7fb3e3f52000
[apic.c] APIC_ID=6000000; LVTT=400ec; TDCR=0
************** Application Start **************
[[ SGX-STEP ]] Encounter ud2 instruction which is trigger marker of sgx-step attack
[[ SGX-STEP ]] The host will trigger the SGX-STEP APIC attack in 1 second
SQLite: version 3.25.2
Date: Mon Jan 23 16:29:58 2023
CPU: 1 * Intel(R) Xeon(R) CPU E3-1280 v6 @ 3.90GHz
CPUCache: 8192 KB
Keys: 16 bytes each
Values: 100 bytes each
Entries: 1000
RawSize: 0.1 MB (estimated)
WARNING: Optimization is disabled: benchmarks unnecessarily slow
WARNING: Assertions are enabled: benchmarks unnecessarily slow
------------------------------------------------
[[ SGX-STEP ]] Establishing user space APIC mapping (with kernel space handler)
[apic.c] APIC timer one-shot mode with division 2 (lvtt=ec/tdcr=0)
fillseq : 1099.242 micros/op;
fillseqsync : 12088.203 micros/op;
fillseqbatch : 192.862 micros/op;
fillrandom : 1230.445 micros/op;
fillrandsync : 12177.396 micros/op;
fillrandbatch : 210.364 micros/op;
overwrite : 1443.425 micros/op;
overwritebatch : 258.696 micros/op;
readrandom : 187.863 micros/op;
readseq : 185.861 micros/op;
fillrand100K : 87022.066 micros/op;
fillseq100K : 94949.007 micros/op;
readseq : 149.220 micros/op;
readrand100K : 72041.035 micros/op;
************** Application End **************
[[ SGX-LKL ]] Application runtime: 10.707444949s
[ 11.017562] reboot: Restarting system
--------------------------------------------------------------------------------
[main-oe/sgxlkl_run_oe.c] ((APIC)) Restoring the normal execution environment...
--------------------------------------------------------------------------------
[apic.c] Restored APIC_LVTT=400ec/TDCR=0)
[file.c] writing buffer to '/dev/cpu/3/msr' (size=8)
--------------------------------------------------------------------------------
[main-oe/sgxlkl_run_oe.c] all done; counted 423764 IRQs (AEX)
--------------------------------------------------------------------------------
[main-oe/sgxlkl_run_oe.c] all done; counted 415871 IRQs (AEX)
--------------------------------------------------------------------------------