The Linux Kernel Dev Staging Area Now Rejects AI-Generated Patches

Aug 10, 2026

Unless a kernel patch is a valid security fix, it will be rejected if it was created using AI.

Firstly, it's important to understand that the developer staging area is a place for new kernel developers to get involved in Linux kernel development. "It contains loads of 'low-hanging fruit' with regards to code cleanups and API changes, perfect for new developers to learn the process in a safe and friendly way," said Greg Kroah-Hartman.

Because of that specific purpose, Hartman has made it clear that anyone "attempting to use an LLM [Large Language Model] to clean up or 'fix' any code in drivers/staging/ is EXPLICITLY defeating the whole purpose of it existing in the first place." To that end, Kroah-Hartman will automatically reject any patches that are generated using an LLM in the drives/staging/subsystem -- with one exception.

Kroah-Hartman states that LLMs are quite good at locating suspected "security issues" in the kernel code. However, even with the improvements, he says that "at least 1/3 of the results they generate are flat out wrong or harmful." At the same time, Kroah-Hartman informs developers that if their LLM-found fix in a drivers/staging file is valid, it's okay to submit it. However, he warns, "you must have first tested it on the actual hardware for the driver and described how you have done so, in order for us to be willing to take the change." 
 

 
 
 

Related content

  • Kroah-Hartman: Remove Hyper-V Driver from Kernel?

    Microsoft caused a sensation with its release of its Hyper-V virtualization driver -- now its inclusion in the Linux kernel could be in doubt.

  • Microsoft to Add Hyper-V Drivers to Linux Kernel

    What seemed impossible years ago could now become a reality: a Linux driver from Microsoft in the kernel.

  • Video: Android and Linux Kernel

    At FOSDEM 2010 in Brussels, Linux Magazine Online pulled Android commentator Jan Wildeboer and kernel staging tree maintainer Greg Kroah-Hartman away from the daily events to talk with them on camera.

  • Kroah-Hartman Attacks Canonical

    Greg Kroah-Hartman's keynote address at the Linux Plumbers Convention 2008 was officially about the Linux Ecosystem, but started as a direct attack on Ubuntu developer Canonical. He claims that the company contributes next to nothing to kernel development.

  • Linux 2.6.25 without Closed Source USB Drivers

    A controversial patch for the imminent kernel 2.6.25 is causing much debate in the developer community: in a similar move to one he made two years ago, the well-known kernel developer Greg Kroah-Hartman has submitted a patch that prevents closed source USB drivers from using the kernel's USB driver API.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News