Qaz

@qazcetelic
7 Followers
93 Following
903 Posts
Most telecom companies in the Netherlands seem to be experiencing outages. Interesting timing with the ongoing NATO summit in The Hague.
#netherlands #outage #NATOsummit

Just seeing that they are threatening Wikipedia's tax exempt status. The one good thing on the internet, the one healthy way we have of interacting with information.
https://www.theverge.com/news/656720/ed-martin-dc-attorney-wikipedia-nonprofit-threat

#USPol #Wikipedia

Trump DOJ goon threatens Wikipedia

Ed Martin, interim US attorney for DC, has written a letter to the Wikimedia Foundation, threatening its status as a nonprofit entity.

The Verge

Glad to share a fun weekend project, a powerful #Meshtastic node in a waterproof & rugged case, for use in comms blackout situations/emergencies. It allows for texting across the mesh with a smartphone.

It also has an offline WiFi network serving both the Collapsible wiki, and simple usage instructions.

The solar panel trickle-charges a roomy LiPo that should give more than a week of cover, with phone charge port behind it. Has spare antenna (orange rope is for lifting the baseplate out)

1/3

I think people really don't appreciate just how incomplete Linux kernel API docs are, and how Rust solves part of the problem.

I wrote a pile of Rust abstractions for various subsystems. For practically every single one, I had to read the C source code to understand how to use its API.

Simply reading the function signature and associated doc comment (if any) or explicit docs (if you're lucky and they exist) almost never fully tells you how to safely use the API. Do you need to hold a lock? Does a ref counted arg transfer the ref or does it take its own ref?

When a callback is called are any locks held or do you need to acquire your own? What about free callbacks, are they special? What's the intended locking order? Are there special cases where some operations might take locks in some cases but not others?

Is a NULL argument allowed and valid usage, or not? What happens to reference counts in the error case? Is a returned ref counted pointer already incremented, or is it an implied borrow from a reference owned by a passed argument?

Is the return value always a valid pointer? Can it be NULL? Or maybe it's an ERR_PTR? Maybe both? What about pointers returned via indirect arguments, are those cleared to NULL on error or left alone? Is it valid to pass a NULL ** if you don't need that return pointer?

Please stop demonizing “AI”; the stuff you have a problem with isn’t AI research or AI tech, it’s a very small subset of that domain that (a)has ethical issues with training data sourcing and (b)is being horribly misused/way overly trusted

AI research is valuable and important, and MOST of it doesn’t have these problems. It’s doing things like increasing the reliability of cancer screenings, helping astronomers make better observations, improving assistive technology, accelerating medical research, etc.

Not all AI is “train a chat bot” or “train an image generator” for nefarious or stupid purposes

Apple QA seems to have been asleep at the wheel for the Sequoia release.

Sure, the 15.0.1 release now makes the stateful firewall UDP aware, so you can use exotic things like DNS with the firewall blocking unilateral incoming connections. At least there was a workaround for that.

How about unix datagrams, though?
Did you know that a simple userland rust program that attempts to use Unix datagrams to connect to themselves will panic the entire OS?
🤦‍♂️

https://github.com/rust-lang/rust/issues/131374

macOS crash with `UnixDatagram` · Issue #131374 · rust-lang/rust

./x test library/std -- os::unix::net::tests::test_unix_datagram_connect_to_recv_addr (code of test) causes macOS to crash. The following is a minimized version of that test: use std::os::unix::net...

GitHub
@kayla @scottwilson @gamingonlinux Interesting suggestion, I hadn't heard of it. However, the recommend Nvidia GPU in the specs is a GeForce RTX 2060, so maybe it's a bit too heavy.

Two weeks after the initial release, I'm excited to announce the new version of **Binsider**! 🎉

🕵️‍♂️ A TUI for analyzing Linux binaries.

🗡️ Swiss army knife for reverse engineers.

➡️ What's new: https://binsider.dev/blog/v020/

🦀 Written in Rust & built with @ratatui_rs

⭐ GitHub: https://github.com/orhun/binsider

#rustlang #tui #ratatui #binary #analysis #linux #reverseengineering #hexdump #opensource #terminal #commandline

Binsider

Analyze ELF binaries like a boss.

Binsider

From Jason Gunthorpe, maintainer of 5 Linux kernel subsystems:

IMHO the current situation of Rust does not look like success. It is basically unusable except for unmerged toy projects and it is still not obvious when that will change.

Today I learned that my Apple AGX GPU driver, which is the kernel side to the world's first and only OpenGL and Vulkan certified conformant driver for Apple Silicon GPUs, and also the FOSS community's first fully reverse engineered driver to achieve OpenGL 4.6 conformance, and which is used by thousands of Asahi Linux users in production, and that literally has never had an oops bug in production systems not caused by shared C code (unlike basically every other Linux GPU driver), is "an unmerged toy project".

(He works for Nvidia, I guarantee he's heard of it, considering we beat nouveau and NVK to GL 4.6 conformance.)

I guess this is what Linux kernel maintainers think of us Rust developers, that we only write "toy projects"...

Linux-for-Rust or Rust-for-Linux [LWN.net]

Someone on Reddit was making a bunch of nonsensical comments about the Rust-for-Linux story and... and apparently it turns out that they were looking at Alyssa's DCP driver for the display hardware, which is written entirely in C, and has absolutely nothing to do with Rust, but they thought Alyssa and I were the same person and somehow conflated everything together with my Rust-for-Linux work??????

How do you even look at a 100% C driver and think it has anything to do with Rust?!?!?!

×

Apple QA seems to have been asleep at the wheel for the Sequoia release.

Sure, the 15.0.1 release now makes the stateful firewall UDP aware, so you can use exotic things like DNS with the firewall blocking unilateral incoming connections. At least there was a workaround for that.

How about unix datagrams, though?
Did you know that a simple userland rust program that attempts to use Unix datagrams to connect to themselves will panic the entire OS?
🤦‍♂️

https://github.com/rust-lang/rust/issues/131374

What sort of weird edge case is running a rust program in macOS, though?

Fine. How about python?
https://gist.github.com/wdormann/85426467dd5a1d310d1d208fc16ade23
A python app shouldn't be able to crash the whole OS, right?

Was macOS Sequoia written by ChatGPT and then released to the public without bothering to test it?

Crash macOS Sequoia with a simple attempt to use a Unix datagram

Crash macOS Sequoia with a simple attempt to use a Unix datagram - dgram.py

Gist

To be fair, having a Unix Datagram connect to itself is odd. And as such, it probably won't be seen in the wild too much.

Attempting to do so in Perl will cause Perl to complain that you can't do such a thing.

But for those things that do allow you to do it, maybe the OS shouldn't fall over as the result of doing it? 😂

Also, although this bug was reported in Sequoia, it's been around since macOS 13. I have not tested anything older than that.
FWIW, this is addressed in Sequoia 15.2
@wdormann is this a new feature of 15.x or already present in earlier versions?
@txt_file
Actually, now that I look, macOS 14 has the same problem.

@wdormann hm. interesting, I tried using 'socat' which doesn't seem to be affected.

(at least using socat - UNIX-SENDTO:/tmp/lol,bind=/tmp/lol which seems like it should do the same thing)

@tay
Yeah, at least with Homebrew's socat (macOS doesn't come with socat), it seems to work fine? 🤷‍♂️
@tay @wdormann sendto() won't work, you have to do connect() followed by send() followed by recv()
@wdormann blasphemy! Cupertino only uses the finest Apple Intelligence for their OS-building needs.
@wdormann nice way to trigger the screensaver!

@wdormann
As if Python is any less foreign than Rust.

Not that I expect you to be unable to do it in Swift or ObjC, but if Apple users are anyway near as fanatical as Windows users, they will blame the tool, not the OS.

@wdormann 🤔 maybe Apple is pursuing the Microsoft strategy of just not having QA because what are people going to do about it
@wdormann Of course not! They developed their own in-house LLM 🙃

@wdormann Back when I first learned of Rust's "crater" infrastructure, which is used to test new compiler versions against huge amounts of existing code from all over the internet, that sounded like a wild idea.

By now, it feels to me like a very normal idea and instead sounds wild that Apple wouldn't run the test suites of the top X open source projects on every new Mac OS release.

@muvlon
Sequoia wasn't tested before release to the public. 😂
@wdormann @0xabad1dea yet more proof that the release cadence is detrimental to the OS as a whole. It's been a decade since I left Apple, but what I saw when I was working there was features getting piled on, then most of them not getting finished and not enough time to fix significant bugs. This meant that bugs left over from the last release were even lower priority to fix, and the bugs just pile up! It's remarkable that this shit is still this bad.
@endrift @0xabad1dea
I'm sure they enlisted help from ChatGPT to write the code so that they could get it released on schedule. 😂
@wdormann @lapcatsoftware Apple Intelligence performed all QA and automated code refactoring. 🤪🫠 The humans only read the summary.
@wdormann Also, the built-in SSH ("Remote Login") is broken by the firewall (workaround). :/

@wdormann 15.0 also broke inbound SSH for me, and outbound large file transfers will stall.

Those two things are fixed in 15.0.1, but as you note, things are still not great.

@wdormann @FineFindus Fuck Apple! Just use a Linux based OS or a proper BSD derivate…
@wdormann @sigmavirus24 the comments about apple QA and rust seem like pointless red herrings, but, dang. This is quite a bad one. First time for me seeing an unmitigated 0day drop on fedi though, I guess this is the happening place now!
@glyph @wdormann yeah, I that the commentary isn't productive but Apple is also saying that an unprivileged kernel panic isn't a security issue. It's also reproducible in plain C and basic python so, it's not really a rust thing as was pointed out in the issue.
@sigmavirus24 @glyph
We all know that Availability has nothing to do with security. 😂
@wdormann @glyph if your computer is in a crash loop, you can't get a virus, ergo this is a security FEATURE.
@wdormann @marcan@treehouse.systems Apple really should stop these yearly releases. Every year every release is rushed out the door with unfinished features and tons of bugs.