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
-
…humans don't in cases where complex instructions are beneficial, see Linux kernel using rep movsb ( https://github.com/torvalds/linux/blob/5189dafa4cf950e675f02 ...), and Arm introducing similar complex instructions (…
comment by clamchowder · 2024-08-11 · in AMD's Strix Point: Zen 5 Hits Mobile -
…library supports reading the flags from a file, in case your appetite for flags is insatiable. https://github.com/torvalds/linux/commit/b6a2fea39318e43fee8...
comment by jeffbee · 2024-07-29 · in Chromium has over 1600 command-line switches -
Thanks for the pointers!! https://www.man7.org/linux/man-pages/man2/PR_SET_MM_EXE_FILE... https://github.com/torvalds/linux/blob/master/kernel/fork.c#... /* Forbid mm->exe_file change if old file still mapped. */ I suppose before doing…
comment by matheusmoreira · 2024-07-28 · in Hiding in plain sight: Modifying process names in Unix-like systems -
Yes, but it's hard to find in the kernel: https://github.com/torvalds/linux/tree/5437f30d3458ad36e83ab...
comment by commandersaki · 2024-07-28 · in The Linux Kernel Module Programming Guide -
…chooses to utilize the problem commit. The commit where the kernel bug was introduced is seen at https://github.com/torvalds/linux/commit/fde2a3882bd07876c14... and the commit that resolves the issue is seen at…
comment by nicklad · 2024-07-22 · in CrowdStrike Update: Windows Bluescreen and Boot Loops -
…Isovalent, Google) and academia (e.g., Rutgers University, University of Washington). [0] links to https://github.com/torvalds/linux/blob/master/kernel/bpf/ver... which has this interesting comment at the top: /* bpf_check() is a static…
comment by shrx · 2024-07-22 · in No More Blue Fridays -
…via the linux/unistd.h header which in turn includes the appropriate asm-generic/ and asm/ headers. https://github.com/torvalds/linux/blob/master/include/uapi/a... https://github.com/torvalds/linux/blob/master/tools/arch/x86...…
comment by matheusmoreira · 2024-07-21 · in A Linux kernel syscall implementation tracker -
…standards. But by the standards of historical mainframe/minicomputer filesystems, less so. [0] https://github.com/torvalds/linux/blob/v6.10/arch/s390/inclu... [1] https://github.com/torvalds/linux/blob/v6.10/block/partition...
comment by skissane · 2024-07-17 · in Inside an IBM/Motorola mainframe controller chip from 1981 -
…z/VM might be able to do so, by relying on the hypervisor’s card device driver. [0] Have a look at https://github.com/torvalds/linux/blob/v6.10/drivers/s390/ch... – if it encounters a real card reader/punch, it is hardcoded to return…
comment by skissane · 2024-07-16 · in Inside an IBM/Motorola mainframe controller chip from 1981 -
Line 593 https://github.com/torvalds/linux/blob/d67978318827d06f1c0fa...
comment by OuterVale · 2024-07-16 · in Call Flight Attendant Button in the Linux Kernal -
…That gets set in a termios structure that gets passed to the kernel's terminal subsystem via ioctl. https://github.com/torvalds/linux/blob/master/include/uapi/a... https://github.com/torvalds/linux/blob/master/include/uapi/a...…
comment by matheusmoreira · 2024-07-09 · in Entering text in the terminal is complicated -
…other than e.g. [0], but I was around (IRC, mailing lists) when some of these were created. [0]: https://github.com/torvalds/linux/blob/master/Documentation/...
comment by mh- · 2024-07-06 · in Background of Linux's "file-max" and "nr_open" limits on file descriptors (2021) -
…https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin... https://github.com/torvalds/linux/blob/master/include/uapi/l... https://github.com/torvalds/linux/blob/master/include/uapi/l... https://github.com/torvalds/li
comment by matheusmoreira · 2024-07-02 · in The Byte Order Fiasco (2021) -
…is voodoo from the Promise driver. Label this entire section "TODO: figure out why we do this" ``` https://github.com/torvalds/linux/blob/0450d2083be6bdcd18c95...
comment by abro · 2024-05-19 · in LLM-generated code must not be committed without prior written approval by core -
…not let you hold a reference to an individual thread, only to a process I think that's outdated: https://github.com/torvalds/linux/commit/64bef697d33b75fc06c...
comment by garaetjjte · 2024-05-16 · in What even is a pidfd anyway? -
This seems to be the relevant behaviour from ext4: https://github.com/torvalds/linux/blob/8c06da67d0bd3139a97f3...
comment by viraptor · 2024-05-15 · in SSD death, tricky read-only filesystems, and systemd magic? -
…by all 3 major BSDs. I'm fairly confident that Linux actually supports it through the ufs driver ( https://github.com/torvalds/linux/tree/master/fs/ufs ); whether the use of different names in different places makes it better or worse is…
comment by yjftsjthsd-h · 2024-04-30 · in The File Filesystem (2021) -
These are a bit easier to see what's going on: https://github.com/torvalds/linux/commit/d5cf50dafc9dd5faa1e... https://github.com/torvalds/linux/blob/d5cf50dafc9dd5faa1e61... Unfortunately Github doesn't have a way to render symbols for…
comment by infogulch · 2024-04-18 · in Linus Torvalds adds arbitrary tabs to kernel code -
…[2]: https://github.com/1fishe2fishe/EXODUS/blob/90f70386b8ac6bd0... [3]: https://github.com/torvalds/linux/blob/8f2c057754b25075aa3da...
comment by 1fishe2fishe · 2024-04-13 · in Show HN: Running TempleOS in user space without virtualization -
I remember the 3c590 ( https://github.com/torvalds/linux/blob/20cb38a7af88dc40095da... ) doing something awful too which required changing the PCI latency setting from 32 to 248 to avoid some catastrophic errors. It's amazing how much…
comment by tech2 · 2024-04-09 · in Show HN: I made a discrete logic network card -
…ps://wiki.gentoo.org/wiki/Gentoo_FreeBSD [1] https://docs.kernel.org/admin-guide/binfmt-misc.html [2] https://github.com/torvalds/linux/blob/master/fs/binfmt_elf....
comment by emidln · 2024-04-04 · in PfSense Software Embraces Change: A Strategic Migration to the Linux Kernel -
…because it's a valid use-case for user space to copy smaller portions of *hwrpb into user space. https://github.com/torvalds/linux/commit/21c5977a836e399fc71...
comment by 1udfx9cf8azi0 · 2024-04-03 · in Improvements to static analysis in GCC 14 -
…what happened, the merge commit looks nothing like what you could make from GitHub (merging a tag). https://github.com/torvalds/linux/commit/8d7e76846521440255a...
comment by remram · 2024-04-01 · in Linus Torvalds accepts a merge commit to the Linux kernel -
…is the Linux kernel. There is code under different licenses in there, but people don't even read https://github.com/torvalds/linux/blob/master/COPYING till the end ("In addition, other licenses may also apply.") and conclude it's simply…
comment by Tomte · 2024-03-27 · in TinyMCE (also) moving from MIT to GPL -
Your link converted to GitHub: https://github.com/torvalds/linux/commit/f342de4e2f33e0e3916... https://bugs.launchpad.net/bugs/cve/2024-1086 > A use-after-free vulnerability in the Linux kernel's netfilter: nf_tables component can be…
comment by MuffinFlavored · 2024-03-26 · in Flipping Pages: New Linux vulnerability in nf_tables and exploitation techniques -
…something against it? He notoriously hates GNU Emacs, yes. https://marc.info/?m=122955159617722 https://github.com/torvalds/linux/blob/master/Documentation/...
comment by bhaney · 2024-02-28 · in Linus Torvalds is looking for a more modern GUI editor (2023) -
…all lines and not only LoC it would be around 0.05% [0] https://github.com/XAMPPRocky/tokei [1] https://github.com/torvalds/linux/commit/b401b621758e46812da...
comment by SushiHippie · 2024-02-18 · in The Linux Kernel Prepares for Rust 1.77 Upgrade -
…directly by the kernel via the exec family of system calls, so ld.so shouldn't be involved. https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin... config BINFMT_SCRIPT tristate "Kernel support for scripts starting with #!" default…
comment by khrbtxyz · 2024-02-16 · in Pure Bash Web Server -
…not kernel upstream. they won't take esync/fsync because those have some missing features. https://github.com/torvalds/linux/commit/a0eb2da92b715d0c97b...
comment by the8472 · 2024-01-25 · in Proposed Windows NT sync driver brings big Wine/Proton performance improvements -
…the dillo plugin which automates this process): dir=$(mktemp -d) git clone --no-checkout --depth 1 https://github.com/torvalds/linux.git $dir cd $dir git ls-tree -r HEAD git checkout HEAD -- README.md ; less README.md # etc. # if you just…
comment by foul · 2024-01-24 · in Tell HN: GitHub no longer readable without JavaScript -
…device type, depending on how nice the manufacturers are), but that's how you get stuff like this: https://github.com/torvalds/linux/tree/master/arch/arm64/boo... On ARM there are actually a few devices that implement UEFI, but most of…
comment by jeroenhd · 2024-01-17 · in PixieFail: Nine Vulnerabilities UEFI Implementations -
…a number of changes in recent years including bug fixes. Kudos to the people providing the support. https://github.com/torvalds/linux/commits/0dd3ee31125508cd67...
comment by 8organicbits · 2024-01-08 · in Ubuntu Looking at Discontinuing Its Source ISOs -
…maintainers are very against this idea, there's even a mini-rant included in the kernel source: https://github.com/torvalds/linux/blob/master/Documentation/... In my opinion, the rationale in this document is mostly post-hoc justification…
comment by phendrenad2 · 2024-01-08 · in Linux 6.7 Kernel Released -
The Linux Kernel Driver Interface (all of your questions answered and then some) https://github.com/torvalds/linux/blob/master/Documentation/...
comment by peoplefromibiza · 2024-01-03 · in Maestro: A Linux-compatible kernel in Rust -
Here is a very simple linux driver https://github.com/torvalds/linux/blob/master/drivers/pwm/pw...
comment by adraenwan · 2023-12-22 · in C Object Oriented Programming (2014) -
…the reverted commit on non-obsolete architectures, which support the jitter entropy generation. [1] https://github.com/torvalds/linux/commit/48bff1053c172e6c7f3...
comment by Denvercoder9 · 2023-12-20 · in Uniting the Linux random-number devices (2022) -
The commit [1] was eventually reverted [2] [1] https://github.com/torvalds/linux/commit/6f98a4bfee72c22f50a... [2] https://github.com/torvalds/linux/commit/0313bc278dac7cd9ce8... > "This causes a large number of qemu boot test failures for…
comment by rdtsc · 2023-12-20 · in Uniting the Linux random-number devices (2022) -
The RDRAND instruction usage is configurable https://github.com/torvalds/linux/blob/master/Documentation/... edit: https://github.com/torvalds/linux/blob/55cb5f43689d7a9ea5bf3...
comment by goalieca · 2023-12-20 · in Uniting the Linux random-number devices (2022) -
…([0] needs [1] but that one was not backported). Fixed in 6.1.67 [2] released this morning. [0] https://github.com/torvalds/linux/commit/7e7efdda6adb385fbdf... [1] https://github.com/torvalds/linux/commit/076fc8775dafe995e94... [2]…
comment by jiripospisil · 2023-12-11 · in Linux: Ext4 data corruption in 6.1.64-1 -
…of Debian but it is not specific to it. The issue is/was in the official upstream release. [0] https://github.com/torvalds/linux/commit/936e114a245b6e38e0d... [1] https://github.com/torvalds/linux/commit/91562895f8030cb9a04... [2]…
comment by jiripospisil · 2023-12-10 · in Linux: Ext4 data corruption in 6.1.64-1 -
…unaligned. #define unaligned(P) (((struct { typeof(*(P)) x; } __attribute__((packed))*)(P))->x) [0] https://github.com/torvalds/linux/blob/7b9e664beb237d90bc600...
comment by mlochbaum · 2023-11-30 · in Unaligned accesses in C/C++: what, why and solutions to do it properly -
…requests. But it looks a bit too subtle since the quotation character hugs the first character. [1] https://github.com/torvalds/linux/commit/5b2b1173a93fa056b45...
comment by chrishill89 · 2023-11-28 · in The `hanging-punctuation property` in CSS -
Everything is a website these days. Even code commits. https://github.com/torvalds/linux/commits.atom
comment by bhaak · 2023-11-20 · in RSS can be used to distribute all sorts of information -
The out-of-tree repo https://github.com/torvalds/linux/compare/master...lenticula... From a distance I think it should stay gone - nothing is stopping the users from using an older kernel forever-more - plenty of other devices do and it's…
comment by anotherhue · 2023-11-16 · in The push to save the Itanium architecture in Linux -
…is capped to 8. This has nothing to do with the number of cores that can actually be used. [0] https://github.com/torvalds/linux/commit/acb4a848da821a095ae...
comment by zygentoma · 2023-11-14 · in The Linux kernel has been accidentally hardcoded to a maximum of 8 cores -
GH for sure allows commentary on individual commits (e.g. < https://github.com/torvalds/linux/commit/23816724fdbd47c28bc... >) but they do not automatically roll up to the top-level PR view (since, how would that work with cherry-picks: it…
comment by mdaniel · 2023-11-09 · in Reducing patch postings to Linux-kernel -
…own tools. It was a single file back then, by now it's become a sprawling directory full of code: https://github.com/torvalds/linux/tree/master/tools/include/... Even asked Greg Kroah-Hartman on reddit about it once:…
comment by matheusmoreira · 2023-11-07 · in A standalone zero-dependency Lisp for Linux -
…split should do. https://lwn.net/Articles/507794/ https://stackoverflow.com/q/18858190/512904 https://github.com/torvalds/linux/tree/master/include/uapi These are the only headers that lone currently requires. When lone is built, a script…
comment by matheusmoreira · 2023-11-06 · in A standalone zero-dependency Lisp for Linux -
There is still a Linux driver for the 825xx chips, if you want to see how the software side works. https://github.com/torvalds/linux/blob/master/drivers/net/et...
comment by wrs · 2023-10-31 · in Reverse-engineering Ethernet backoff on the Intel 82586 network chip's die