Hi,

> > dpkg in Debian woody (3.0) is broken by recent linux kernels;
> > due to the following command changing behavior (mmap of 
> > zero-byte length):
> > 
> >   addr=mmap(NULL, 0, PROT_READ, MAP_SHARED, fd, 0);
> > 
> > These bugs are caused by mmap changing behavior; 
> > it used to return NULL when given a length of 0.
> > However, it now returns -1, and gives back an errno=EINVAL.
> > 
> Indeed.  This was the sole change in the 1.13.8 release.

1.13.8 is more recent than sarge; and I'm not quite sure 
why sarge successfully installs, and woody fails.


I'm seeing several potential solutions.

0.
Backport dpkg change to woody and update woody
(maybe impossible due to Debian oldstable
update infrastructure)

1. 
Modify [c]debootstrap to dump dummy data in 
/var/lib/dpkg/{status,available}

2. 
write a kernel patch to return 0 when mmap is 
called with length=0

3.
Create a LD_PRELOAD or ptrace hack to return 
0 when mmap is called with length=0


regards,
        junichi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to