Compressed kernel modules

4 views
Skip to first unread message

Vishal Thanki

unread,
Feb 29, 2016, 4:10:24 AM2/29/16
to fundamental...@googlegroups.com
I think many of us may already know it, but it was new to me so
thought of sharing.

Insmod (or rather kmod utilities) can now handle the XZ compressed
file formats. Kernel module files can now be compressed and be loaded
like:
# insmod xyz.ko.xz

Save some memory :-)

Viral Mehta

unread,
Feb 29, 2016, 4:13:37 AM2/29/16
to fundamental...@googlegroups.com
Great to see post on this group.

So, insmod takes care of uncompressing before loading ? Does it require lzo library to be present ? or works without that as well ?


--
-- Owner of this group do not accept ANY liability for the views expressed in the email or for the consequences of any computer viruses that may be transmitted with this email. Owner is not responsible for any kind of copyright violations or infringements caused/posted by any user of the group. Messages are posted through moderation also does not include any kind of verification against copyright violations or infringements.
---
You received this message because you are subscribed to the Google Groups "insane" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fundamental-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Viral Mehta

Vishal Thanki

unread,
Feb 29, 2016, 6:23:32 AM2/29/16
to fundamental...@googlegroups.com
On Mon, Feb 29, 2016 at 10:13 AM, Viral Mehta <vira...@gmail.com> wrote:
> Great to see post on this group.
>
> So, insmod takes care of uncompressing before loading ? Does it require lzo
> library to be present ? or works without that as well ?
>

I think libz takes care of that, have not googled yet.

➜ ~ which kmod
/usr/bin/kmod
➜ ~ ldd /usr/bin/kmod
linux-vdso.so.1 (0x00007ffcb57bc000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fcbbfb37000)
libz.so.1 => /lib64/libz.so.1 (0x00007fcbbf921000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fcbbf709000)
libc.so.6 => /lib64/libc.so.6 (0x00007fcbbf349000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcbbf12d000)
/lib64/ld-linux-x86-64.so.2 (0x00005574c024b000)
➜ ~ ldd /usr/bin/insmod
ldd: /usr/bin/insmod: No such file or directory
➜ ~ which insmod
/usr/sbin/insmod
➜ ~ ldd /usr/sbin/insmod
linux-vdso.so.1 (0x00007fffc4787000)
liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f86392e3000)
libz.so.1 => /lib64/libz.so.1 (0x00007f86390cd000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f8638eb5000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8638af5000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f86388d9000)
/lib64/ld-linux-x86-64.so.2 (0x00005635a74e0000)

Vishal Thanki

unread,
Feb 29, 2016, 6:26:28 AM2/29/16
to fundamental...@googlegroups.com
Adding in the last email.

On Mon, Feb 29, 2016 at 12:23 PM, Vishal Thanki <vishal...@gmail.com> wrote:
> On Mon, Feb 29, 2016 at 10:13 AM, Viral Mehta <vira...@gmail.com> wrote:
>> Great to see post on this group.
>>
>> So, insmod takes care of uncompressing before loading ? Does it require lzo
>> library to be present ? or works without that as well ?
>>
>
> I think libz takes care of that, have not googled yet.
>
> ➜ ~ which kmod
> /usr/bin/kmod
> ➜ ~ ldd /usr/bin/kmod
> linux-vdso.so.1 (0x00007ffcb57bc000)
> liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fcbbfb37000)

^^
This is the library that handles XZ compression specifically.

Viral Mehta

unread,
Feb 29, 2016, 11:10:49 PM2/29/16
to fundamental...@googlegroups.com
Got it.

Dhruval Shah

unread,
Mar 1, 2016, 7:16:44 PM3/1/16
to fundamental...@googlegroups.com
Cool! Didn't knew about this!

Dhruval
Reply all
Reply to author
Forward
0 new messages