google / google/security-research
zentool intro example reboots the system on loading ucode
- Dominant language
- C
- Stars
- 4.6k
- Forks
- 582
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 3
Description
```
debian:~/zentool$ ./zentool --output template.bin edit --hdr-autorun false --nop all --match all=0 data/cpu00A70F41_ver0A704104_2023-07-13_3C8FAC0D.bin
debian:~/zentool$ ./zentool edit --nop all --match all=0 --hdr-revlow 0xff --match 0=@fpatan --seq 0=7 --insn q0i0="add rax, rax, 0x1337" template.bin
debian:~/zentool$ ./zentool verify template.bin
template.bin: BAD
use `resign` command to adjust the hash of edited files
debian:~/zentool$ ./zentool resign template.bin
debian:~/zentool$ sudo rdmsr -a 0x8b
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
a704104
debian:~/zentool$ sudo ./zentool load --cpu=2 template.bin
old ucode patch on cpu 2: 0xa704104
client_loop: send disconnect: Broken pipe #reboots here #ssh session terminated
```
Contributor guide
Assessment
This issue has not been assessed yet.