Announcement

Collapse
No announcement yet.

Linux 6.7 To Make It Easier To Toggle Support For x86 32-bit Programs

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

  • Linux 6.7 To Make It Easier To Toggle Support For x86 32-bit Programs

    Phoronix: Linux 6.7 To Make It Easier To Toggle Support For x86 32-bit Programs

    The Linux kernel currently allows disabling support for 32-bit programs and 32-bit system calls at compile-time, but a new option expected to be introduced with Linux 6.7 this winter will provide a new "ia32_emulation" boot time option to allow unconditionally disabling support for 32-bit programs and system calls...

    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
    Why is it being called “emulation”? Isn’t it running natively on the hardware?

    Comment


    • #3
      Sounds like this boot-time option can reduce your computer's "attack surface" if you do not use any 32-bit apps. That would be useful.

      Comment


      • #4
        Originally posted by NotMine999 View Post
        Sounds like this boot-time option can reduce your computer's "attack surface" if you do not use any 32-bit apps. That would be useful.
        Just disable it completly, so the support is even not compiled into the kernel. KISS.

        Comment


        • #5
          What about 2bit?

          Comment


          • #6
            Originally posted by Joe2021 View Post

            Just disable it completly, so the support is even not compiled into the kernel. KISS.
            This. If you need it anywhere you dont care for toggling it on/off, otherwise you dont want it.

            I could image using it specifically only in containerized apps, but that would then need to be an namespaced option.
            At which point you could also just register a qemu-handler using binfmt (when finally this is made namespace-aware https://lore.kernel.org/lkml/[email protected]/T/ )

            Comment


            • #7
              Originally posted by Joe2021 View Post

              Just disable it completly, so the support is even not compiled into the kernel. KISS.
              And now I have to recompile the kernel all the time. Great idea /s.

              Comment


              • #8
                How much smaller/faster is the kernel if you set all the kernel compiler flags to completely remove all 32bit support?

                Comment


                • #9
                  Originally posted by EphemeralEft View Post
                  Why is it being called “emulation”? Isn’t it running natively on the hardware?
                  The kernel is a 64 bit kernel, so it has to appear and behave like a 32bit kernel, hence the emulation.

                  Comment


                  • #10
                    Originally posted by JEBjames View Post
                    How much smaller/faster is the kernel if you set all the kernel compiler flags to completely remove all 32bit support?
                    Most likely there is zero difference in size or performance. The point of this is to disable an unnecessary entry point to syscalls in setups where it is not needed. In practice that would be everything except on the desktop.

                    Comment

                    Working...
                    X