Electronics in Shenzhen, China be like: Ready-made FPGA development boards that plug straight into a PCIe slot to access host memory via DMA. What do they do? Stealing crypto keys for espionage, as featured on Black Hat? No, it's for the kids to cheat in video games like PUBG. #electronics
I got linux booting in vanilla minecraft using a datapack https://github.com/Snektron/linux-in-minecraft
What the fuck is SBAT, why did it break your dual-boot setup, it's not strictly my fault but if you need a scapegoat whatever: https://www.dreamwidth.org/captcha?returnto=https://mjg59.dreamwidth.org/70348.html
fun Linux fact:
There are at least two places in the Linux kernel where performance-sensitive code paths use a, uh, retrospective approach to memory safety, where you do the memory read first (and suppress the occasional kernel page fault) and worry about making sure it was memory-safe later.
One of the two is in the SLUB allocator's lockless allocation fastpath: https://elixir.bootlin.com/linux/v6.10.4/source/mm/slub.c#L544
It (1) first loads the pointer to the current top freelist element, then (2) reads the next freelist pointer out of that element, and (3) does a double-wide atomic compare-exchange to check if it raced and replace the freelist head. The read in step (2) can return garbage or fault if someone else concurrently modified the freelist (basically it can be UAF), but in that case step (3) that uses the result of the read is guaranteed to fail, so it's fine.
The other one is in the Virtual File System layer, used for printing pathnames (like for getcwd()
):
https://elixir.bootlin.com/linux/v6.10.4/source/fs/d_path.c#L50
As the comment there explains:
* The source of the prepend data can be an optimistic load
* of a dentry name and length. And because we don't hold any
* locks, the length and the pointer to the name may not be
* in sync if a concurrent rename happens, and the kernel
* copy might fault as a result.
*
* The end result will correct itself when we check the
* rename sequence count, but we need to be able to handle
* the fault gracefully.
So this one can race so that OOB memory is copied into the path buffer, but the kernel will afterwards notice that the "how many rename operations have happened" counter has gone up (or that the "we are currently in the middle of a rename" bit is set), discard the result, and try again.
The new screen capture Wayland protocol has been merged! It will unlock neat features such as window capture and better performance. Many thanks to @andriyngvason for pushing this forward!
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/124
don't let anyone ruin your day
it's YOUR day!
ruin it yourself by attempting a gentoo install
The X Window System is 40, archaic as heck, and still relevant
One astrophysics professor's memories of writing X11 code in the 1980s.
Our first price for a laptop with the Snapdragon Elite X just leaked:
14" Galaxy Book Edge: 1800 EUR with 16+512GB.
The same laptop with Intel Core Ultra apparently starts at 1899 and a similar memory spec 13.6" MacBook Air goes for 1749 (though you have the option for lower specs).
A bit disappointed tbh. Galaxy Books always launch weirdly expensive & I guess this might include touch + OLED + pen, but Windows really needs to at least match prices IMO
An engineer's guide to #Linux #Kernel upgrades – slides and recording of this @fosdem talk from Cloudflare employee Ignat Korchagin are now online:
#Fosdem-Page with abstract: https://fosdem.org/2024/schedule/event/fosdem-2024-3370-an-engineer-s-guide-to-linux-kernel-upgrades/
Video: https://ftp.osuosl.org/pub/fosdem/2024/k1105/fosdem-2024-3370-an-engineer-s-guide-to-linux-kernel-upgrades.av1.webm (AV1/opus) and https://ftp.osuosl.org/pub/fosdem/2024/k1105/fosdem-2024-3370-an-engineer-s-guide-to-linux-kernel-upgrades.mp4 (mp4) #LinuxKernel
Good news for those wanting to build out a custom Arm64 desktop:
ASRock Rack has a mobo+Ampere CPU combo that restocks every few weeks on Newegg: https://newegg.com/p/N82E16813140134
And Noctua's prototyping two new LGA 4926 coolers (pictured: NH-D9 AMP-4926 4U)
I am building out my 45Drives HL15 server with this board and will hopefully have a video up on it soon!
Full review will take longer though—need to test out software, get an idea of power draw, test performance/networking... but so far so good!
Dumping the ROM of a GBA game by crashing it - YouTube
https://www.youtube.com/watch?v=0-7PSmYYHF0
GBAのゲームクラッシュさせるとメモリを音として出力するからROMをコピーできるの意味分からなさすぎる
GitHub feels extremely down right now. Can't even ping any part of it 👀 (image from https://xkcd.com/303/)
I'm so happy to announce that the first NPU driver has been accepted in Mesa.
Have written a bigger update to celebrate this and properly thank everybody who has been supporting me in this amazing trip so far.
https://blog.tomeuvizoso.net/2024/01/etnaviv-npu-update-15-we-are-upstream.html
Samsung、NVMe SSD「990 EVO」発表、前モデルから最大43%高速化 | マイナビニュース https://news.mynavi.jp/article/20240124-2868988/