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
-
…requests will fail with preemptive OOMs. (e.g. postgresql servers typically disable overcommit) - https://github.com/torvalds/linux/blob/master/mm/util.c#L753
comment by vin10 · 2025-12-19 · in Vm.overcommit_memory=2 is the right setting for servers -
…exclusive access to a list won't stop you from adding the same element to multiple lists. [0]: https://github.com/torvalds/linux/blob/3e0ae02ba831da2b70790...
comment by aw1621107 · 2025-12-17 · in Linux Kernel Rust Code Sees Its First CVE Vulnerability -
…code organization would have eliminated the need for the unsafe block in this specific case. [0]: https://github.com/torvalds/linux/blob/3e0ae02ba831da2b70790...
comment by aw1621107 · 2025-12-17 · in Linux Kernel Rust Code Sees Its First CVE Vulnerability -
…}; } needs_queueing } [0]: https://lore.kernel.org/linux-cve-announce/2025121614-CVE-20... [1]: https://github.com/torvalds/linux/commit/3e0ae02ba831da2b707... [2]: https://github.com/torvalds/linux/blob/3e0ae02ba831da2b70790... [3]:…
comment by aw1621107 · 2025-12-17 · in Linux Kernel Rust Code Sees Its First CVE Vulnerability -
…init= option to kernel."[2] 1: https://github.com/archlinux/mkinitcpio/blob/2dc9e12814aafcc... 2: https://github.com/torvalds/linux/blob/d358e5254674b70f34c84...
comment by kmm · 2025-12-11 · in Booting Linux in QEMU and Writing PID 1 in Go to Illustrate Kernel as Program -
…hard to write. Mostly Rust has been used for drivers so far. Here's the first Rust driver I found: https://github.com/torvalds/linux/blob/2137cb863b80187103151... It has one trivial use of `unsafe` - to support Send & Sync for a type - and…
comment by IshKebab · 2025-12-10 · in Rust in the kernel is no longer experimental -
…Zig community lead going off about RAII before and making claims like "linux would never do this" ( https://github.com/torvalds/linux/blob/master/include/linux/... ). There are bad cases of RAII APIs for sure, but it's not all bad. Andrew…
comment by raggi · 2025-12-04 · in Thoughts on Go vs. Rust vs. Zig -
…either, look at the Linux kernels PRs, it's almost all spam. Why on earth can't PRs be disabled? https://github.com/torvalds/linux/pulls?q=is%3Apr+is%3Aclose...
comment by 8organicbits · 2025-12-03 · in Zig quits GitHub, says Microsoft's AI obsession has ruined the service -
There is a C API. man landlock_add_rule for example. https://github.com/torvalds/linux/blob/master/include/uapi/l... you can add simple one-line wrappers if you don't like using syscall() function.
comment by megous · 2025-11-30 · in Landlock-Ing Linux -
…not just calling syscall() with a magic number: https://docs.kernel.org/userspace-api/landlock.html https://github.com/torvalds/linux/blob/6bda50f4/include/uapi... https://github.com/torvalds/linux/blob/6bda50f4/include/linu...
comment by wging · 2025-11-30 · in Landlock-Ing Linux -
…the Linux repo are quite terrible. At least there's a bot to auto-reply with the correct procedure. https://github.com/torvalds/linux/pull/1370
comment by 8organicbits · 2025-11-27 · in Migrating the main Zig repository from GitHub to Codeberg -
It is strange, cursory digging for an explanation was a little more complex than I bargained for... https://github.com/torvalds/linux/blob/v6.17/fs/binfmt_scrip... I think it makes it to calling open_exec but there's a test for…
comment by opello · 2025-11-20 · in A surprise with how '#!' handles its program argument in practice -
…part of same sentence. The latter one (goto) is routinely used by linux devs (random example: https://github.com/torvalds/linux/blob/master/fs/ext4/balloc... ) > we just stop using it. We minimise/restrict the usage.
comment by lucketone · 2025-11-16 · in When did people favor composition over inheritance? -
Have a look at X1E devicetree in Linux kernel source ( https://github.com/torvalds/linux/tree/master/arch/arm64/boo... all the way to the bottom). There are some models that have a very active development and an almost complete support by…
comment by cromka · 2025-11-15 · in Linux on the Fujitsu Lifebook U729 -
That's right! https://lwn.net/Articles/631631/ https://github.com/torvalds/linux/blob/master/fs/binfmt_elf.... Especially relevant for dynamic linkers is the AT_PHDR and AT_BASE auxiliary vector entries which provide the address of the…
comment by matheusmoreira · 2025-10-26 · in The Journey Before main() -
…The kernel has their own nolibc infrastructure now, no doubt much better than my project. https://github.com/torvalds/linux/tree/master/tools/include/... I encourage everyone to use it. Note also that _start is an arbitrary symbol. The…
comment by matheusmoreira · 2025-10-26 · in The Journey Before main() -
…to filters on the commit date, not the author date. Broken link points here and shows no commits: https://github.com/torvalds/linux/commits?author=vkoskiv&sin... If I correct the date range to include the maintainer commit date (May 15th),…
comment by vkoskiv · 2025-10-20 · in My first contribution to Linux -
https://github.com/torvalds/linux/pull/1355
comment by throwawaylnx · 2025-10-15 · in GitHub Bans Vmfunc -
…to fix the bug but never did. It also contains quirks for Intel x86 core platform features: https://github.com/torvalds/linux/blob/master/arch/x86/kerne... For the now-fashionable LLMs-on-GPUs world, it's pretty much just matrix…
comment by yencabulator · 2025-09-17 · in AMD Open Source Driver for Vulkan project is discontinued -
…to be superior to Github's and once complained about the latter on Github itself [1]. [1] https://github.com/torvalds/linux/pull/17#issuecomment-56546...
comment by goku12 · 2025-09-06 · in Let us git rid of it, angry GitHub users say of forced Copilot features -
…error = old_dir->i_op->rename(rd->new_mnt_idmap, old_dir, old_dentry, new_dir, new_dentry, flags); https://github.com/torvalds/linux/blob/master/fs/namei.c#L51... That is a close match for the first example, with additional arguments. It…
comment by ryao · 2025-08-27 · in Object-oriented design patterns in C and kernel development -
…https://github.com/openbsd/src/blob/master/sys/arch/amd64/am... 3. Relevant Linux kernel code: https://github.com/torvalds/linux/blob/master/arch/x86/kerne... , https://github.com/torvalds/linux/blob/master/arch/x86/kerne... 4. Linux…
comment by wahern · 2025-08-18 · in OpenBSD is so fast, I had to modify the program slightly to measure itself -
The latest kernel as of today still supports the 486SX ! ( https://github.com/torvalds/linux/blob/v6.17-rc1/arch/x86/Kc... )
comment by matja · 2025-08-14 · in Debian 13 “Trixie” -
…even refuses to parse many them: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tor... https://github.com/torvalds/linux/blob/master/drivers/gpu/dr... The last file in nbio is a header file with 38900 lines — a single file of…
comment by cnst · 2025-08-07 · in 79% of OpenBSD kernel source is AMD DRM -
https://github.com/torvalds/linux/blob/master/drivers/gpu/dr... 11k lines of #defines Is this truly necessary?
comment by Y_Y · 2025-08-07 · in 79% of OpenBSD kernel source is AMD DRM -
…NOT compiled code. It's a huge part of Linux, too, over at drivers/gpu/drm/amd/include/asic_reg : https://github.com/torvalds/linux/tree/master/drivers/gpu/dr... In OpenBSD, the last release before the explosive growth, was OpenBSD 6.5…
comment by cnst · 2025-08-07 · in 79% of OpenBSD kernel source is AMD DRM -
…folio for a whole set of pages, so moving the data there will save a significant amount of memory. https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317...
comment by tux3 · 2025-07-22 · in Losing language features: some stories about disjoint unions -
struct page in Linux is this taken to its logical conclusion. https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317... Edit: A bit of background: https://lwn.net/Articles/565097/
comment by rwmj · 2025-07-22 · in Losing language features: some stories about disjoint unions -
…changes in the commit messages: - https://docs.kernel.org/process/submitting-patches.html#desc... - https://github.com/torvalds/linux/blob/master/Documentation/... - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin... Git's own…
comment by andrybak · 2025-07-04 · in A Higgs-Bugson in the Linux Kernel -
…me: it made me think about ways I could reinvent email. [1] https://github.com/openssl/openssl [2] https://github.com/torvalds/linux
comment by dvt · 2025-07-01 · in Why email startups fail -
…some of these C programs: https://github.com/nodejs/node https://github.com/mozilla-firefox/firefox https://github.com/torvalds/linux https://github.com/python/cpython
comment by mrkeen · 2025-06-28 · in Uncle Sam wants you – to use memory-safe programming languages -
Yeah, it's very easy. Real devices usually adhere to the specs.. only very few exceptions: https://github.com/torvalds/linux/blame/master/drivers/hid/h... .. /s
comment by eMPee584 · 2025-06-22 · in Asterinas: A new Linux-compatible kernel project -
…the kernel’s internal ABI and API is constantly changing. There is some documentation on why here: https://github.com/torvalds/linux/blob/master/Documentation/...
comment by winter_blue · 2025-06-20 · in Microsoft Is Deleting Old Drivers from Windows Update and It Might Break Your PC -
…most of it seems to be down to a single commit that removed repeated usage of fuck from one file: https://github.com/torvalds/linux/commit/a44d924c81d43ddffc9...
comment by Denvercoder9 · 2025-06-16 · in Occurences of swearing in the Linux kernel source code over time -
…of “Firefox Moves to GitHub”? It could be a mirror, just like Linux also has an mirror on GitHub. https://github.com/torvalds/linux // EDIT: Source: https://news.ycombinator.com/item?id=43970574
comment by mritzmann · 2025-05-13 · in Mozilla Firefox – Official GitHub repo -
…board. So what happens is that Armbian ship a different image for each board. If you go and look in https://github.com/torvalds/linux/tree/master/arch/arm you see a zillion "mach-xxx" directories for different SoC architectures, even if…
comment by ajb · 2025-05-12 · in Armbian Updates: OMV support, boot improvents, Rockchip optimizations -
…essentially a sorted list of arguments for the mmap system call. This is Linux kernel's ELF loader: https://github.com/torvalds/linux/blob/master/fs/binfmt_elf.... It basically just mmaps in the PT_LOAD segments of the ELF file, copies…
comment by matheusmoreira · 2025-04-30 · in Path Isn't Real on Linux -
…call wrappers for more efficient access. The vDSO is a documented stable Linux kernel interface: https://github.com/torvalds/linux/blob/master/Documentation/... It's just a perfectly normal ELF shared object that the kernel maps into the…
comment by matheusmoreira · 2025-04-30 · in Path Isn't Real on Linux -
…user space and kernel is quite clear: the system call layer. It is stable and well documented. https://github.com/torvalds/linux/blob/master/Documentation/... System libraries like glibc are not part of the kernel, they are just components…
comment by matheusmoreira · 2025-04-30 · in Path Isn't Real on Linux -
…of trivia about the shebang support in Linux is that is possible to build the kernel without it. https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin... config BINFMT_SCRIPT tristate "Kernel support for scripts starting with #!"…
comment by khrbtxyz · 2025-04-30 · in Path Isn't Real on Linux -
…effort. Still worth it compared to the alternative of writing a linux kernel driver though! [0]: https://github.com/torvalds/linux/commit/bc895e8b2a64e502fbb... [1]: https://github.com/torvalds/linux/blob/bc895e8b2a64e502fbba7...
comment by roblabla · 2025-04-23 · in Why Does My eBPF Program Work on One Kernel but Fail on Another? -
…his position on this topic? Well, he's not a fan of GitHub pull request as per the last decade. https://github.com/torvalds/linux/pull/17#issuecomment-56546...
comment by konimex · 2025-04-15 · in Important open source projects should not use GitHub (2020) -
…seems to be actively contributing in GitHub for the Linux kernel repository (also created by him): https://github.com/torvalds/linux Anyone has seen his position on this topic?
comment by miloc_c · 2025-04-15 · in Important open source projects should not use GitHub (2020) -
…Coe's ratio: https://people.cs.vt.edu/~naren/Courses/CS3414/assignments/p... (3rd page) Linux code: https://github.com/torvalds/linux/blob/b0cb56cbbdb4754918c28...
comment by rwmj · 2025-03-24 · in Intel: A Bug and a Pro -
…e.g. the `squash_the_stupid_serial_number` name did actually exist before the cregited commit: https://github.com/torvalds/linux/commit/0a488a53d7ca46ac638... (Perhaps this could be related to there being multiple function implementations…
comment by follower · 2025-03-23 · in Cregit-Linux: how code gets into the kernel -
…only pointing out that it hasn’t happened in practice. Also check the Android Binder code before (C https://github.com/torvalds/linux/blob/master/drivers/androi... ) and after (Rust - https://android.googlesource.com/platform/frameworks/nat…
comment by nindalf · 2025-03-13 · in I stopped everything and started writing C again -
…remove GPL as a factor ? No reason it must? AFAIK all Rust for Linux code is GPL2. For example see: https://github.com/torvalds/linux/blob/master/rust/kernel/al... If some was or were to be licensed as MIT code, there is also plenty of…
comment by mustache_kimono · 2025-03-10 · in Rewriting essential Linux packages in Rust -
…email client. There are some hints regarding email clients here, though focused on sending patches: https://github.com/torvalds/linux/blob/master/Documentation/...
comment by layer8 · 2025-03-06 · in Git without a forge -
…to the Linux kernel even references OpenBSD pledge(2)/unveil(2) as a source of inspiration. https://github.com/torvalds/linux/commit/17ae69aba89dbfa2139... https://lore.kernel.org/linux-security-module/20210422154123...
comment by brynet · 2025-02-23 · in OpenBSD Innovations -
…And you can see under samples/rust that only a kbuild-style Makefile is provided: https://github.com/torvalds/linux/tree/master/samples/rust
comment by cozzyd · 2025-02-21 · in Greg K-H: "Writing new code in Rust is a win for all of us"