torvalds/linux
View on GitHub ↗ ★ 254,124 C
Linux kernel source tree
947 mentions on Hacker News by 745 people: 99 stories, 848 comments · first 2010-07-15 · latest 2026-10-29
20082026
-
…creation of hardlinks to files you don't own. It's on by default on all machines I checked though. https://github.com/torvalds/linux/commit/800179c9b8a1e796e44... Without this, a whole lot of attacks are possible with hardlinks.
comment by remram · 2023-10-13 · in The Quest to Secure chown and symlinks -
…lspci is a realtek express card reader whose driver is copyrighted by Realtek Semiconductor Corp: https://github.com/torvalds/linux/blob/master/drivers/misc/c... Have Apple engineers written a single line of code for linux drivers…
comment by prmoustache · 2023-09-19 · in Linux on a MacBook Pro (M1 Pro): How Good Is Asahi Now? -
…When loading a shared library, you also dispatch to a binfmt via the `uselib`[3] syscall. [0] https://github.com/torvalds/linux/blob/9fdfb15a3dbf818e06be5... [1] https://github.com/torvalds/linux/blob/9fdfb15a3dbf818e06be5... [2]…
comment by emidln · 2023-09-15 · in How does Linux start a process -
…from 6.1 to now. Many of those commits are laying the groundwork for the next few years. [0] https://github.com/torvalds/linux/compare/master...Rust-for-... [1] https://lpc.events/event/16/contributions/1180/attachments/1...
comment by nevi-me · 2023-09-12 · in Ask HN: How is Rust used in the Linux kernel today? -
…between vsock and UDS. [1] In recent kernel versions, sockmap also has vsock translation: < https://github.com/torvalds/linux/commit/5a8c8b72f65f6b80b52... > This allows for a sort of UDS "transparency" between guest and host. When the…
comment by coppsilgold · 2023-09-11 · in Unix Domain Sockets vs Loopback TCP Sockets (2014) -
…DE, and not necessarily be forced to configure that for every single application individually. [0]: https://github.com/torvalds/linux/blob/4a0fc73da97efd23a383c...
comment by dzaima · 2023-09-07 · in Wayland Isn't Going to Save the Linux Desktop (2022) -
…so surely more could. [0]: https://wayland.app/protocols/wayland#wl_pointer:event:butto... [1]: https://github.com/torvalds/linux/blob/4a0fc73da97efd23a383c...
comment by dzaima · 2023-09-07 · in Wayland Isn't Going to Save the Linux Desktop (2022) -
…checks. I must point out the corresponding comment in loadavg.c which is required reading: https://github.com/torvalds/linux/blob/b97d64c722598ffed42ec... The parent's concept of reporting "hotness" is really powerful. It lets a central…
comment by xyzzy_plugh · 2023-08-31 · in Random Load Balancing Is Unevenly Distributed -
…contains lots of code to work around a myriad of EDID quirks (and loads of other HW quirks), too: https://github.com/torvalds/linux/blob/master/drivers/gpu/dr... There certainly isn't any big philosophical point to make here, Linux doesn't…
comment by sho_hn · 2023-08-30 · in Hacking the LG Monitor's EDID -
…had this procedure (to load EDID overrides from /lib/firmware) since forever. Introduced in 2012 by https://github.com/torvalds/linux/commit/da0df92b57311aa1b26... , current doc is in https://github.com/torvalds/linux/blob/872459663c52f5e8a…
comment by Arnavion · 2023-08-30 · in Hacking the LG Monitor's EDID -
…plus syscall exception? This sounds unbelievable. When one checks the wording of the "exception", https://github.com/torvalds/linux/blob/master/LICENSES/excep... it says > NOTE! This copyright does not cover user programs that use kernel…
comment by nextaccountic · 2023-08-30 · in Making life (even) harder for proprietary modules -
It's quite trivial actually. It's just `make deb-pkg`. It may complain about a cert. https://github.com/torvalds/linux/blob/master/scripts/packag...
comment by mise_en_place · 2023-08-25 · in Stable Linux mainline builds for Ubuntu -
…on those, but just disables it if native unaligned load/store is configured - last paragraph of https://github.com/torvalds/linux/blob/706a741595047797872e6... At present there's almost no reliance on this UB by compilers on something that…
comment by dzaima · 2023-08-20 · in GCC always assumes aligned pointer accesses (2020) -
The kernel is certainly mirrored on GitHub[0], but it's not the centre of development. [0] - https://github.com/torvalds/linux
comment by mr_sturd · 2023-08-16 · in Ask HN: Why Linux development happens on mailing list instead of Git? -
…lines, no signed-off line, etc. Linus simply refuses to let those kind of commits into the Kernel. https://github.com/torvalds/linux/pull/17#issuecomment-56546...
comment by dikei · 2023-08-16 · in Ask HN: Why Linux development happens on mailing list instead of Git? -
…every single commit to the Linux kernel has been made by a Github user, but there is a mirror at https://github.com/torvalds/linux .
comment by rectang · 2023-08-14 · in Today I realized I now trust Microsoft more than Google. What is happening? -
"Attempted to kill init!" https://github.com/torvalds/linux/blob/0b5547c51827e053cc754...
comment by rzzzt · 2023-07-25 · in Got called to a professor’s office after a complaint his SPARC4 was running slow -
…the call site of the "objectionable" function and the site at which the issue gets detected: < https://github.com/torvalds/linux/blob/master/fs/file.c#L174... >. At both ends, there's a comment that says "Hey, it's faster to do this check…
comment by simoncion · 2023-07-21 · in Good code is like a love letter to the next developer who will maintain it -
> there is no such thing as good code definitely not true. this is good code: https://github.com/torvalds/linux/blob/master/fs/file.c this is good code: https://github.com/golang/go/blob/master/src/strconv/atoc.go its formatted, commented,…
comment by 38 · 2023-07-20 · in Good code is like a love letter to the next developer who will maintain it -
…mainline/upstream in linux. This is surprisingly hard to get a good citation for, but see ex. https://github.com/torvalds/linux/blob/master/arch/arm64/boo... which is device tree stuff for... honestly the code names confuse me, but I think…
comment by yjftsjthsd-h · 2023-07-20 · in ChromiumOS Developer Guide, Programming languages and style -
…commits, so apparently Linux is within an order of magnitude of bringing GitHub to it's knees? [0] https://github.com/torvalds/linux
comment by BeefySwain · 2023-07-02 · in Disabled at 22 million commits -
…Regurgitation isn't a particularly rare thing with LLMs, most cases just aren't this obvious. [1] https://github.com/torvalds/linux/blob/c6b0271053e7a5ae57511...
comment by AlotOfReading · 2023-06-29 · in Gitlab’s AI-assisted code suggestions -
https://github.com/torvalds/linux seems fine w/ the modules & config files sharing the top level folder. Sorting directories to the top helps.
comment by benatkin · 2023-06-26 · in The .meta directory: let's tidy things up -
~64 KiB of stack ought to be enough for anybody. https://github.com/torvalds/linux/blob/84df9525b0c27f3ebc2eb...
comment by semiquaver · 2023-06-24 · in A large crash spike affecting Firefox users on Linux -
…look like they only accept a branch or commit OID but actually accept a revision specifier. So e.g https://github.com/torvalds/linux/tree/master@{yesterday} lets you peek into the reflog for the master branch on torvalds/linux. [1] man 7…
comment by semiquaver · 2023-06-23 · in About GitHub’s use of your data -
https://github.com/torvalds/linux/commit/8e86f0b409a44193f15... was the commit that fixed this IIRC
comment by saagarjha · 2023-06-19 · in A single line of code made a 24-core server slower than a laptop (2021) -
…still waits for enough entropy to collect in the pool before providing more data for consumption. https://github.com/torvalds/linux/blob/48b1320a674e1ff5de2fa... The "wait_for_random_bytes" function is still there:…
comment by cbsmith · 2023-05-31 · in Random Number Generator Recommendations for Applications -
I agree. You can also go to to github.com/torvalds/linux click on code -> Download zip and have the Linux Kernel. I’m not sure what having ChatGPT write it for you would give you. Maybe 10,000 hours of frustration after you realize how far…
comment by svaha1728 · 2023-05-30 · in How much would it have cost if GPT-4 had written your code -
…the CDN access to the docs and kernels. [2] The latest kernel is in the v6.x directory. [1] - https://github.com/torvalds/linux [2] - https://cdn.kernel.org/pub/linux/kernel/
comment by LinuxBender · 2023-05-22 · in Ask HN: I'd like to start reading the Linux source code. Where should I start? -
…uses a modified variant of alloc, so not only can it use sort_unstable, it also has access to sort https://github.com/torvalds/linux/blob/2d1bcbc6cd703e64caf8d...
comment by steveklabnik · 2023-05-19 · in FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITs -
…queue burn down when you have lots of pending writes. see: `LESS=+/meminfo man proc` or https://github.com/torvalds/linux/blob/master/Documentation/... for more info
comment by stack_underflow · 2023-05-19 · in Linux tool to show progress for cp, mv, dd -
…the remainder of dst is filled with ‘\0’ characters. and the fallback kernel implementation at https://github.com/torvalds/linux/blob/master/lib/string.c#L... does that. So 1) it does not stop when it sees a NUL - it keeps writing NULs…
comment by eesmith · 2023-05-12 · in Kernel String Overcopying -
…such an instance? The ZFS hair shirt is a self imposed by semi-religious Linux wackadoos. [0]: See, https://github.com/torvalds/linux/blob/master/LICENSES/excep...
comment by mustache_kimono · 2023-05-11 · in Bcachefs – A New COW Filesystem -
>Prove me wrong. Show me in their source code of the OS you're running that they don't do this. https://github.com/torvalds/linux https://gitlab.gnome.org/World/Phosh/phosh/
comment by Arnavion · 2023-04-18 · in PSA: Upgrade your LUKS key derivation function -
…seems to be some special mechanisms for x86, x86_64 and x86_32. The asm include for x86 is here: https://github.com/torvalds/linux/blob/master/arch/x86/inclu... It includes either unistd_32.h or unistd_64.h. Those headers don't seem to be…
comment by matheusmoreira · 2023-04-15 · in Searchable Linux Syscall Table for x86 and x86_64 -
That depends on your architecture, on x86_64 it's generated from this file: https://github.com/torvalds/linux/blob/master/arch/x86/entry...
comment by sickall · 2023-04-14 · in Searchable Linux Syscall Table for x86 and x86_64 -
…many times, thanks. The header file with the definitions that get exported to user space is here: https://github.com/torvalds/linux/blob/master/include/uapi/a...
comment by matheusmoreira · 2023-04-14 · in Searchable Linux Syscall Table for x86 and x86_64 -
…- see https://lwn.net/Articles/885729/ There's a whole heap of reasons a packet can be dropped: https://github.com/torvalds/linux/blob/76f598ba7d8e2bfb4855b... In any case, this makes it less painful than going back to read the kernel…
comment by bazzargh · 2023-04-05 · in Packet, where are you? – eBPF-based Linux kernel networking debugger -
And their patch was indeed merged: https://github.com/torvalds/linux/commit/027ac58e3c757277dd6...
comment by Arnavion · 2023-03-29 · in The strange case of ICMP Type 69 on Linux (2015) -
This was the patch that removed it: https://github.com/torvalds/linux/commit/f06021a18fcf8d8a1e7... But this commit message is burying the lede a bit. There are two problems here: 1) you can revert the change, but a large part of the…
comment by stefan_ · 2023-03-17 · in Linux Intel WiFi driver broken with 5&6GHz bands for longer than three years -
The Linux kernel still uses centralized exits in places, with goto to do cleanup. https://github.com/torvalds/linux/blob/master/Documentation/...
comment by deckard1 · 2023-03-17 · in My thoughts on “bad code” -
…notwithstanding, and there appears to be at least some support for this in the Linux kernel, https://github.com/torvalds/linux/blob/2eb29d59ddf02e39774ab...
comment by jasomill · 2023-03-03 · in FreeBSD Home Audio Studio -
Really stupid topic, but arguably this plays second fiddle to the kernel's main method: https://github.com/torvalds/linux/blob/v4.2/init/main.c#L497
comment by AA-BA-94-2A-56 · 2023-03-01 · in The single most powerful line in programming -
…target all platforms that the kernel supports. 1. https://docs.kernel.org/rust/index.html 2. https://github.com/torvalds/linux/tree/v6.2/rust
comment by jacoblambda · 2023-02-21 · in Linux 6.2: The first mainstream Linux kernel for Apple M1 chips arrives -
…but it isn't any worse. I can see that it's been supported for a long time in mainline Linux: https://github.com/torvalds/linux/blob/master/drivers/hid/hi...
comment by kccqzy · 2023-02-21 · in Linux 6.2: The first mainstream Linux kernel for Apple M1 chips arrives -
…profiling powered by eBPF technology." BPF stack traces are gathered using frame pointers: https://github.com/torvalds/linux/blob/master/kernel/bpf/sta... https://github.com/torvalds/linux/blob/master/arch/x86/event...
comment by irogers · 2023-02-15 · in Frame pointers vs. DWARF – my verdict -
…the drivers we contributed to the effort :) Their display controller driver was fun to figure out. https://github.com/torvalds/linux/tree/master/drivers/gpu/dr...
comment by Jasper_ · 2023-02-14 · in Turning a TV set-top box into a Linux computer (2022)