From root@spotteswoode.dnsalias.org  Mon Mar 10 12:10:30 2008
Return-Path: <root@spotteswoode.dnsalias.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 11991106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Mar 2008 12:10:30 +0000 (UTC)
	(envelope-from root@spotteswoode.dnsalias.org)
Received: from mail-out02.broadnet-mediascape.de (mail-out02.broadnet-mediascape.de [62.206.1.19])
	by mx1.freebsd.org (Postfix) with SMTP id 662888FC1E
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Mar 2008 12:10:28 +0000 (UTC)
	(envelope-from root@spotteswoode.dnsalias.org)
Received: (qmail 13242 invoked by uid 113); 10 Mar 2008 11:43:46 -0000
Received: from 212.99.206.226 by mail-out02 (envelope-from <root@spotteswoode.dnsalias.org>, uid 106) with qmail-scanner-1.25 
 ( 
 Clear:RC:1(212.99.206.226):. 
 Processed in 0.289897 secs); 10 Mar 2008 11:43:46 -0000
Received: from d463cee2.datahighways.de (HELO spotteswoode.dnsalias.org) (212.99.206.226)
  by mail-out02.broadnet-mediascape.de with SMTP; 10 Mar 2008 11:43:45 -0000
Received: by spotteswoode.dnsalias.org (Postfix, from userid 0)
	id DD7FB50882; Mon, 10 Mar 2008 12:43:44 +0100 (CET)
Message-Id: <20080310114344.DD7FB50882@spotteswoode.dnsalias.org>
Date: Mon, 10 Mar 2008 12:43:44 +0100 (CET)
From: clemens fischer <ino-news@spotteswoode.dnsalias.org>
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Cc: clemens fischer <ino-news@spotteswoode.dnsalias.org>
Subject: libarchive: ISO9660 decompression extension unsupported
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         121556
>Category:       kern
>Synopsis:       [libarchive] ISO9660 decompression extension unsupported
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kientzle
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 10 12:20:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Thu May 01 06:27:32 UTC 2008
>Originator:     clemens fischer <ino-news@spotteswoode.dnsalias.org>
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:

FreeBSD 7.0-STABLE #11: Thu Mar 6 13:23:12 CET 2008
root@spotteswoode:/usr/obj/usr/src/sys/spott_fbsd7_i386 i386

userland built a few days before that date.

>Description:

look at <URL:http://www.geexbox.org/en/en/index.html>, download
<URL:http://www1.geexbox.org/releases/1.1/geexbox-1.1-en.i386.iso>.

this is a linux live-CD not installing anything, containing ALSA sound
and a "fat" Mplayer to turn a PC into a "Media Center".  the ISO image
is less than 10MB(!).  the content is decompressed on-the-fly, loaded
into RAM, then does HW-detection and (propably) presents a menu or GUI.

i verified the SHA1 checksum and issued:

  "LC_ALL=C tar -tvf /dl/geexbox-1.1-en.i386.iso"

some of the ISO9660 content is listed, some isn't, eg.:

...
Unsupported RRIP extension for state.cgi
 ZF(12): 70 7a 04 0f ac 0d 00 00 00 00 0d ac
dr-xr-xr-x  2 0      0        2048 Jul  1  2007 GEEXBOX/var/www/img/big
dr-xr-xr-x  2 0      0        2048 Jul  1  2007 GEEXBOX/var/www/cgi-bin
...

i can mount the image on a md(4) device and ls(1) the content, although
most of the files themselves are compressed and cannot be viewed with
fbsd means.

i emailed kientzle@ about this.  he responded fast, with a preliminary
analysis:

> After a little googling around, I finally found a reference
> to the ZF extension:
> 
> http://qa.coreboot.org/docs/doxygen/iso9660_8h-source.html
> 
> 00240 /* Linux-specific extension for transparent decompression */
> 00241 struct RR_ZF{
> 00242   char algorithm[2];
> 00243   char parms[2];
> 00244   char real_size[8];
> 00245 };
> 
> The arguments printed out for this first example
> seem to be:
> 
>   algorithm = "pz" (0x70, 0x7A)
>   parms = [ 4, 15 ] (0x04, 0x0f)
>   real_size = 0x000002b1
> (If you're not familiar with ISO9660, all integers get
> stored twice, first in little-endian order, then in
> big-endian order.  So the 8-byte "real_size" is really
> two copies of a 4-byte integer.)

later he ``found a reference to an "mkzftree" utility'' for me to try to
decompress the image.  i want to do this before trying to burn and run
the ISO on my PC, because i'm afraid to catch a virus, as this "distro"
is very small and the MPlayer alone is so big, which looks suspicious to
me.

>How-To-Repeat:
	
>Fix:

	

regards, clemens
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->tkientle 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Mar 10 13:39:59 UTC 2008 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=121556 
Responsible-Changed-From-To: tkientle->kientzle 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Mar 10 13:40:31 UTC 2008 
Responsible-Changed-Why:  
typo in my assigned, roll over to Tim 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121556 
>Unformatted:
