News for hackers. Stuff that matters.
Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by simmons on Sunday March 25, 2018 @02:50PM (#16673783)
This is great! I think it could have uses far beyond the Raspberry Pi. As someone who's worked in the consumer electronics industry for years, I think we desperately need to rethink our approach to Linux-based electronics with respect to both the userland and the primary application. A legacy-free framework written in a safe language could go a long way to improving our currently lousy reputation with respect to security and reliability. (Yes, fresh code will have fresh bugs even in a safe language -- but it's a start!) I'm also keeping my eyes open for similar ideas using Rust.
Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by hugelgupf on Sunday March 25, 2018 @05:28PM (#16674704)
Shameless self-promotion: also take a look at https://github.com/u-root/u-root :)

(The gokrazy and u-root people all work at Google, I just contacted them to see if we can help each other. Not a competing project.)

Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by thisacctforreal on Monday March 26, 2018 @12:04AM (#16676514)
Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by hugelgupf on Monday March 26, 2018 @12:57AM (#16676709)
No, what sigjuice said is right. The name was derived off u-boot, though, and u-root can be used (and is in use) with LinuxBoot.
Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by sigjuice on Monday March 26, 2018 @12:15AM (#16676553)
Doesn't look like it. U-boot is a boot loader for PowerPC/ARM/MIPS/<other CPUs> boards. A typical Linux-based embedded system would consist of U-Boot, the Linux Kernel and a filesystem. u-root would be one of the many ways to construct this filesystem.
Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by elcritch on Monday March 26, 2018 @01:58AM (#16676934)
Exactly, the security in legacy systems is non-existent. I've been pretty pleased moving systems to the nerves-project [1] (which like GoKrazy has an A/B root file-system) to replace deprecated and ancient firmware systems. One of those setups required a Windows XP machine to flash the particular MCU that's obsolete now, a huge pain. It was almost impossible to update / patch.

Nerves is based on a Buildroot core but most of the system is built with Elixir and BEAM/OTP. It's fantastic having a high level language built for robustness and reasonable security. Still, I have dreams of porting BEAM to Redox OS one day [2] and replacing the C userland-bits with Rust-bits. Especially if you could represent the micro-kernel services as actors. That would be amazing!

1: https://nerves-project.org/ 2: https://github.com/redox-os/redox

Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by josteink on Monday March 26, 2018 @04:18AM (#16677450)
> As someone who's worked in the consumer electronics industry for years, I think we desperately need to rethink our approach to Linux-based electronics with respect to both the userland and the primary application.

Google has created a stack called NERF (Non-Extensible Reduced Firmware) for this:

https://firmwaresecurity.com/2017/07/23/google-nerf-non-exte...

There's a presentation about it on youtube:

https://www.youtube.com/watch?v=iffTJ1vPCSo

Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by fulafel on Monday March 26, 2018 @12:18AM (#16676567)
A large portion of the recent widely exploited NAT box / IP camera vulnerabilities and malware are exploiting logic bugs, backdoors and default passwods - instead of memory safety bugs. I agree memory safe systems are needed, but nontechnical changes are also needed to fix the widespread IoT vendor negligence.
Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by secure on Monday March 26, 2018 @02:28AM (#16677042)
Agreed.

gokrazy generates strong passwords by default and listens only on private IP addresses by default to reduce the attack surface.

Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by pjmlp on Sunday March 25, 2018 @06:21PM (#16674984)
Yeah, the idea is great.

There are a few Basic, Pascal, Oberon and Java (not Android related) options available, but only a minority cares for them.

Still, big enough to keep those vendors doing business.

Having a minimal bare metal runtime for Go would also be nice, but it is a gigantic effort to make it portable across all types of hardware.

Re:Gokrazy: A pure-Go userland for Raspberry Pi 3 appliances by kfihihc on Monday March 26, 2018 @03:58AM (#16677366)
Maybe you should look at TockOS[1].

[1]: https://www.tockos.org/