{"id":88460,"date":"2025-08-22T10:14:15","date_gmt":"2025-08-22T10:14:15","guid":{"rendered":"https:\/\/www.newsbeep.com\/ca\/88460\/"},"modified":"2025-08-22T10:14:15","modified_gmt":"2025-08-22T10:14:15","slug":"ai-is-creeping-into-the-linux-kernel-and-official-policy-is-needed-asap","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/ca\/88460\/","title":{"rendered":"AI is creeping into the Linux kernel &#8211; and official policy is needed ASAP"},"content":{"rendered":"<p> <img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/08\/linux-kernel.jpg\" alt=\"Linux kernel developers are getting to grips with AI\" width=\"1280\" height=\"737.28\" fetchpriority=\"low\"\/>   Elyse Betters Picaro \/ ZDNET  ZDNET&#8217;s key takeaways  Linux kernel developers are already using AI.AI helps Linux programmers, but they&#8217;re careful how they use it.Linux kernel maintainers must decide key AI policy issues.<\/p>\n<p>Get more in-depth ZDNET: <a href=\"https:\/\/www.google.com\/preferences\/source?q=zdnet.com#link=%7B%22role%22:%22standard%22,%22href%22:%22https:\/\/www.google.com\/preferences\/source?q=zdnet.com%22,%22target%22:%22_blank%22,%22absolute%22:%22%22,%22linkText%22:%22Add%20us%20as%20a%20preferred%20Google%20source%22%7D\" rel=\"noopener nofollow sponsored\" target=\"_blank\">Add us as a preferred Google source<\/a> on Chrome and Chromium browsers.<\/p>\n<p>Microsoft CEO Satya Nadella has suggested <a href=\"https:\/\/www.cnbc.com\/2025\/04\/29\/satya-nadella-says-as-much-as-30percent-of-microsoft-code-is-written-by-ai.html\" rel=\"noopener nofollow sponsored\" target=\"_blank\">as much as 30% of the company&#8217;s code<\/a> is now <a href=\"https:\/\/www.zdnet.com\/article\/how-to-use-chatgpt-to-write-code-and-my-top-trick-for-debugging-what-it-generates\/\" rel=\"nofollow noopener\" target=\"_blank\">written by AI<\/a>. While Microsoft may love AI code-writing tools, open-source and Linux developers are much more wary.\u00a0<\/p>\n<p>As far as Daniel Stenberg, chief maintainer of the popular open-source cURL data transfer program, is concerned, AI-written bug reports <a href=\"https:\/\/daniel.haxx.se\/blog\/2025\/08\/18\/ai-slop-attacks-on-the-curl-project\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">are active attacks on the project<\/a>. The Linux kernel community stands between these two extremes. <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/this-is-the-fastest-local-ai-ive-tried-and-its-not-even-close-how-to-get-it\/\" rel=\"nofollow noopener\" target=\"_blank\">This is the fastest local AI I&#8217;ve tried, and it&#8217;s not even close &#8211; how to get it<\/a><\/p>\n<p>In a speech at the 2025 <a href=\"https:\/\/events.linuxfoundation.org\/open-source-summit-north-america\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">Open Source Summit, North America,<\/a> Sasha Levin, Linux kernel hacker and Nvidia distinguished engineer, said <a href=\"https:\/\/www.youtube.com\/watch?v=ec7gDUFm2-Q\" rel=\"noopener nofollow sponsored\" target=\"_blank\">AI isn&#8217;t going to replace programmers<\/a>.  <\/p>\n<p>Instead, he said:\u00a0<\/p>\n<p>Large language models (LLMs) are just another fancy compiler. Back in the 50s and 60s, everyone was working in Assembly, and then C showed up, and we didn&#8217;t stop coding in Assembly because C was suddenly perfect. C isn&#8217;t perfect, but we stopped doing it because C is good enough, and we&#8217;re more productive coding in C. And to me, LLMs are a very similar trade-off. They&#8217;re not perfect yet, but at some point they will be good enough to make us more productive.<\/p>\n<p>That&#8217;s not to say AI isn&#8217;t already useful. Levin cited an example of a tiny upstream patch to git-resolve in the <a href=\"https:\/\/www.zdnet.com\/article\/linux-6-16-brings-faster-file-systems-improved-confidential-memory-support-and-more-rust-support\/\" rel=\"nofollow noopener\" target=\"_blank\">6.16 Linux kernel<\/a>. This tool resolves incomplete or incorrect commit IDs, a small but annoying issue for top maintainers. Levin used AI to write the entire routine: &#8220;The only thing I did there was to review the code and actually test it to make sure it works.&#8221;  <\/p>\n<p>Also:\u00a0<a href=\"https:\/\/www.zdnet.com\/article\/my-go-to-llm-tool-just-dropped-a-super-simple-mac-and-pc-app-for-local-ai-why-you-should-try-it\/\" rel=\"nofollow noopener\" target=\"_blank\">My go-to LLM tool just dropped a super simple Mac and PC app for local AI &#8211; why you should try it<\/a><\/p>\n<p>However, before you get too excited, he warned: &#8220;This is a great example of what LLMs are doing right now. You give it a small, well-defined task, and it goes and does it. And you notice that this patch isn&#8217;t, &#8216;Hey, LLM, go write me a driver for my new hardware.&#8217; Instead, it&#8217;s very specific &#8212; convert this specific hash to use our standard API.&#8221;  <\/p>\n<p>Levin said another AI win is that &#8220;for those of us who are not native English speakers, it also helps with writing a good commit message. It is a common issue in the kernel world where sometimes writing the commit message can be more difficult than actually writing the code change, and it definitely helps there with language barriers.&#8221;  <\/p>\n<p> LLMs could be good Linux maintainer helpers <\/p>\n<p>Looking ahead, Levin suggested LLMs could be trained to become good Linux maintainer helpers: &#8220;We can teach AI about kernel-specific patterns. We show examples from our codebase of how things are done. It also means that by grounding it into our kernel code base, we can make AI explain every decision, and we can trace it to historical examples.&#8221;  <\/p>\n<p>In addition, he said the LLMs can be connected directly to the Linux kernel Git tree, so &#8220;AI can go ahead and try and learn things about the Git repo all on its own.&#8221;  <\/p>\n<p>Also:\u00a0<a href=\"https:\/\/www.zdnet.com\/article\/heres-how-i-finally-cracked-a-tricky-linux-problem-with-this-ai-terminal-app\/\" rel=\"nofollow noopener\" target=\"_blank\">Here&#8217;s how I finally cracked a tricky Linux problem with this AI terminal app<\/a><\/p>\n<p>Then, armed with this information, a Linux-savvy LLM might be able to help with tedious jobs, such as backporting patches to the kernel&#8217;s stable branches: &#8220;The scale of the kernel is quite large, and, if you look at the raw numbers, to perform backports efficiently, the stable maintainer would need to review hundreds of patches every day, including weekends and holidays. There are no breaks to find about five to 10 commits that need to be backported every day. It&#8217;s a very tedious and frustrating process.&#8221;  <\/p>\n<p> How Linux kernel developers are using AI now <\/p>\n<p>That&#8217;s where the latest version of the Linux kernel tool <a href=\"https:\/\/lists.linaro.org\/archives\/list\/linux-stable-mirror@lists.linaro.org\/thread\/EJWMRUH2JTI34CPWVZZG62XJ7HMIH5WT\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">AUTOSEL<\/a> comes in. This AI-enabled program automatically analyzes Linux kernel commits to determine whether they should be backported to stable kernel trees. The tool examines commit messages, code changes, and historical backporting patterns to make intelligent recommendations.  <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/10-open-source-apps-i-recommend-every-windows-user-download-for-free\/\" rel=\"nofollow noopener\" target=\"_blank\">10 open-source apps I recommend every Windows user download &#8211; for free<\/a><\/p>\n<p>James Bottomley, senior Linux kernel maintainer and IBM Research distinguished engineer, explained why this approach is a good use for AI in a <a href=\"https:\/\/lkml.org\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">Linux Kernel Mailing List (LKML)<\/a> message: &#8220;If you think about it, the git history contains the exact patch path between where the patch was applied and where you want to apply it. <a href=\"https:\/\/lore.kernel.org\/ksummit\/e9902e53cd5c8ad444d6c62942e790b7ba5d756a.camel@HansenPartnership.com\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">That&#8217;s a finite data set which LLMs can be trained to work nicely with<\/a>.&#8221;  <\/p>\n<p>He continued: &#8220;Humans don&#8217;t look at the patch path (or use something broad like a range scan). The AI can be patient enough to actually go over it all.&#8221;  <\/p>\n<p>Moreover, AUTOSEL is now being used to spot code changes that address <a href=\"https:\/\/opensourcewatch.beehiiv.com\/p\/linux-gets-cve-security-business\" rel=\"noopener nofollow sponsored\" target=\"_blank\">Linux Common Vulnerabilities and Exposures (CVE) security holes<\/a>. Since <a href=\"https:\/\/www.zdnet.com\/article\/the-linux-security-team-issues-60-cves-a-week-but-dont-stress-do-this-instead\/\" rel=\"nofollow noopener\" target=\"_blank\">in Linux almost any bug can be a security<\/a> vulnerability, tracking these commits can be heavy work. To follow these commits, the kernel maintainers had been using numerous &#8220;hacky Bash scripts.&#8221; Now, LLMs are utilizing <a href=\"https:\/\/www.zdnet.com\/article\/rag-can-make-ai-models-riskier-and-less-reliable-new-research-shows\/\" rel=\"nofollow noopener\" target=\"_blank\">Retrieval Augmented Generation (RAG)<\/a> to retrieve the kernel&#8217;s Git repositories and documentation, learn the patches&#8217; history, and reduce hallucinations.  <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/want-to-save-your-old-computer-try-one-of-these-8-linux-distros-for-free\/\" rel=\"nofollow noopener\" target=\"_blank\">Want to save your old computer? Try one of these 8 Linux distros for free<\/a><\/p>\n<p>That&#8217;s not the only way Linux kernel developers are using AI. Linux Foundation fellow <a href=\"https:\/\/www.zdnet.com\/article\/shuah-khan-becomes-the-third-linux-foundation-fellow\/\" rel=\"nofollow noopener\" target=\"_blank\">Shuah Khan<\/a> told me that &#8220;AI-based tools are now being used to examine commit messages, code changes, and historical backporting patterns to make intelligent recommendations.&#8221;  <\/p>\n<p>Linux kernel developers are also wary of AI, Verizon executive director Dirk Hohndel told ZDNET:\u00a0<\/p>\n<p>I believe that many of these tools can be very useful in augmenting what a human developer can do. They can simplify routine tasks. They can make you faster when typing. They can help document code. But especially with a language like C and with an exceptionally complex codebase like the Linux kernel, I believe we are still at the very edge of what these tools are good at.<\/p>\n<p>However, he also said: &#8220;Developers should mark a patch that had code input (and not just text-completion) from an LLM, simply so that reviewers are aware of this and can adjust their process and scrutiny accordingly. Because I do believe that these patches deserve a lot more scrutiny than those sent in by experienced human developers.&#8221;  <\/p>\n<p>Hohndel is far from alone. As Lorenzo Stoakes, a Linux maintainer and Oracle engineer, warned on the LKML: &#8220;<a href=\"https:\/\/lore.kernel.org\/all\/e3188fe2-4b6c-4cb2-b5ae-d36c27de6832@lucifer.local\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">The kernel is uniquely sensitive to erroneous (especially subtly erroneous) code<\/a> &#8212; even small errors can be highly consequential. We use a programming language that can almost be defined by its lack of any kind of safety, and, in some subsystem patches, are simply taken if no obvious problems exist, making us rather vulnerable to this.&#8221;<\/p>\n<p> An official kernel AI policy is needed <\/p>\n<p>So, it is that Ji\u0159\u00ed Kosina, lead Linux developer at <a href=\"https:\/\/www.suse.com\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">SUSE<\/a>, has proposed on the LKML that kernel developers must settle on a way to mark which LLM has generated what code and <a href=\"https:\/\/lore.kernel.org\/ksummit\/d7ddd076-3cf8-4604-82f3-7e18709484c3@sirena.org.uk\/T\/#m4b8ea1a18458df8b33d0ebf03b0922a539ec65e6\" rel=\"noopener nofollow sponsored\" target=\"_blank\">who takes responsibility for that patch<\/a>.  <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/google-reveals-how-much-energy-a-gemini-query-uses-in-industry-first\/\" rel=\"nofollow noopener\" target=\"_blank\">Google reveals how much energy a Gemini query uses &#8211; in industry first<\/a><\/p>\n<p>The maintainers agree that Linux needs an official policy for addressing these issues. Steven Rostedt, a senior Linux kernel developer and Google software engineer, is working on the first draft of an official kernel AI policy document. This draft will be presented at the <a href=\"https:\/\/lpc.events\/\" rel=\"noopener nofollow sponsored\" target=\"_blank\">Linux Plumbers Conference<\/a> later this year.<\/p>\n<p>There&#8217;s another aspect to this transition as well, besides how well, or not, an AI can write code: the copyright status of AI-produced code. As Levin said in a proposal, &#8220;The Linux kernel is licensed under GPL-2.0 only with a syscall exception. <a href=\"https:\/\/lkml.org\/lkml\/2025\/8\/5\/1255\" rel=\"noopener nofollow sponsored\" target=\"_blank\">Coding agents MUST follow this licensing rule<\/a> with no exceptions. Any code contributed must be compatible with this license.&#8221; That&#8217;s far easier said than done, since <a href=\"https:\/\/eurekasoft.com\/blog\/aigenerated-code-and-copyright-who-owns-aiwritten-software\" rel=\"noopener nofollow sponsored\" target=\"_blank\">the copyright status of AI-derived code remains an open question<\/a>.  <\/p>\n<p>Also: <a href=\"https:\/\/www.zdnet.com\/article\/excels-new-copilot-function-turns-your-prompts-into-formulas-how-to-try-it\/\" rel=\"nofollow noopener\" target=\"_blank\">Excel&#8217;s new Copilot function turns your prompts into formulas &#8211; how to try it<\/a><\/p>\n<p>Finally, AI has made it painfully easy for people without a clue to push AI slop patches to developers. As kernel stable maintainer Greg Kroah-Hartman suggested: &#8220;I will note that <a href=\"https:\/\/lkml.org\/lkml\/2025\/7\/28\/513\" rel=\"noopener nofollow sponsored\" target=\"_blank\">we are already getting this kind of &#8216;slop&#8217; today<\/a>, with the numbers going up on a weekly basis.&#8221; <a href=\"https:\/\/www.zdnet.com\/article\/what-linux-kernel-maintainers-do-and-why-they-need-your-help\/\" rel=\"nofollow noopener\" target=\"_blank\">Maintainers are already overworked<\/a>. They don&#8217;t need clueless patches adding pointless work to their load.  <\/p>\n<p>AI is coming to the Linux kernel; everyone agrees on that. AI will certainly help in some ways. It&#8217;s going to be a pain in other ways. Exactly how AI will fit remains to be seen. Stay tuned.  <\/p>\n","protected":false},"excerpt":{"rendered":"Elyse Betters Picaro \/ ZDNET ZDNET&#8217;s key takeaways Linux kernel developers are already using AI.AI helps Linux programmers,&hellip;\n","protected":false},"author":2,"featured_media":88461,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[62,276,277,49,48,61],"class_list":["post-88460","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-ca","tag-canada","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts\/88460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/comments?post=88460"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts\/88460\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/media\/88461"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/media?parent=88460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/categories?post=88460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/tags?post=88460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}