Commit graph

10340 commits

Author SHA1 Message Date
Sean Cross
b86f1bcf3f cargo.lock: update xous-rs and xous-ipc versions 2022-02-07 13:51:35 +08:00
Sean Cross
5992d40e67 xous-ipc: use 0.9.7 of xous-rs
Signed-off-by: Sean Cross <sean@xobs.io>
2022-02-07 13:48:02 +08:00
Sean Cross
80df40d8fa xous-rs: implement UpdateMemoryFlags syscall
Implement this syscall and create a wrapper function
`update_memory_flags()`.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-02-07 13:37:23 +08:00
Sean Cross
5fddf7c230 kernel: implement UpdateMemoryFlags syscall
This call is used to strip flags from a chunk of memory.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-02-07 13:36:48 +08:00
Sean Cross
3380a0e0ed xous: syscall: document returns of more syscalls
Add more documentation to various syscall returns.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-02-07 11:23:55 +08:00
Sean Cross
3355155445 xous: definitions: mark MemoryRange members as pub(crate)
Signed-off-by: Sean Cross <sean@xobs.io>
2022-02-07 11:22:32 +08:00
bunnie
36bf400d46 fix a delay in factory test to match a revised delay
waiting a bit longer for the EC to boot requires the confirmation
time threshold for the EC boot to also be stretched out
2022-02-06 03:13:33 +08:00
bunnie
c86df3d095 fix logic bug in usb lock status update 2022-02-06 01:31:08 +08:00
bunnie
3dae62a20d always redraw the full extent of secure modals 2022-02-05 23:20:41 +08:00
bunnie
57783e076c refactor canvas draw states to use interior mutability
Makes the code a lot easier to debug, so I could fix some
subtle issues.
2022-02-05 23:01:16 +08:00
bunnie
5ef0d9f159 narrow up the time for pddb to request password box
now that excess redraws on boot have been ferretted out
2022-02-05 19:00:34 +08:00
bunnie
fd5c6568d1 trim out some excess redraw calls that are slowing down boot 2022-02-05 18:55:46 +08:00
bunnie
a7c9027d05 make the COM reset no longer open loop; unblock as soon as EC responds 2022-02-05 15:44:47 +08:00
bunnie
2a2e305c7b visually better with the delay, but need to figure out why it takes so long now. 2022-02-05 02:46:24 +08:00
bunnie
3b6a696fc4 minor fixes, push for CI check 2022-02-05 02:40:41 +08:00
bunnie
b4a34bd9ec add busy-wait queuing for alerts in case multiple alerts pop up
this case happens when e.g. you're asking for a password but
then the connection manager throws an error.
2022-02-05 02:03:56 +08:00
bunnie
08421999ad part-way through a refactor of trust levels to prevent alerts from popping over password boxes 2022-02-04 23:59:20 +08:00
bunnie
b35f2a1d3e catch and handle fat-finger UX events better
they used to panic, now they just print a warning
2022-02-04 18:22:17 +08:00
bunnie
43a5749ee1 Merge branch 'bunnie-dev' into main 2022-02-04 17:46:43 +08:00
bunnie
63ee19fc8a improve RSSI reporting during test 2022-02-04 17:46:22 +08:00
bunnie
36e7cb9119 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-02-04 17:12:21 +08:00
bunnie
06b9f88926 improve test oqc interface with new API 2022-02-04 17:11:42 +08:00
bunnie
c07101f41c drop fat-fingered inputs after menu or dialog box close 2022-02-04 17:11:24 +08:00
bunnie
830d875911 slot in the ball demo for renode tests 2022-02-04 17:10:51 +08:00
bunnie
b036d55d24 add dummy app menu generation to renode 2022-02-04 17:07:57 +08:00
bunnie
a85ff85cc6 turn off debug spew 2022-02-04 16:36:13 +08:00
Sean Cross
459a61a2c9
Merge pull request #96 from antmicro/clockentry-api
Update Renode models with new ClockEntry API
2022-02-04 11:40:41 +08:00
Piotr Zierhoffer
e21e55807e Update Renode models with new ClockEntry API 2022-02-04 04:04:37 +01:00
bunnie
fcb67d5d16 fix argument order 2022-02-04 04:25:58 +08:00
bunnie
ad8ba37cf9 add a script that does a factory reset
for those just getting started and who want a fast-path to update.
2022-02-04 04:18:30 +08:00
bunnie
862f3a804e pull in the version string from the gateware for the bootloader 2022-02-04 04:03:52 +08:00
bunnie
f2eb466965 bump loader version string 2022-02-04 03:22:35 +08:00
bunnie
f1fa030b87 fix some CI issues 2022-02-04 02:24:12 +08:00
bunnie
3a1fd2e7d0 commit a 0.9.6 tagged prebuilt gateware image 2022-02-04 01:51:50 +08:00
bunnie
e01abb29e9 update min version requirement for EC compatibility 2022-02-04 01:44:34 +08:00
bunnie
256d3122fa Merge branch 'main' into bunnie-dev 2022-02-04 01:34:50 +08:00
bunnie
11c88b170e implement a basis for anti-rollback upgrades
the actual transition to a new version isn't here. But,
at the very least, the root keys are now derived by hashing
them MAX_ROLLBACK_LIMIT times, which allows us to create a
key chain based on a global version number that can be incremented
while allowing derviation of older keys without compromising newer
keys.
2022-02-04 01:33:04 +08:00
bunnie
ce6bf1862c add routine to lock keys if loader cannot verify kernel
Doesn't do enough to protect against glitch attacks but at least
it narrows the window where the keys are trivially readable if
code exec is achieved.
2022-02-03 22:02:37 +08:00
bunnie
6d6b62ae60 add routine to lock keys if loader cannot verify kernel
Doesn't do enough to protect against glitch attacks but at least
it narrows the window where the keys are trivially readable if
code exec is achieved.
2022-02-03 22:01:24 +08:00
bunnie
8fa4499c14 fix some cosmetic issues 2022-02-03 20:45:46 +08:00
bunnie
9921377148 make sure the connection manager doesn't race with user settings
If the connection manager isn't paused while a user sets up a network,
it could decide that the currently partially configured status is
crap and then overwrite it with a saved configuration.

Pause the connection manager and make the user aware of this situation.
2022-02-03 18:46:51 +08:00
bunnie
ffa6884fe4 improve list formatting 2022-02-03 18:42:50 +08:00
bunnie
955d0182d6 some very minor ergonomic improvements around network connection UX 2022-02-03 18:38:43 +08:00
bunnie
b498669003 use NIST SP800-38F (AES-KWP) to wrap the system key for the PDDB
this is instead of our lolfail ECB-based method with a check block.
2022-02-03 18:24:06 +08:00
bunnie
b7c0387186 connection manager: interpret DHCP state before concluding we're connected 2022-02-03 13:37:14 +08:00
bunnie
3f61a298a5 helps to map in the key-up 2022-02-03 03:39:28 +08:00
bunnie
8080c1db22 split mappings into separate files, and add azerty/qwertz mappings
totally untested, i'm sure I messed up a character or two.

I'm sure there will be opinions. Pull requests welcome!
2022-02-03 03:26:18 +08:00
bunnie
30910dbd4f add keyboard layout setting and retention
Keyboard setting is "the one and only" exception to user settings
that are saved without encryption. This is because you need your
keyboard layout to be set in order for you to type your password.
Thus, this needed a bit of a special-case to handle its storage record.

We decided to lop off 1 page from the loader and have it store
the keyboard layout code.

Let's hope we can have the discipline to really just store that
one word of information and not later be like "gee wally, you have
a whoooole 4092 unused bytes of space we can cram unencrypted
user settings in, sure would be a waste to not put those use those".
2022-02-03 02:46:37 +08:00
bunnie
8f321d540e clean up a spurious dialog box in hosted mode 2022-02-02 23:59:37 +08:00
bunnie
3240234e95 re-instate xtask run with command-line specified apps 2022-02-02 23:56:17 +08:00