Greg Kroah-Hartman Will Reject LLM-Generated Patches for Linux’s Staging Drivers

Citing an "onslaught" of AI-made cleanups, the staging maintainer says the tree exists for newcomers to learn on, and only hardware-tested security fixes found with LLMs will be considered.
Greg Kroah-Hartman Will Reject LLM-Generated Patches for Linux’s Staging Drivers
Greg Kroah-Hartman Will Reject LLM-Generated Patches for Linux’s Staging Drivers

Greg Kroah-Hartman says he will automatically reject patches generated with large language models for the Linux kernel’s drivers/staging/ subsystem, with one narrow exception for real security fixes. He set out the policy Monday in a post to the linux-staging and linux-kernel mailing lists, pointing to a recent “onslaught” of LLM-generated patches.

His reasoning rests on what staging is for. “drivers/staging/ exists PRIMARILY as a place for new kernel developers to learn how to get involved in kernel development,” he wrote. The tree is full of “low hanging fruit” in code cleanups and API changes, and nobody should rely on the code there; loading it sets the kernel’s TAINT_CRAP flag. Maintainers already refuse tool-generated “fix all the coding style issues in this file!” patches because clearing that work out would remove the on-ramp for new contributors.

“So this mean that anyone attempting to use a LLM to cleanup or ‘fix’ any code in drivers/staging/ is EXPLICITLY defeating the whole purpose of it existing in the first place,” Kroah-Hartman wrote. He also warned that hiding AI use won’t work: “it is VERY obvious when people submit LLM-generated patches.”

The exception covers security bugs. LLMs “are very good at finding suspect ‘security issues’ in kernel code these days,” he said, but even the best current and next-generation tools produce results that are “flat out wrong or harmful” at least a third of the time. A contributor who believes an LLM-found fix is valid can still send it, but only after testing it on the actual hardware for the driver, describing that testing, and being willing to defend the change.

Kroah-Hartman, who uses LLMs in his own kernel work, according to Phoronix, described staging as a “gym” for building skills. He wrote that an LLM “is turning into a reasonable tool to do ‘heavy lifting’ for some things,” but only for developers who have already trained enough to know what kind of lifting it can do, and pointed readers to an essay by Bruce Schneier on deciding when to use AI for a task.

Subscribe for Updates

DevNews Newsletter

The DevNews Email Newsletter is essential for software developers, web developers, programmers, and tech decision-makers. Perfect for professionals driving innovation and building the future of tech.

By signing up for our newsletter you agree to receive content related to ientry.com / webpronews.com and our affiliate partners. For additional information refer to our terms of service.

Notice an error?

Help us improve our content by reporting any issues you find.

Get the WebProNews newsletter delivered to your inbox

Get the free daily newsletter read by decision makers

Subscribe
Advertise with Us

Ready to get started?

Get our media kit

Advertise with Us