- https://developer.apple.com/forums/thread/678644?page=5 - " Big Sur panic when connect/disconnect usb-c dock "
- https://forums.macrumors.com/threads/macbook-air-crashing-wh... - "MacBook air crashing when plugging a USB device"
- https://answers.microsoft.com/en-us/windows/forum/all/window... - " Windows freezing when I plug in a USB device"
Try searching for "$operating-system crash when connect usb" for various OSes and distributions and you'll see it's a problem everywhere, not just Linux.
With Linux you could blacklist lots of modules since forever easily, forbidding to load them.
Try that with Windows or MacOS.
Go buy some cheap WiFi adapter. Noth Atheros. Ralink, better. Often your favourite OS will panic/BSOD too.
And it's totally ok that those (any) "high-quality" driver can crash the system?
>Linux uses modules, some other BSD not.
Has nothing todo with modules, if it's loaded it's in kernel-space. Not others...OpenBSD is the ONE.
BTW: For those butt-hurt ones (that i blatantly attacked poor linux), it not just about linux but should we no create operating-systems where this is not possible? Just asking...
So plugging in a brand-name joystick caused a kernel panic. Gross.
Edit: Sorry, I take it back: That data is weird, but not malformed; the hardware isn't out of line and I think the driver is fully at fault.
I think the only truly secure OS for this would be Hurd or SeL4+Genode.
the controller seems refusing to boot
that's when I realized that my idea of what is a controller is completely obsoleteThat is, someone who started playing videogames in the SMS/NES days might have formed a mental model of the controller being mostly a passive device, with at most a few active chips to multiplex the pins in the interface, to allow for more buttons than there are pins.
Ah, I suspect this was a firmware update that got borked somehow. Maybe the cable was disconnected before the update could complete.
A possible explanation can be found on part 4 of this post:
> [...] if the checksum is not valid, there is a loop that clears out the flash [...] I suspect (but haven’t tried yet) that if the battery of the controller dies while it’s writing on the flash, at the next startup the checksum does not match and the DS4 gets totally messed up like this one.
That is, according to that theory, it was trying to write something to the flash (perhaps while pairing?), and part of the write failed because the battery died. On the next boot, it detected a wrong checksum, and erased everything.
I would generally critique the use of a checksum on this config data without a backup or ping-pong writing system specifically because in the case of a 1 bit failure on something critical like cal or configuration data, really you want the data anyway and just hope that the 1 bit wasn't that important and also be ok if the bit flips back again on the next go around.
I really admire people, who contribute their random findings to improve an open source software on their own time and resources. This is so wholesome.