• marlowe221@lemmy.world
    link
    fedilink
    English
    arrow-up
    44
    ·
    edit-2
    6 months ago

    Yeah, that’s also my question. Partially because I am a former-lawyer-turned-software-developer… but, yeah. How are the kernel maintainers supposed to evaluate whether a particular PR contains non-GPL code?

    Granted, this was potentially an issue before LLMs too, but nowhere near the scale it will be now.

    (In the interests of full disclosure, my legal career had nothing to do with IP law or software licensing - I did public interest law).

    • Alex@lemmy.ml
      link
      fedilink
      English
      arrow-up
      23
      ·
      6 months ago

      They don’t, just like they don’t with human submitted stuff. The point of the Signed-off-by is the author attests they have the rights to submit the code.

      • ell1e@leminal.space
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        Which I’m guessing they cannot attest, if LLMs truly have the 2-10% plagiarism rate that multiple studies seem to claim. It’s an absurd rule, if you ask me. (Not that I would know, I’m not a lawyer.)

        • Alex@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          ·
          6 months ago

          Where are you seeing the 2-10% figure?

          In my experience code generation is most affected by the local context (i.e. the codebase you are working on). On top of that a lot of code is purely mechanical - code generally has to have a degree of novelty to be protected by copyright.

            • Alex@lemmy.ml
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 months ago

              If the 2-10% is just boilerplate syscall number defines or trivial MIN/MAX macros then it’s just the common way to do things.

              • ell1e@leminal.space
                link
                fedilink
                English
                arrow-up
                1
                ·
                5 months ago

                So do you want to legally review every line by an LLM to see if it meets the fair use criterion, since you have to assume it was probably stolen? And would you do this for a known plagiarizing human contributor too…?

                • Alex@lemmy.ml
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 months ago

                  No, that’s why the author asserts that with their signed-of-by. It’s what I do if I use any LLM content as the basis of my patches.

                  • ell1e@leminal.space
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    edit-2
                    5 months ago

                    So what does the signed-off-by magically solve here, that doesn’t require either you or the contributor to legally review every line by an LLM? If you’re not a lawyer, is your contributor going to be one?

    • wonderingwanderer@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      6 months ago

      If it’s flagged as “assisted by <LLM>” then it’s easy to identify where that code came from. If a commercial LLM is trained on proprietary code, that’s on the AI company, not on the developer who used the LLM to write code. Unless they can somehow prove that the developer had access to said proprietary code and was able to personally exploit it.

      If AI companies are claiming “fair use,” and it holds up in court, then there’s no way in hell open-source developers should be held accountable when closed-source snippets magically appear in AI-assisted code.

      Granted, I am not a lawyer, and this is not legal advice. I think it’s better to avoid using AI-written code in general. At most use it to generate boilerplate, and maybe add a layer to security audits (not as a replacement for what’s already being done).

      But if an LLM regurgitates closed-source code from its training data, I just can’t see any way how that would be the developer’s fault…

      • sem@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        6 months ago

        Pretty convenient.

        This is how copyleft code gets laundered into closed source programs.

        All part of the plan.

        • wonderingwanderer@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          How would they launder it? Just declare it their own property because a few lines of code look similar? When there’s no established connection between the developers and anyone who has access to the closed-source code?

          That makes no sense. Please tell me that wouldn’t hold up in court.

          • lagoon8622@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            3
            ·
            6 months ago

            Please tell me that wouldn’t hold up in court.

            First tell us how much money you have. Then we’ll be able to predict whether the courts will find in your favor or not

          • sem@piefed.blahaj.zone
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 months ago

            First of all, who is going to discover the closed source use of gpl code and create a lawsuit anyway?

            Second, the llm ingests the code, and then spits it back out, with maybe a few changes. That is how it benefits from copyleft code while stripping the license.

            Maybe a human could do the same thing, but it would take much longer.

            • wonderingwanderer@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              1
              ·
              6 months ago

              Wait, did you just move the goalposts? I thought the issue we were talking about was open-source developers who use LLM-generated code and unwittingly commit changes that contain allegedly closed-source snippets from the LLM’s training data.

              Now you want to talk about LLM training data that uses open-source code, and then closed-source developers commit changes that contain snippets of GPL code? That’s fine. It’s a change of topic, but we can talk about that too.

              Just don’t expect what I said before about the previous topic of discussion to apply to the new topic. If we’re talking about something different now, I get to say different things. That’s how it works.

              • sem@piefed.blahaj.zone
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                I was responding specifically to this part

                But if an LLM regurgitates closed-source code from its training data, I just can’t see any way how that would be the developer’s fault…

                showing what would happen when the llm regurgitates open source code into close source projects.

                Sorry if you didn’t like that.

                • wonderingwanderer@sopuli.xyz
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  6 months ago

                  But you flipped the situation, making it an entirely different discussion, and then you went on as if you thought my previous point was still supposed to apply to the new topic that you introduced.

                  It’s not that I don’t like it; we can talk about the issues with training commercial LLMs on GPL code. It was just an unannounced change of topic. Like you were trying to score points, so you brought up something irrelevant to pretend I’m arguing against, which I wasn’t.

                  Corporations have been able to steal open-source code without the help of AI, and the same issues arise due to lack of transparency. It’s a problem, sure, but it wasn’t the problem we were discussing. And you acting like I’m somehow arguing against it being a problem is a strawman, because it’s not what the thing I said was in reference to.