A big EXT4 pull request today intended for the Linux 7.4-rc5 kernel has set off Linus Torvalds. Over 41k lines of new code in this EXT4 pull request going in as “fixes”…. Much of that being new KUnit test coverage to make it safer to validate AI-generated patches. And then a lot of AI generated patches themselves for the EXT4 file-system.

  • ByteJunk@lemmy.world
    link
    fedilink
    arrow-up
    11
    arrow-down
    2
    ·
    11 hours ago

    I feel like you’re misrepresenting the reason Linus was angry - it’s not because it’s a huge AI slopfest.

    It’s because, on one hand, the guy’s committing a bunch of tests along with the fixes they’re sending, and the other is because this is a big chunk of new code for a release candidate stage, and Linus is fuming because people seem to disregard that big changes, even if they’re meant to fix a bug, can introduce bugs if their own, which at an RC stage is highly undesirable.

    He’d probably be mostly fine with it if it was split, and submitted earlier in the release cycle.

    Linus:

    You should have kept your tests in a separate branch for your testing, and done this huge update for the next merge window.

    This whole notion of “anything that is a fix goes in -rc” is bogus.

    • ExtremeDullard@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      17
      ·
      10 hours ago

      I feel like you’re misrepresenting the reason Linus was angry - it’s not because it’s a huge AI slopfest.

      I feel you totally miss my point: the problem is precisely that Linus is totally a-okay with the slopfest, and totally not 5-alarm scared at allowing this amount of unvetted shit into a -rc kernel.

      • iocase@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 hour ago

        be me

        want to update my kernel to avoid AI hacking and zero-days

        don’t want to update my kernel due to AI kernel slop

      • ByteJunk@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        2
        ·
        9 hours ago

        Ah yes, I did miss your point, my bad.

        A direct reply: it’s not “unvetted shift”, Linus vetted it and merged it. He’s pissed precisely because he had to review and approve this much stuff into an RC. While most of this code won’t be compiled into the kernel, since it’s tests, it’s still a large piece of work.

        I get that this is the “fuck AI” community, but this is exactly the reason that justifies kernel maintainers’ use of AI, and I’ve been keeping tabs on their discussions and conversation on how to make use of AI in a sensible manner.

        The most important point is that maintainers burnout is a huge problem. Things that reduce their workload and their saturation must be explored.

        Another important point is that many AI-driven submissions are actual, real bugs. It’s just that most of them are in remote, old areas of the kernel that are barely relevant (like old device drivers that nobody uses), which is part of why many haven’t been caught yet. But either facts (caught by AI, and being in a remote/little used driver) are not a reason to turn down a patch. These do increase workload, however, so there’s got to be some tradeoff between adopting a technology and the risks it brings.

        • ExtremeDullard@piefed.socialOP
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          3
          ·
          8 hours ago

          it’s not “unvetted shift”, Linus vetted it

          Yeees… I’m sure he carefully reviewed all 41,197 lines of it.

          Or, more likely, he got his clanker to do it for him.

          • ByteJunk@lemmy.world
            link
            fedilink
            arrow-up
            6
            arrow-down
            1
            ·
            edit-2
            5 hours ago

            I get it that you want to be angry at AI, but let’s be specific about our fears instead of painting broad, misleading scenarios.

            Regarding the commit itself that Linus pulled, that’s roughly 38k lines of tests against about 3.4k lines in actual kernel code files (8%). I couldn’t be bothered to check how many of lines of the actual kernel code were changed, and aren’t just comments, blank lines, #includes, header declarations, stuff that just got moved, and I suspect mostly, changes that set up the tests themselves (stuff like EXPORT_SYMBOL_IF_KUNIT(…)). In practice, actual code that gets compiled is much less.

            Then regarding Linus himself: he doesn’t usually do low level code review.

            The individual changes that make up a pull like this have all gone through “the kernel model”: first they go through a miling list review, patches would have been posted to linux-ext4 and other ext4 developers review them and add ReviewedBy or AckedBy: tags. How thorough this is varies from patch to patch, but there’s a process here.

            It then goes to the maintainer, who applies the patches, and he’s accountable for them. If other subsystems are involved, it goes to them to approve the changes as well (not the case here, I think it all falls under ext4 scope). Then the maintainer runs tests across many configurations with his own tooling.

            Then come linux-next and the bots. The branch is merged into linux-next, and the 0-day kernel test robot, KernelCI and syzbot build and test it across many architectures and configs. This catches build breaks, warnings and some crashes.

            Eventually it gets to Linus, but by then, everything went through a bunch of validation. If you want to see how much scrutiny each individual bit got, something like this should give an idea:

            git log --format='%h %s%n%(trailers:key=Reviewed-by,key=Acked-by,key=Tested-by,valueonly,separator=; )' 7475ea8b..bae28a1b
            

            My point is that doing things haphazardly is always going to produce bad results, but fitting AI into the kernel model with a well defined role and scope isn’t necessarily a bad thing; in fact, I’ll even argue it’s a necessity.