Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
tetris11 ( tetris11@lemmy.ml )  to Linux@lemmy.mlEnglish · 1 year ago

Linus Torvalds - that commit is not mine

lore.kernel.org

external-link
message-square
24
link
fedilink
101
external-link

Linus Torvalds - that commit is not mine

lore.kernel.org

tetris11 ( tetris11@lemmy.ml )  to Linux@lemmy.mlEnglish · 1 year ago
message-square
24
link
fedilink
Re: [GIT PULL] hardening fixes for v6.16-rc1 - Linus Torvalds
lore.kernel.org
external-link
alert-triangle
You must log in or register to comment.
  • catloaf ( catloaf@lemm.ee ) 
    link
    fedilink
    English
    arrow-up
    59
    ·
    1 year ago

    Readers: make sure you read the replies. This happened four days ago and has since been resolved.

    • tetris11 ( tetris11@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      Im a little unfamiliar with navigating this particular mailing list, where was this resolved?

      • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 ( sxan@midwest.social ) 
        link
        fedilink
        arrow-up
        30
        ·
        1 year ago

        I read through it by clicking the “next” link at the bottom. There isn’t a single email explaining it; it’s a story you have to read through to understand.

        If you jump to the last message, it’s someone saying they had the same issue.

        But, TL;DR a tool kernel devs use has surprising behavior that’s biting people, and can alter the commit history to be a pack of lies that looks suspiciously like malicious intent.

        The thread doesn’t mention how or if the tool has been changed. The tool is b4.

      • Jtskywalker ( Jtskywalker@lemm.ee ) 
        link
        fedilink
        arrow-up
        12
        ·
        1 year ago

        Towards the bottom of that page is a tree with all the replies in the chain.

        Here is one where they determined it was not malicious by examining the ref logs

        https://lore.kernel.org/all/20250601-pony-of-imaginary-chaos-eaa59e@lemur/

      • anothermember ( anothermember@feddit.uk ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        See 2025-06-01 14:40 from Konstantin Ryabitsev. Navigation is just below the post.

  • ryannathans ( ryannathans@aussie.zone ) 
    link
    fedilink
    arrow-up
    52
    ·
    1 year ago

    Good thing Linus remembers all his sha1 hashes

  • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 ( sxan@midwest.social ) 
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    I’ll say here that one of the less discussed differences between git and Mercurial is that Mercurial does not allow commited history to be changed, and git does. Git users call this a “feature,” and it leads to situations like this which are utterly impossible in Mercurial.

    Git allows rewriting history by design. The kernel team uses it liberally. It is debatable whether this is a good thing, but it’s one reason I stick with Mercurial.

    • mina86 ( mina86@lemmy.wtf ) deleted by creator
      link
      fedilink
      English
      arrow-up
      28
      ·
      edit-2
      7 months ago

      deleted by creator

      • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 ( sxan@midwest.social ) 
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Unless you go in with a byte editor, you can’t change Mercurial’s commit history. I didn’t say “fabricate”, I said “change”.

        You can, as you say, configure your user name and email to be “Linus Torvalds” and change your computer date and fabricate whatever history you want. You might also be able to go in with a byte editor and fiddle bits and change history that way; Mercurial provides no blockchain-like cryptographic guarantees. But, unlike git, rewriting history is not supported by Mercurial; history is immutable. Rebase doesn’t change history; the commit index only ever increments. Squash and rebasing create new commits, and there history of what happened is always in the repo.

        There’s a distinct and clear difference between Mercurial’s immutable history and git’s de jour history rewriting, which can literally - with the git command - change published history to make a commit made 3 years ago look like it was committed by someone else. The git workflow used by the kernel team, and the b4 tool, use this history rewriting in the standard workflow.

        If you wanted to do the same thing with Mercurial, you’d have to get a byte editor and start hacking the on-disk format, and it would have to be entirely outside of any Mercurial tooling. And there is some sequential hash verification you’d have to work around, even if it’s not cryptographically auditable.

        The point is, with Mercurial it would be hard and the result would be utterly incompatible with any other clone of the repo: there would be no way to propagate your changes to other clones. With git, this is a standard workflow.

        • mina86 ( mina86@lemmy.wtf ) deleted by creator
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          7 months ago

          deleted by creator

          • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 ( sxan@midwest.social ) 
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Did you read the same thread I did?

        • teawrecks ( teawrecks@sopuli.xyz ) 
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          It is not standard workflow in git to change the commit history for a branch on the remote. You have to use --force, and the next time someone pulls they also have to --force their any local tracking branch to follow the remote. Every git guide on the internet warns against pushing a rebase for this reason.

          Locally you can do whatever. I’m not familiar with Mercurial, but I assume it must work the same as git: I can do whatever I want locally, and only what I push matters. And when I’m doing stupid stuff locally as I organize my changes, rebase is handy.

          • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 ( sxan@midwest.social ) 
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Read the thread. The Kernel maintainers use b4, which rewrites history.

            Mercurial does not work like git, and history is immutable: there are no commands for changing history.

            • CommanderCloon ( CommanderCloon@lemmy.ml ) 
              link
              fedilink
              arrow-up
              4
              ·
              1 year ago

              Yes, it rewrote history, and thanks to Git’s robustness it was extremely easy to notice and identify. Forced rewrites are not an issue if you trust people on your repo, and if you don’t (and honestly you shouldn’t, everyone fucks up), you can disable force rewrites in the remote

            • teawrecks ( teawrecks@sopuli.xyz ) 
              link
              fedilink
              arrow-up
              2
              ·
              1 year ago

              I’m responding to the literal words you said that were inaccurate. Cheers.

  • MonkderVierte ( MonkderVierte@lemmy.zip ) 
    link
    fedilink
    arrow-up
    16
    ·
    1 year ago

    Bring the anubis girl back!

    • tetris11 ( tetris11@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      https://lemmy.ml/post/31157446/19034532

  • phantomwise ( phantomwise@lemmy.ml ) 
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    Wait was that Anubis without an anime girl? YOU MONSTERRRRS!

    • tetris11 ( tetris11@lemmy.ml ) OP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      what’s the reference here?

      • phantomwise ( phantomwise@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 year ago

        Anubis is an anti bot protection measure that gives your browser a proof-of-work challenge to solve before giving you access to the website. When I opened the link the website briefly showed Anubis but the anime girl mascot wasn’t there 😭

  • dino ( dino@discuss.tchncs.de ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    Love this guys, hope he lives forever!

  • Jtskywalker ( Jtskywalker@lemm.ee ) 
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    I’ve used these tools to remove stuff from git history (e.g. someone accidentally committed a password or key that wasn’t noticed for a while) and they are powerful but scary. Good discussion on what when wrong and how to avoid it or at least notice it before it gets this far

    • cpo ( cpo@beehaw.org ) 
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Rewriting history maybe should not have been the first cause of action, resetting the password would have been the sane option here.

      Not judging though 😉

  • rhabarba ( tux0r@feddit.org ) BannedBanned
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    The thread reads like Git is just as awesome to use as one would suspect from the outside, even for the original target audience.

    • ryannathans ( ryannathans@aussie.zone ) 
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      A script called b4 was at fault but sure blame git

  • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 ( sxan@midwest.social ) 
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 5.38K users / 6 months
  • 1.31K local subscribers
  • 68.1K subscribers
  • 8.11K Posts
  • 108K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) deleted by creator
  • nooter692 ( nooter692@lemmy.ml ) 
  • MarcellusDrum ( MarcellusDrum@lemmy.ml ) 
  • Arthur Besse ( cypherpunks@lemmy.ml ) 
  • Cyclohexane ( cyclohexane@lemmy.ml ) 
  • d3Xt3r ( d3Xt3r@lemmy.nz ) deleted by creator
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code