[BusyBox] kernel base gunzip
Bryan Rittmeyer
bryan at ixiacom.com
Wed Nov 15 23:47:30 UTC 2000
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??) 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!)
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