LibreTechni.ca
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Hal-5700X@sh.itjust.works to Technology@lemmy.worldEnglish ·
edit-2
2 天前

Linux Kernel Rust Code Sees Its First CVE Vulnerability

www.phoronix.com

external-link
message-square
49
fedilink
  • cross-posted to:
  • linux@programming.dev
183
external-link

Linux Kernel Rust Code Sees Its First CVE Vulnerability

www.phoronix.com

Hal-5700X@sh.itjust.works to Technology@lemmy.worldEnglish ·
edit-2
2 天前
message-square
49
fedilink
  • cross-posted to:
  • linux@programming.dev
  • Technus@lemmy.zip
    link
    fedilink
    English
    arrow-up
    81
    ·
    2 天前

    Because Rust lets you choose when something is unsafe vs writing all unsafe in code all the time:

    Note the other 159 kernel CVEs issued today for fixes in the C portion of the codebase

    • setVeryLoud(true);@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 天前

      I wonder if this can be adjusted for LoC count in each language

      • Victor@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        1 天前

        Not sure if that’s a fair metric yet.

        • setVeryLoud(true);@lemmy.ca
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 天前

          It’s not, I have no better idea

          • nsfw936421@lemmynsfw.com
            link
            fedilink
            English
            arrow-up
            3
            ·
            22 小时前

            Maybe only counting new/edited LoC in that language. But also probably not completely fair.

    • ryannathans@aussie.zone
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 天前

      Yes same concept as other languages like C#

      • Technus@lemmy.zip
        link
        fedilink
        English
        arrow-up
        10
        ·
        2 天前

        You go ahead and write an OS kernel in C# then.

        • ryannathans@aussie.zone
          link
          fedilink
          English
          arrow-up
          9
          ·
          2 天前

          Why the hell would you do that

          • Technus@lemmy.zip
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 天前

            Why would you bring up C# in a thread about kernel programming?

            • ryannathans@aussie.zone
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              1 天前

              Talking about how unsafe is not some new fancy rust feature and exists in other languages. Your comment makes it sound like the choice is some new wild computing concept.

              • Hawk@lemmynsfw.com
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 天前

                Memory safe languages that are not garbage collected are not all that common. Ada and Rust are two examples.

                With great care C++ and zig can be.

                I’m sure there’s a good reason a lot of the big players and the community at large have picked up rust though. Docs, error messages, cargo community etc.

                I would argue that Rust does bring a lot to the table. I certainly would never code in C for work but I’ll happily reach for Rust.

              • AItoothbrush@lemmy.zip
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 天前

                Bruh do you actually not get it. The point of rust is that its memory safe(with a huge grain of salt in the case of low level programming) and is a language you can write kernels in. Youre not gonna write a kernel in C# so it doesnt really matter for a discussion about kernels.

                • ryannathans@aussie.zone
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 天前

                  I think you are lost, nobody is saying use C# for an OS kernel.

                  • The_Decryptor@aussie.zone
                    link
                    fedilink
                    English
                    arrow-up
                    3
                    ·
                    1 天前

                    Microsoft did.

        • boonhet@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          5
          ·
          2 天前

          Here, someone already wrote a bare bones one. Of course that also uses an unsafe block lol

Technology@lemmy.world

technology@lemmy.world

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: !technology@lemmy.world

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


  • @L4s@lemmy.world
  • @autotldr@lemmings.world
  • @PipedLinkBot@feddit.rocks
  • @wikibot@lemmy.world
Visibility: Public
globe

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

  • 2.41K users / day
  • 7.92K users / week
  • 13.8K users / month
  • 17.6K users / 6 months
  • 1 local subscriber
  • 77.8K subscribers
  • 1.85K Posts
  • 34.9K Comments
  • Modlog
  • mods:
  • L3s@lemmy.world
  • enu@lemmy.world
  • L4sBot@lemmy.world
  • Technopagan@lemmy.world
  • L3s@hackingne.ws
  • L4s@hackingne.ws
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org