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.

  • ExtremeDullard@piefed.socialOP
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    6 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
      3
      ·
      edit-2
      3 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.