[BusyBox] kernel base gunzip

Glenn McGrath bug1 at optushome.com.au
Wed Nov 15 23:58:30 UTC 2000


Bryan Rittmeyer wrote:
> 
> Glenn McGrath wrote:
> 
> > This may be slightly offtopic, but anyway..
> >
> > The linux kernel has internal code to do gunzip, if there was a kernel
> > module that could provide access to the internal gunzip code from
> > userland then it would provide an almost free gunzip as far as space
> > goes.
> >
> > Is this a good/bad idea ?
> 
> Well, it may provide some savings on kernels that use gzip. However, I
> suspect most of the x86 kernels now are built with bzip2 (hence
> bzimage??)
Actually bzimage stands for Big zimage, kernel doesnt have any bzip2
code anywhere in it, although there is a patch that can provide bzip2
support for initrd.

> Even worse, I believe the gunzip code is "jettisoned" as
> initialization code when the 2.2/2.4 kernel does its "Freeing unused
> memory" line:
> 
> Freeing unused kernel memory: 52k freed
> (or whatever)
> 
> kernel gunzip won't help those of us using uncompressed kernels on
> architectures where kernel compression is not functional or well tested.
> There could also be some subtle security concerns, since that kernel
> code has never had to deal with user space memory before (there is no
> userspace when it runs!)
> 
cramfs also has its gunzip code, and doesnt ppp also use commpression ?

> The module hooks may be smaller than putting the equivalent code in
> busybox, but I get a gut feeling it's more trouble than its worth.
> 
> Regards,
> 
> Bryan
> 
> --
> Bryan Rittmeyer
> mailto:bryan at ixiacom.com
> Ixia Communications
> 26601 W. Agoura Rd.
> Calabasas, CA 91302





More information about the busybox mailing list