120
submitted 3 months ago by cm0002@lemmy.world to c/linux@programming.dev

Milestone passed with the debut of Linux 6.14 rc1.

you are viewing a single comment's thread
view the rest of the comments
[-] reddig33@lemmy.world 31 points 3 months ago* (last edited 3 months ago)

More lines = more attack vectors, more maintenance, more bloat.

[-] sneezycat@sopuli.xyz 35 points 3 months ago

Time to refactor the whole kernel into a one-liner!

[-] GolfNovemberUniform@infosec.pub 1 points 3 months ago* (last edited 3 months ago)

That's cheating. It won't actually make the code smaller.

[-] brian@programming.dev 5 points 3 months ago
[-] GolfNovemberUniform@infosec.pub 1 points 3 months ago

Common sense. Just making the same code into a single line won't change much.

[-] brian@programming.dev 8 points 3 months ago

that doesn't sound right, it's so much smaller if it's just one line

[-] GolfNovemberUniform@infosec.pub 1 points 3 months ago

The line will be like several quadrillion characters long though.

[-] brian@programming.dev 15 points 3 months ago

but if there's a bug I'll know exactly which line to look at

[-] AnUnusualRelic@lemmy.world 15 points 3 months ago

Easy fix. Just remove newline characters.

[-] tatterdemalion@programming.dev 9 points 3 months ago* (last edited 3 months ago)

Except the vast majority of the kernel is in driver modules.

So for an individual machine, the attack surface is not really any bigger than it needs to be.

The OS will only load modules it needs for your hardware, so the "bloat" only exists at the source code and binary size level. You are free to compile an optimized binary for your hardware. The complete kernel binary should fit in a 200MB boot partition.

As for maintenance, that's a fair point, but the effort is at least somewhat distributed if hardware devs provide the drivers.

this post was submitted on 26 Jan 2025
120 points (100.0% liked)

Linux

7164 readers
453 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS