doc/wg/core/notes/core-notes-2023-07-14.md
Attendees:
Tyler: I've been working on Thread networking support as a kernel capsule. I've been able to make good progress and can send/receive UDP messages and I have the encryption library working. All of that came together yesterday. Our goal has been to join an OpenThread network and have a Tock device join as a sleepy end-device. We got all of the handshakes working such that the OpenThread board recognized the Tock board as a child. Going to be polishing up that code and then sending a PR soon.
Phil: That's a great accomplishment. We've had big struggles with IP stuff in the past.
Amit: When you say you have a UDP packet working, is this before joining a network? I don't remember the Thread stack
Tyler: Actually the Thread network stack and our prior work in Tock align well. It's 15.4 on the bottom and IPv6 above that and UDP for the payloads. It uses UDP for some of the fields to make requests to other Thread devices. So the UDP messages are used for joining the network and making parent requests.
Branden: Thread gives devices a TON of different addresses. What have you implemented?
Tyler: For anyone not familiar, depending on the status of the device, there are different classes of devices and they can be addresses different ways. Currently, it just has a hard-coded IP address based on the MAC address. For the end device that's all I need. There will be a lot of figuring to move from hard-coded values to more generalized things.
Leon: I've been looking at the PMP implementation for RISC-V and it looks like we haven't been revoking previously allocated regions since 2020. I made a PR that's a hotfix to solve that. It's kind of a major issue. I browsed the rest of the code and it's kind of a mess right now. I've been working on a rewrite to make the code cleaner, more maintainable, and more efficient.
Amit: What was the bug you're addressing?
Leon: The failure mode right now is that if you configure a process, then reconfigure the PMP to give no access to memory in userspace, the process keeps running just fine. The PR I put out yesterday does resolve this and invalidates regions as necessary. Generally, the different modes are hard to reason about now, which is why I'm doing a rewrite.
Alyssa: PR for fixing MapCell safety. It would be good to get more eyes on it.
Amit: Yes! That's on my to-do list. Although others should look as well.
Hudson: I've been working my way through the PR backlog I've got and will be there soon