Announcement

Collapse
No announcement yet.

Linux's V4L2 VP9 Codec Kernel Code Rewritten In Rust For Better Memory Safety

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux's V4L2 VP9 Codec Kernel Code Rewritten In Rust For Better Memory Safety

    Phoronix: Linux's V4L2 VP9 Codec Kernel Code Rewritten In Rust For Better Memory Safety

    Daniel Almeida with Collabora has posted a rewritten of the VP9 codec library code within the Linux kernel's Video 4 Linux 2 (V4L2) subsystem. In using Rust rather than the existing C code, this should yield better memory safety and better fend off potential issues within the existing code...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Considering the terrible track record of both software and hardware video decoders when it comes to memory safety vulnerabilities, this is sorely needed, and I am excited to see it happen!

    Comment


    • #3
      This is amazing, im glad the kernel is slowly being rewritten in rust for memory safety, this is amazing news.

      Comment


      • #4
        last time i looked into v4l2 code it was far too much for me, with rust being a much more beginner friendly language I hope this bodes well for the future

        Comment


        • #5
          Originally posted by hedonist View Post
          This is amazing, im glad the kernel is slowly being rewritten in rust for memory safety, this is amazing news.
          That's not exactly what's happening. The Linux kernel is not being rewritten in Rust at this time. Some new drivers are being developed in Rust and a few are being rewritten in Rust.

          Comment


          • #6
            Originally posted by darkonix View Post

            That's not exactly what's happening. The Linux kernel is not being rewritten in Rust at this time. Some new drivers are being developed in Rust and a few are being rewritten in Rust.
            I think that would be considered being slowly rewritten in rust, since components are being re-written in rust

            Comment


            • #7
              I didn't know there were video codecs implemented within the kernel.

              Comment


              • #8
                That's essentially what Frederico did with librsvg. It's a valid approach. It makes sure it doesn't break the ABI and thus you've always something to test against.

                Comment


                • #9
                  Media codecs shouldn't be in the kernel in the first place. Unless i'm misunderstanding and this is only about special hardware devices to offload the decoding/encoding to.

                  Even then, better to keep the kernel interface as simple as possible and move all the codec specific handling to userspace Mesa.

                  Comment


                  • #10
                    Originally posted by hedonist View Post
                    This is amazing, im glad the kernel is slowly being rewritten in rust for memory safety, this is amazing news.
                    What's so amazing? Rust is far from maturity of C and code written in Rust is much harder to read and follow IMO. I'm waiting for large project written in Rust to see if it's really capable of replacing C. So far there are only tiny projects which are doing simple tasks. I'd love to see PostgreSQL equivalent. It's so much hype and promises about Rust, but nothing interesting to see so far. The order should be different.
                    Last edited by Volta; 28 February 2024, 03:37 AM.

                    Comment

                    Working...
                    X