frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

DRM Panic QR code generator

https://rust-for-linux.com/drm-panic-qr-code-generator
23•weinzierl•4h ago

Comments

danhor•1h ago
It seems like this is already deployed in Arch, as I've hit it yesterday. I was surprised at first, but it was quite useful.
homebrewer•1h ago
It's easy to check (unless the kernel was compiled without config in procfs, which it probably wasn't):

  $ zgrep CONFIG_DRM_PANIC_SCREEN_QR_CODE /proc/config.gz
  CONFIG_DRM_PANIC_SCREEN_QR_CODE=y
greatgib•1h ago
Fun, and nice addition, but again another good example of let's sneak some rust in critical parts of the kernel so that rust will become mandatory.

I would not really have noticed if there wasn't this section about why rust, where arguments looks phony and clearly made up afterward to justify a decision that was already taken:

   This project was written in rust, because memory safety is critical in a panic handler.

   For this particular case, I found the Rust code to be cleaner, and easier to read.
rcxdude•1h ago
I suspect it's more of a 'this would be handy to have, and I would prefer to use rust' as opposed to motivated by making the language harder to do without in the kernel. Certainly this kind of thing I would find rust much nicer for than C.

(I would agree the first argument is kinda wavy. If anything the panic handler has a fairly unique relationship with memory safety: it's likely to be executing in an environment where that's already gone out the window and it needs to try to assume as little as possible about what might or might not be correct that its reading from and writing to, while also its own memory safety is perhaps less critical because the system is already crashing, it's just got to get the info out before everything completely stops. Though that doesn't make it immune from security concerns. A code execution vulnerability in the handler means any panic could turn into a worse problem)

jeroenhd•1h ago
The first version of the PR is a little more honest: https://patchwork.freedesktop.org/series/135886/

> There is no particular reason to do it in rust, I just wanted to learn rust, and see if it can work in the kernel.

Which I think is fairer. Good on her for trying to stay on top of recent developments. With Linux basically supporting Rust now so it's a valid choice, especially for a new component. Plus, it's not like this is an important features, the anti-Rust people can live perfectly fine without QR code crash dumps like they have for decades now.

I think doing this in C is an unnecessary risk (you really don't need all that many raw pointer interactions and shared struct ownership) but the security and stability of this component hardly matters. The kernel is already dead because of a bug or a hardware failure anyway, this is just making the catastrophic failure of the rest of the system a bit prettier.

meindnoch•12m ago
>Good on her for trying

"Pronouns: He/Him" https://gitlab.com/kdj0c

ChocolateGod•17m ago
What's the need for memory safety if the kernel is going to stop executing and memory will be wiped before any further execution is done.
Am4TIfIsER0ppos•1h ago
How am I supposed to use a QR code when the only thing that I have to decode it is currently panicking? If I am supposed to draw it I hope it is only a few bits. A traditional BSOD with codes and registers would be easier to copy.
bauruine•56m ago
It may isn't useful for you but a huge majority has a phone they can use for this task.
elmigranto•29m ago
What if your phone’s kernel panics? :)
tialaramex•17m ago
Did you know other people have phones too?
ChocolateGod•15m ago
[delayed]
andrelaszlo•15m ago
Bring out the crayons and some graph paper!

Show HN:FounderMatch – Lightweight dev/sales cofounder matching tool

https://foundermatch.mancerai.com/
1•Banquo•3m ago•0 comments

Windows 11 overtakes Windows 10

https://www.theregister.com/2025/07/04/windows_11_market_share/
1•olyellybelly•4m ago•0 comments

Dear Social Media

https://github.com/avivkeller/dear-social-media
1•avivkeller•6m ago•0 comments

Over 50% of Girls Failed Nepal's 10th Grade Exam in 2024–25

1•firstgenwriter•7m ago•0 comments

AI Openness Update: From Agentic to Public Good in 2025 [pdf]

https://openuk.uk/wp-content/uploads/2025/07/OpenUK-AI-Openness-update-report.pdf
1•mooreds•8m ago•0 comments

Pir Sadardin

https://en.wikipedia.org/wiki/Pir_Sadardin
1•mooreds•9m ago•0 comments

Show HN: Taurin. Local-First Email Client with Personal AI Agent

https://www.taurin.io/
1•ashbrother•9m ago•0 comments

Effective TikTok Content Strategies for Entrepreneurs

1•emmanol•13m ago•0 comments

Cowboy: An Agile Programming Methodology for a Solo Programmer (2006)

https://scholarscompass.vcu.edu/cgi/viewcontent.cgi?article=1740&context=etd
1•mooreds•13m ago•0 comments

Is an Intel N100 or N150 a better value than a Raspberry Pi?

https://www.jeffgeerling.com/blog/2025/intel-n100-better-value-raspberry-pi
2•transpute•15m ago•0 comments

My open source project was stolen and relicensed by a YC company

https://www.reddit.com/r/opensource/s/9fB5G4rhff
4•js4ever•15m ago•0 comments

Demicrosofted and simplified UEFI Secure Boot (RC1 demo) [video]

https://www.youtube.com/watch?v=sCohCVvcp7E
6•pietrushnic•19m ago•0 comments

Microsoft suspends 3k Outlook and Hotmail accounts created by NK IT workers

https://fortune.com/2025/07/04/microsoft-suspends-accounts-north-korean-it-worker-conspiracy/
1•Bluestein•20m ago•0 comments

Show HN: BunkerWeb – the open-source and cloud-native WAF

https://docs.bunkerweb.io/latest/
2•bnkty•27m ago•0 comments

Varoufakis: In age of failing economies and populist backlash we need Marxism

https://www.theguardian.com/commentisfree/2025/jul/03/marxism-economy-populism-tech-karl-marx
3•Anon84•34m ago•0 comments

Show HN: Fast Thermodynamic Calculations in Python

https://dlr-institute-of-future-fuels.github.io/gaspype/
5•Saloc•35m ago•0 comments

Must-install update for the Pixel 6a aims to tackle overheating issues

https://www.androidcentral.com/phones/google-pixel/this-must-install-update-for-the-pixel-6a-aims-to-tackle-overheating-issues
1•Bluestein•37m ago•0 comments

Type safe web stack with Rust and TypeScript

https://github.com/beeeeep54/rust-typescript
2•wreedtyt•40m ago•0 comments

Programming Parallel Computers

https://ppc.cs.aalto.fi/
2•fanf2•41m ago•0 comments

Minister demands overhaul of UK's leading AI institute

https://www.theguardian.com/technology/2025/jul/04/minister-demands-overhaul-of-uks-leading-ai-institute-alan-turing
2•chrisjj•41m ago•0 comments

How to render a mesh gradient using RBF interpolation

https://www.notion.so/Smooth-Mesh-Gradients-with-RBF-Interpolation-1ba8eeb5a3e68046b34cf997fe67d3c1?source=copy_link
5•olpyhn•44m ago•2 comments

Laid Off Workers Should Use AI to 'Reduce the Emotional Load of Job Loss'

https://aftermath.site/xbox-microsoft-layoffs-ai-prompt-chatgpt-matt
4•debo_•45m ago•1 comments

How far would a tanker trip go if it used all the fuel for itself

https://old.reddit.com/r/theydidthemath/s/b1MQCAhX51
2•elsewhen•46m ago•0 comments

Show HN: Codzly – Code to image converter. Free, no login

https://forgetoolz.com/codzly
1•ShadowUnknown•46m ago•0 comments

The Week in Musk: Trump Threatens to Deport Elon

https://www.muskwatch.com/p/the-week-in-musk-trump-threatens
1•chmaynard•47m ago•0 comments

Show HN: AI that make your own Home design plans&blueprints for free

http://dome.moscow
1•bourdine•47m ago•0 comments

Cultural Barriers to BRICS Collaboration vs. Western Alliances

https://pilledtexts.com/brics-is-a-nothing-burger/
3•Fred34•47m ago•0 comments

14-hour+ global blackout at Ingram Micro halts customer orders

https://www.theregister.com/2025/07/04/ingram_micro_technical_difficulties/
2•rntn•48m ago•0 comments

Ask HN: Which of the software you use feels slow and sluggish?

1•stefanopetrilli•49m ago•0 comments

How Smell Guides Our Inner World

https://www.quantamagazine.org/how-smell-guides-our-inner-world-20250703/
1•pseudolus•49m ago•0 comments