Commit 41da341
committed
mod-tdx-guest: validate RTMR index and remove dead code
- Add bounds check (index > 3) before TDG_MR_RTMR_EXTEND TDCALL
- Remove unreachable code after return in tdx_guest_init()
Closes: Dstack-TEE/meta-dstack#451 parent c019113 commit 41da341
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
167 | | - | |
168 | 172 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
0 commit comments