Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 17 submissions in the queue.
posted by martyb on Tuesday June 22 2021, @09:47PM   Printer-friendly
from the anti-accident? dept.

The ISRG wants to make the Linux kernel memory-safe with Rust

The Internet Security Research Group (ISRG)—parent organization of the better-known Let's Encrypt project—has provided prominent developer Miguel Ojeda with a one-year contract to work on Rust in Linux and other security efforts on a full-time basis.

As we covered in March, Rust is a low-level programming language offering most of the flexibility and performance of C—the language used for kernels in Unix and Unix-like operating systems since the 1970s—in a safer way.

Efforts to make Rust a viable language for Linux kernel development began at the 2020 Linux Plumbers conference, with acceptance for the idea coming from Linus Torvalds himself. Torvalds specifically requested Rust compiler availability in the default kernel build environment to support such efforts—not to replace the entire source code of the Linux kernel with Rust-developed equivalents, but to make it possible for new development to work properly.

Using Rust for new code in the kernel—which might mean new hardware drivers or even replacement of GNU Coreutils—potentially decreases the number of bugs lurking in the kernel. Rust simply won't allow a developer to leak memory or create the potential for buffer overflows—significant sources of performance and security issues in complex C-language code.

Previously: Linus Torvalds: Don't Hide Rust in Linux Kernel; Death to AVX-512

Related: Microkernel, Rust-Programmed Redox OS's Devs Slam Linux, Unix, GPL
Following Layoffs, Mozilla and Core Rust Developers Are Forming a Rust Foundation


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 4, Funny) by Anonymous Coward on Tuesday June 22 2021, @10:03PM (12 children)

    by Anonymous Coward on Tuesday June 22 2021, @10:03PM (#1148174)

    The problem with these millennial languages is that their proponents are easily distracted by the next exciting new language and then there's no one to support them. Meanwhile, C++ has been chugging along with only minor changes since the late 1800s.

    Starting Score:    0  points
    Moderation   +4  
       Insightful=1, Funny=3, Total=4
    Extra 'Funny' Modifier   0  

    Total Score:   4  
  • (Score: 0) by Anonymous Coward on Tuesday June 22 2021, @10:11PM (9 children)

    by Anonymous Coward on Tuesday June 22 2021, @10:11PM (#1148178)

    Anyone who's resistant to change has no place in IT.

    • (Score: 0) by Anonymous Coward on Tuesday June 22 2021, @10:21PM (7 children)

      by Anonymous Coward on Tuesday June 22 2021, @10:21PM (#1148180)

      Change your gender, or else.

      • (Score: 0) by Anonymous Coward on Tuesday June 22 2021, @10:31PM (4 children)

        by Anonymous Coward on Tuesday June 22 2021, @10:31PM (#1148183)

        They already have, and you now asking them to change it back is tantamount to violence.

        • (Score: 1, Funny) by Anonymous Coward on Tuesday June 22 2021, @11:29PM (3 children)

          by Anonymous Coward on Tuesday June 22 2021, @11:29PM (#1148201)

          Holy Jesus Fucky McFuckface - there are 1024 (and counting) genders to choose from! He can do a new gender every day for 2.8 years, and never have to repeat.

          • (Score: 0) by Anonymous Coward on Wednesday June 23 2021, @12:01AM (2 children)

            by Anonymous Coward on Wednesday June 23 2021, @12:01AM (#1148213)

            Isn't that a plan for when Potato Gender [thepostmillennial.com] stops working?

            • (Score: 0) by Anonymous Coward on Wednesday June 23 2021, @12:15AM (1 child)

              by Anonymous Coward on Wednesday June 23 2021, @12:15AM (#1148217)

              If a tater masturbated on zoom, how would you know?

              • (Score: 0) by Anonymous Coward on Wednesday June 23 2021, @02:20AM

                by Anonymous Coward on Wednesday June 23 2021, @02:20AM (#1148245)

                Mayo on the keyboard.

      • (Score: 0) by Anonymous Coward on Tuesday June 22 2021, @10:32PM

        by Anonymous Coward on Tuesday June 22 2021, @10:32PM (#1148185)
        lol someone recently watched a spittle-spewing talking head on a popular cable channel. hope you're monitoring your blood pressure ;)
      • (Score: 4, Interesting) by shortscreen on Wednesday June 23 2021, @12:42AM

        by shortscreen (2252) on Wednesday June 23 2021, @12:42AM (#1148222) Journal

        gender changes -> medical industry profits
        software changes -> IT industry profits

        You see? There is a difference.

    • (Score: -1, Spam) by Anonymous Coward on Tuesday June 22 2021, @10:32PM

      by Anonymous Coward on Tuesday June 22 2021, @10:32PM (#1148184)

      The words of a punk who unironically believes that "only the Sith believe in absolutes" thought-terminating garbage quote -- and who also believes that a developer who has a good point and defends that good point is toxic and meritocratic, while a bunch of purple-haired Jewish* trannies arguing about pronouns all day while China and corporate America are slipping bugs by them left and right is totally acceptable for an OS with more than its share of annoying security braggarts. Linux is a perfect example of how Judeo-Globalism can destroy good societies in only the span of a few years.

      * It's totally fine for Jewish developers to be rude, annoying, racist, and otherwise pointlessly discriminatory though!

  • (Score: 2) by Tork on Tuesday June 22 2021, @10:34PM

    by Tork (3914) on Tuesday June 22 2021, @10:34PM (#1148186)

    The problem with these millennial languages is that their proponents are easily distracted by the next exciting new language and then there's no one to support them. Meanwhile, C++ has been chugging along with only minor changes since the late 1800s.

    Heh. I can't tell if this is clever satire of another Slashdotter came wandering in over here. Funny either way, tho.

    --
    Slashdolt Logic: "25 year old jokes about sharks and lasers are +5, Funny." 💩
  • (Score: 5, Interesting) by dltaylor on Wednesday June 23 2021, @04:15AM

    by dltaylor (4693) on Wednesday June 23 2021, @04:15AM (#1148272)

    I've worked on embedded stuff, UNIX and Microsoft kernels and drivers and application low-level utilities and libraries over the course of decades of programming.

    My only difficulty with C++ is that I've only ever met less than a handful of programmers that actually know how to write in that language. At best, there is always half the performance and 2 to 4 times the amount of run-time code as "C". Just the simplest feature of base and derived classes seems to be beyond them. I have seen multiple instances of empty base classes and the "derived classes" made by "copy, paste, and tweak" from the first working instance. Wrapping as many as 8 layers of classes over just about every byte of data memory is common, too. That's the part of Rust that gives me pause: micromanaging references. Good as modern CPUs may be, winding down some daisy-chain of references is a performance hit. Yes, Virginia, there are layers of references in the Linux kernel, but type-unsafe as it may be (is, probably), I've seen the compilers streamline the object code.

    Perhaps I'll rewrite one of the drivers I worked on in Rust and see how for myself if I'm avoiding a pitfall no longer present.