Hacker GitHub

← All repos

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

Mentions per year 947 mentions · busiest year 2022 (104)
20082026
  1. …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
  2. …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…
  3. …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
  4. …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...
  5. …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…
  6. …DE, and not necessarily be forced to configure that for every single application individually. [0]: https://github.com/torvalds/linux/blob/4a0fc73da97efd23a383c...
  7. …so surely more could. [0]: https://wayland.app/protocols/wayland#wl_pointer:event:butto... [1]: https://github.com/torvalds/linux/blob/4a0fc73da97efd23a383c...
  8. …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
  9. …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
  10. …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
  11. …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
  12. 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
  13. …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…
  14. The kernel is certainly mirrored on GitHub[0], but it's not the centre of development. [0] - https://github.com/torvalds/linux
  15. …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...
  16. …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 .
  17. "Attempted to kill init!" https://github.com/torvalds/linux/blob/0b5547c51827e053cc754...
  18. …you mean by "TFA"? The fixed Renoir microcode should have revision >= 0x0860010b as per the kernel: https://github.com/torvalds/linux/commit/522b1d69219d8f08317...
    comment by johnp_ · 2023-07-24 · in Zenbleed
  19. More details: `good_revs` as per the kernel: https://github.com/torvalds/linux/commit/522b1d69219d8f08317... Currently published revs ("Patch") (git HEAD): https://git.kernel.org/pub/scm/linux/kernel/git/firmware/lin... As of this writing,…
    comment by dTP90pN · 2023-07-24 · in Zenbleed
  20. …[1] https://en.wikichip.org/wiki/amd/cpuid#Family_23_.2817h.29 [2] https://github.com/torvalds/linux/commit/522b1d69219d8f08317...
    comment by dTP90pN · 2023-07-24 · in Zenbleed
  21. …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…
  22. > 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,…
  23. …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…
  24. …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
  25. …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
  26. 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
  27. ~64 KiB of stack ought to be enough for anybody. https://github.com/torvalds/linux/blob/84df9525b0c27f3ebc2eb...
  28. …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
  29. https://github.com/torvalds/linux/commit/8e86f0b409a44193f15... was the commit that fixed this IIRC
  30. …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:…
  31. 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…
  32. …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/
  33. …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...
  34. …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
  35. …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
  36. …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
  37. >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/
  38. …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
  39. That depends on your architecture, on x86_64 it's generated from this file: https://github.com/torvalds/linux/blob/master/arch/x86/entry...
  40. …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
  41. …- 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…
  42. And their patch was indeed merged: https://github.com/torvalds/linux/commit/027ac58e3c757277dd6...
  43. 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…
  44. 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”
  45. …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
  46. 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
  47. …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
  48. …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...
  49. …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
  50. …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...