HNHacker News
TopNewBestAskShowJobs

WaitWaitWha

10,335 karma · joined April 5, 2019

submissionscomments
WaitWaitWha··on Hardware hotplug events on Linux, the gory details
Love it.

Since I am a visual learner, here is a sequence diagram that helped me follow it a bit cleaner. (yes, I used the gAI dark magic)

```

  sequenceDiagram
      participant HW as Hardware
      participant Kernel as Linux Kernel<br>(USB / driver core / kobject)
      participant NetlinkK as Netlink<br>(NETLINK_KOBJECT_UEVENT<br>group 1 = MONITOR_GROUP_KERNEL)
      participant Udevd as udevd<br>(systemd-udevd)
      participant NetlinkU as Netlink<br>(NETLINK_KOBJECT_UEVENT<br>group 2 = MONITOR_GROUP_UDEV)
      participant App as Userspace Application<br>(libudev or direct netlink listener)
      participant Sysd as systemd<br>(device units, services)
      participant DevFS as /dev<br>(device nodes + symlinks)
  
      HW->>Kernel: Physical insertion (USB plug-in)
  
      Kernel->>Kernel: Detect change via bus/driver<br>(e.g. xhci-hcd → usbcore)
  
      Kernel->>Kernel: Register new device in device model<br>(kobject_add / device_add)
  
      Kernel->>NetlinkK: kobject_uevent_env(ACTION=add, ...)<br>multicast to group 1<br>(raw uevent: null-terminated key=value strings)
  
      NetlinkK->>Udevd: Receive kernel uevent<br>(ACTION=add, SUBSYSTEM=..., DEVPATH=..., etc.)
  
      Note over Udevd: udevd parses uevent
  
      Udevd->>Udevd: Match & apply udev rules<br>(/lib/udev/rules.d/, /etc/udev/rules.d/)
  
      Udevd->>Udevd: Perform actions:<br>• Load firmware<br>• usb_modeswitch<br>• Set permissions<br>• Run programs/scripts
  
      Udevd->>Udevd: Create device node(s)<br>e.g. /dev/bus/usb/001/002
  
      Udevd->>Udevd: Create symlinks<br>e.g. /dev/ttyACM0, /dev/disk/by-id/...
  
      alt Optional: triggers systemd .device unit
          Udevd->>Sysd: Triggers / influences device unit activation
          Sysd->>Sysd: May start dependent services / scopes
      end
  
      Udevd->>Udevd: Build enhanced udev packet:<br>• libudev header ("libudev\0", magic 0xfeedcafe, ...)<br>• MurmurHash2 subsystem/devtype<br>•   64-bit tag Bloom filter<br>• Original + added properties
  
      Udevd->>NetlinkU: Broadcast processed event<br>multicast to group 2<br>(binary format with header + properties)
  
      NetlinkU->>App: Receive udev event packet<br>(via libudev_monitor or raw netlink socket)
  
      App->>App: Parse header, validate magic/credentials<br>Extract properties
  
      App->>App: React to device<br>(open /dev/..., query sysfs, etc.)
  
      Note over DevFS: Device now usable via stable names / permissions
```
WaitWaitWha··on MidnightBSD Excludes Calif. From Desktop Use Due to Digital Age Assurance Act
I guess it is users' accounts, so service accounts are exempt? I would hate to see a headless server rebooting and waiting for an age verification from a service account at a power or water sanitation plant...

Maybe all laws should have a "dev environment", starting with the politicians. All their systems will demand their age and proof of age for say 12 months? Toaster, washer, dryer, cell, dishwasher, car, calculators, etc. Then, if they still want to pass the law, 3 months of red teaming by the "general public" for all the systems that have their data. And, if they still want it, go for it.

WaitWaitWha··on MidnightBSD Excludes Calif. From Desktop Use Due to Digital Age Assurance Act
https://github.com/c3d/db48x

> The DB48X project intends to rebuild and improve the user experience of the HP48 family of calculators

They just updated their license to exclude California residents. The law is so vague there is a possibility to apply it against the project, per project team.

WaitWaitWha··on A new California law says all operating systems need to have age verification
i did not even think of that! As the current law reads, will smart devices with OSes require age verification? Many IoTs are just tiny Linux versions running on a small processor. This makes all smart GE washing machines, dryers and refrigerators illegal in California.

come to think of it, maybe there is something good about this law. :D

WaitWaitWha··on A.D. Open-Source RTS Game Drops Alpha Label After 16 Years
I have played this game on the road so many times, just by myself. Airports, hotel lobbies, waiting for taxi, and more. I never played it online though. It is my "TV" to disconnect my brain from the day to day work troubles and hustles. It is not as boring as sitting front of a TV and just consume; it forces me to strategize a bit, use at least a tiny bit of my left over brain cells.
WaitWaitWha··on Artist who “paints” portraits on glass by hitting it with a hammer
I cannot tell if this is /s or real. there is an entire genre of art that specifically about functionality - functional art. Chairs, tables, buildings, vases, textile, and so on can be beautiful art yet functional.
WaitWaitWha··on A Botnet Accidentally Destroyed I2P
> Why does i2p (per the article) expect state sponsored attacks every February?

Because The Invisible Internet Project (I2P) allows government dissidents to communicate without the government oversight. Censorship-resistant, peer-to-peer communication

> Where are those forming from, what does the regularity achieve?

At least PR China, Iran, Oman, Qatar, and Kuwait. censor communication between dissidents.

> How come the operators of giant (I’m assuming illegal) botnets are available to voice their train of thought in discord?

How would you identify someone as 'operators of giant botnets' before they identified themselves as 'operators of giant botnets'?

please read https://en.wikipedia.org/wiki/I2P

WaitWaitWha··on Palantir's secret weapon isn't AI – it's Ontology. An open-source deep dive
I really wanted this "book" to be good.

In the context of the paper, the entire book seems to go downhill from the definition of ontology for me.

There is no benefit of using Gruber's ivory tower definition. A simpler explanation (e.g., it describes a structured framework that defines and categorizes the entities within a specific domain and the relationships among those entities) would have sufficed, and easier to digest.

Palantir is doing nothing revolutionary or "paradigm shift" when it comes to data and information organization. Their secret weapon is not introducing ontology to information.

Ching (1000BC?) classified reality into binary ontological primitives, created trigrams and hexagrams a combinatorial ontology. Aristotle introduced categories, substance, properties, relations, etc. Thomas Aquinas systemized Aristotelian categories into theological knowledge systems, and used structured classifications.

I am becoming curmudgeony as I see more and more of these reverse-research papers. Write the paper, then find references that fit the statement and use weasel words ...

unbelievable scene unfolds, deep-rooted disease of silos, paradigm shift, fatal flaws, forged in these extreme environments, eliminated to the absolute limit...

Gag me.

WaitWaitWha··on Palantir's secret weapon isn't AI – it's Ontology. An open-source deep dive
mine is axiology, DNAMA. ;)
WaitWaitWha··on FULU Bounties – Ring Video Doorbells
If someone gets this going, first, it will be interesting how Ring (Amazon) responds, second the self-managed home automation (e.g., Home Assistant, Open Home Foundation).
WaitWaitWha··on An AI Agent Published a Hit Piece on Me – The Operator Came Forward
clear, direct description of what happened

exactly what data was exposed

what they failed to do (we used cheesy email, SMS as MFA, we do not monitor links in our internal emails)

concrete remediation commitments (we will stop using SMS for MFA, use hard tokens or TOTP or..., stop collecting data that is not explicitly needed)

realistic risk explanation (what can happen what was lost)

published independent external review after remediation/mitigation

board-level accountability (board pay goes for fix and customer protection, part of the audit results)

customer protection (3 - 5 years?), not just 'monitoring'

and most importantly, public shaming of the CxO and the board of directors

WaitWaitWha··on An AI Agent Published a Hit Piece on Me – The Operator Came Forward
This already happens every single time when there is a security breach and private information is lost.

We take your privacy and security very seriously. There is no evidence that your data has been misused. Out of an abundance of caution… We remain committed to... will continue to work tirelessly to earn ... restore your trust ... confidence.

WaitWaitWha··on Zero downtime migrations at petabyte scale (2024)
I split step 4 in their "high level, this is the general flow for data migrations".

4.0 Freeze old system

4.1 Cut over application traffic to the new system.

4.2 merge any diff that happened between snapshot 1. and cutover 4.1

4.3 go live

to me, the above reduces the pressure on downtime because the merge is significantly smaller between freeze and go live, than trying to go live with entire environment. If timed well, the diff could be minuscule.

What they are describing is basically, live mirror the resource. Okay, that is fancy nice. Love to be able to do that. Some of us have a mildly chewed bubble gum, a foot of duct tape, and a shoestring.

WaitWaitWha··on State of Show HN: 2025
You already posted the answer. Just a bit of review of that picture and the answer is right there. ;)
WaitWaitWha··on What your Bluetooth devices reveal
I am personally aware that Washington DC, same areas of Maryland, Virginia and Delaware have been tracking car Bluetooth (and EZ-Pass) for decades for "traffic management". The more BT detected the heavier tracking. The longer time between detectors for the unique BT/EZ-Pass, the slower the traffic. Adjust traffic lights down the road to improve traffic flow. (when I write Ez-Pass, i mean the toll transponder, but not detected by a toll booths or overhead arches.)
WaitWaitWha··on 14-year-old Miles Wu folded origami pattern that holds 10k times its own weight
Improved cardboard shipping boxes.

If I can make the shipping boxes less fragile with same amount of paper as current cardboard box designs, it is a win.

WaitWaitWha··on The TSA's New $45 Fee to Fly Without ID Is Illegal
Disagree.

CLEAR is basically (mostly) self-service pre-verification by a commercial entity, achieves near the same exact thing as it is done at the TSA agent with RealID now.

The CLEAR system uses CAT or CAT-2 to send info to TSA to validate. Same, exact protocol and information as it is with the TSA Agent.

The only meaningful difference is that the biometrics is pre-stored with CLEAR, while the other travelers are collected at the TSA agent stands and compared to RealID.

There are multiple countries where all of this is done with dark technomagic. You can see this witchcraft working with Global Entry (CBP, not TSA).

What is interesting about this is that CLEAR has a relationship with the airports (mostly), not TSA. Airports are the ones pushing CLEAR so they do not have insane queues, not TSA.

Wait till you see PreCheck Touchless ID.

WaitWaitWha··on The TSA's New $45 Fee to Fly Without ID Is Illegal
If Real ID is so good, why do we have CLEAR? Why can I not skip the line with RealID?

If we are forced RealID, why not just make all the TSA checkpoints like Global Entry (or in several countries with IDs), fully automate them, using Real ID. That would get rid of CLEAR, and a lot of TSA agents.

WaitWaitWha··on [dead]
There are plenty of Faraday bags readily available for cell phones.

Look in the digital forensics industry. Field forensic investigators can get bags or boxes (look like Pelican(r) cases), or inserts for Pelican cases (a 1615 fits just right into a sedan's trunk).

Long time ago when mobile forensics was in its infancy they were given out as swag.

The #1 problem is of course that if not in airplane mode, some not too smart phones keep increasing the power to the radio (smarter ones do this for a few minutes then power down radio, then cycle up again). Guess what happens with a bunch of juice dumped into electronics in a locked case inside a trunk in a hot car, with half dozen other phones doing the same thing (because it is never a single burner phone).

In a pinch, 3 to 5 layers of aluminum foil, stainless steel cocktail shaker, ammo can, or combination thereof works.

edit: Yes, if we are discussing this with physicists, RF cannot be blocked, it can be attenuated. The strength of the RF signal is reduced as it travels through different materials, and in theory it can never be completely eliminated. In practicality, the signal only needs to be attenuated until it cannot be picked up sufficiently even when very close by a receiver.

WaitWaitWha··on We can’t send mail farther than 500 miles (2002)
There used to be an option called "Cat guard" built into several historical (BBS ) software. On (and cannot remember the name) one software that did synchronization with other networks (e.g., FIDO, uunet) it was considered a major feature.

Primary purpose was to lock the keyboard so when the cat walked all over it, it would not disconnect.

WaitWaitWha··on Oneplus phone update introduces hardware anti-rollback
Is this for just one or several OnePlus models?

If so, is this 'fuse' per-planned in the hardware? My understanding is cell phones take 12 to 24 months from design to market. so, initial deployment of the model where this OS can trigger the 'fuse' less one year is how far back the company decided to be ready to do this?

WaitWaitWha··on Microsoft gave FBI set of BitLocker encryption keys to unlock suspects' laptops
> ... The hackers would still need physical access to the hard drives to use the stolen recovery keys.

This is incorrect. A full disk image can easily obtained remotely, then mounted wherever the hacking is located. The host machine will happily ask for the Bitlocker key and make the data available.

This is a standard process for remote forensic image collection and can be accomplished surreptitiously with COTS.

WaitWaitWha··on Google to pay $8.25mm to settle lawsuit alleging children's privacy violations
https://www.wallstreetmojo.com/mm-million/ https://capitalizemytitle.com/how-to-abbreviate-million/

> the Roman numeral system, where 'MM' (M multiplied by M) indicates a million, and is often found in formal financial documents.

WaitWaitWha··on Fighting back against biometric surveillance at Wegmans
Unfortunatelly this is incorrect. Do not be fooled by the decoys. They do it to customers, employees, and contractors.

Walmart was sued [0] for exactly what Wegmans just started in 2022,

Walmart is sued [1] by delivery drivers,

and, so on.

[0] https://topclassactions.com/lawsuit-settlements/privacy/bipa...

[1] https://news.bloomberglaw.com/privacy-and-data-security/walm...

[2] https://caseguard.com/articles/retail-corporation-walmart-fa...

WaitWaitWha··on Open Source Hardware Certifications by Open Source Hardware Association (Oshwa)
Although this article is about what new hardware got certified last month, I have never heard of this certification and think might have some potential.

According to OSHWA[0], they have 3,197 things certified. A bit squirly to get to, but here is their Open Source HW definition for the certification: https://oshwa.org/resources/open-source-hardware-definition/

[0] https://oshwa.org/

WaitWaitWha··on Why German Strings Are Everywhere?
> To solve these problems, Umbra, the research predecessor of CedarDB, invented what Andy Pavlo now affectionately (we assume ;)) calls “German-style strings”.

This is how Borland Turbo Pascal stored strings as far back as the first version in mid-80s.

Length followed by the string.

WaitWaitWha··on Try to take my position: The best promotion advice I ever got
True, that can happen, but that feels toxic. A threat by the employee will always breed some negative feelings towards the employee, even if it is subconscious.

I am just writing about relatively sane, stable organization where the employer-employee relationship is stable and acceptable.

WaitWaitWha··on Try to take my position: The best promotion advice I ever got
My experience at several large companies I worked for, the promotion comes because the activities are already at the new, higher level. i.e., working at SVP/level 7 when officially at VP/level 6 for a period when the promotion is offered.

Good or bad, this is how the industry I work in promotes.

I think the best approach is to take on extra, above position responsibilities, accountabilities after discussion with superior, after agreeing in writing that this is part of a path to promotion.

WaitWaitWha··on Weary of Data Brokers? California Gov Offers One-Stop Opt Out for 500 Services
The actual site is a CA government site.

https://consumer.drop.privacy.ca.gov/

Have to be California resident and

> you will be prompted to provide personal information, such as name, date of birth, and email address

The thing is, i am cynical. I love the idea.

But, I cannot forget DNT HTTP, the `tracking_opt_out = true` cookie, California Do Not Call Registry abuse in the mid-2000s, Apple iOS "Limit Ad Tracking", and on and on.

WaitWaitWha··on NYC Mayoral Inauguration bans Raspberry Pi and Flipper Zero alongside explosives
https://www.bleepingcomputer.com/news/security/nyc-mayoral-i...

>"How do you say that you have no idea without saying it?"

>Modern laptops can run penetration-testing Linux distributions such as Kali Linux, and smartphones can run advanced security toolsets like Kali NetHunter.

>Event organizers have not provided any details explaining why the Flipper Zero and Raspberry Pi were singled out.

← PreviousPage 3 of 34Next →