Commit graph

4082 commits

Author SHA1 Message Date
bunnie
796256cfb0 make usb_update.py appear only once in the tree 2022-09-19 12:44:55 +08:00
bunnie
47ce1e3149 add version history for TOTP records 2022-09-18 21:53:35 +08:00
bunnie
ca5820cac9 add debugging note on SoC update path for hitting the paperclip reset 2022-09-18 13:46:34 +08:00
bunnie
b9dbabc198 fix kernel config for shellchat
somehow, on windows builds, this doesn't break; but when building
under linux, the kernel config difference matters. Now that I
know how to pass features down, let's do it right.
2022-09-18 00:20:43 +08:00
bunnie
546527f3a6 update release notes 2022-09-17 21:26:50 +08:00
bunnie
d1cda8f669 add hotp support
hotp is merged as a "minor" feature off of totp. In other words,
the default mode is totp, but one can specify a totp record
to be an hotp record and it will behave as an hotp record.

We re-use the "step_seconds" field to specify the count parameter.
There is no separate initial count / count field -- the two are
tracked in a single u64 that is stored in the "step_seconds" field
of what would be a totp record.

This also revs the TOTP record to v2. This *should* not break
anything:

- v1 records deserialize as totp records into v2 (which is correct,
as there are no hotp in v1)
- when a v1 record is saved to disk, it is stored in v2 format
- v1 records that are not edited stay as v1
2022-09-17 00:39:47 +08:00
bunnie
fad3aa6ec0 fix fido readback from test vectors made in hosted mode 2022-09-17 00:39:19 +08:00
bunnie
1766611bb6 bump release notes 2022-09-16 17:00:44 +08:00
bunnie
3b7a5b914b
Merge pull request #219 from betrusted-io/perflog
Perflog
2022-09-15 23:37:20 -07:00
Sean Cross
853ad5a69a
Merge pull request #217 from betrusted-io/v2p
add virt_to_phys syscall
2022-09-16 00:41:18 -04:00
bunnie
228ff9b75e omit the page table file 2022-09-16 01:53:46 +08:00
bunnie
5461a70be1 add some generated data for later review 2022-09-16 01:52:06 +08:00
bunnie
46a2d8609f add perflib modules
this library can be re-used across multiple scenarios that require
performance profiling
2022-09-16 01:48:59 +08:00
bunnie
3a893213ff update the generated images to the latest data 2022-09-16 01:47:30 +08:00
bunnie
e12f651ac4 update analysis framework to use the binary files output by the latest changes 2022-09-16 01:47:02 +08:00
bunnie
b60ad06134 add a clone function for AtomicCsr
this is useful for the performance profiling framework
where we want to stick the allocatde CSRs into structures that
help manage things.
2022-09-16 01:46:15 +08:00
bunnie
e1781bfcbe add ct profiling to the workspace 2022-09-16 01:45:49 +08:00
bunnie
48269651e8 add continuous-time profiling of AES blocks to the net command 2022-09-16 01:45:32 +08:00
bunnie
91eb81000a add some breadcrumbs 2022-09-16 01:45:15 +08:00
bunnie
3e79e3e430 add ability to read out data based on a list of virtual sectors
This adds the `--dump` command, which requires a file that is
a copy/paste of a generated virtual to physical table. An example
of this log would look like this:

```
INFO:shellchat::cmds::net_cmd: V|P 6000d000 40799000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 6000e000 4079a000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 6000f000 4079b000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60010000 4079c000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60011000 4079d000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60012000 4079e000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60013000 4079f000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60014000 407a0000 (services\shellchat\src\cmds\net_cmd.rs:770)
INFO:shellchat::cmds::net_cmd: V|P 60015000 407a1000 (services\shellchat\src\cmds\net_cmd.rs:770)
```

and so forth. The script can parse this raw log to create the necessary
page table mappings to read a large region of virtual memory and save
it as a contiguous chunk in a file.
2022-09-16 01:39:49 +08:00
bunnie
7dbc1f60b0 add xtask tweaks for performance counter variants (perf-image target) 2022-09-16 01:39:22 +08:00
bunnie
6537661aa5 add performance monitoring variants of the SoC 2022-09-16 01:37:29 +08:00
bunnie
5112c395f9 commit a snapshot before refactoring perflib components 2022-09-16 01:25:18 +08:00
bunnie
57673052bf pass the v2p dependency onto xous-rs when it's activated in the kernel 2022-09-15 19:17:00 +08:00
bunnie
ea37ce2ea1 add feature gate on v2p per xobs' request 2022-09-15 14:06:07 +08:00
bunnie
6d9848c239 add virt_to_phys syscall
this will help speed up performance profiling as we can
resolve the physical address of the performance buffer allocated
in RAM and use a USB command to read it out, instead of streaming
it over serial.
2022-09-14 18:09:13 +08:00
bunnie
44afbd7697 fix issue where large lists of apps break signing key specifier mechanism
now to specify a signing key you add it after a "--" which delimits
the list of apps
2022-09-12 13:12:18 +08:00
bunnie
b22e3a1b43 fix dependabot security issue in base64 dependency 2022-09-11 21:48:20 +08:00
bunnie
57291a47f2 add some sample outputs from the analysis scripts 2022-09-11 21:16:45 +08:00
bunnie
4e36b43649 remove "perfcounter" default for mainline build 2022-09-11 19:20:34 +08:00
bunnie
37f8151b1f update gitref for ring-xous 2022-09-11 19:16:15 +08:00
bunnie
2b3000a3f5 add routines to access ring-xous aes implementation to characterize CT operation 2022-09-11 19:14:08 +08:00
bunnie
088648409e add constant time analysis script 2022-09-11 19:13:38 +08:00
bunnie
beed2ceab8 add performance counter to measure AES runtimes
this simple test does a walking 1's across AES256 key space to
see if there are gross bit-dependent execution timing problems
2022-09-11 07:46:41 +08:00
bunnie
5e15f798c8 add "perf" variant to targets, for performance profiling
also add a routine to manually switch over the UTRA in this case.
for whatever reason, the system is not picking up the change in
the UTRA when specified as an environment variable change --
maybe there is a hard coded link somewhere, but I can't seem
to find it.

since performnace counting is an edge case use mostly by
frankly just me, I'm not going to worry about ergonomics so
much.
2022-09-11 07:45:14 +08:00
bunnie
c77b5fd8f1 add performance counter versions of the SoC 2022-09-11 07:44:59 +08:00
bunnie
2ee0d4dfce remind myself how to update the precursorupdater
the latest docs don't work for us, so, document our method here.
Just can't figure out the .toml method of describing the project...
2022-09-09 15:39:52 +08:00
bunnie
3899f25837 add a usability note 2022-09-09 15:35:16 +08:00
bunnie
7902676918 note dependency for protobuf-compiler for the upload tool to work 2022-09-09 15:33:10 +08:00
bunnie
4b72492c3e fix bug #216 2022-09-09 15:07:31 +08:00
bunnie
1c511fb7be
Merge pull request #215 from zeldovich/main
support importing Google Authenticator TOTP into Vault
2022-09-08 22:53:15 -07:00
Nickolai Zeldovich
6e1e2acd28 minor cleanup 2022-08-31 15:33:27 -04:00
Nickolai Zeldovich
b604b746e9 format conversion for importing Google Authenticator TOTP 2022-08-31 14:38:06 -04:00
bunnie
8969485ccc fix errors that came when turning off the tls feature 2022-08-25 16:08:53 +08:00
bunnie
f5f4498b25 remove tls from default config 2022-08-25 15:27:30 +08:00
bunnie
3de588ccef revise the ws test to use a more reliable server 2022-08-25 15:26:33 +08:00
bunnie
ad155358f3 remove tls from the main config -- don't need to test that anymore in CI 2022-08-25 05:22:59 +08:00
bunnie
16f7c5b234 fix URL to a working server 2022-08-25 05:22:43 +08:00
bunnie
28434f0873 clean up a warning for now
need to find..a service...to connect to. or something like
that. maybe we just have to start a websocket server somewhere
for testing.
2022-08-25 05:06:15 +08:00
bunnie
ea55d23e67 some initial websocket mucking about 2022-08-25 05:04:37 +08:00