Re: Bug#322309: Debian woody dpkg no longer works with recent linux kernel.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Thanks, I didn't notice it was since 2.6.12. woody dpkg
was long broken. I've only seen more recent reports about this.

To fix this problem, will require update to 
dpkg in woody; which might not be feasible.
We could drop support of woody chroots in etch.
It might be possible to add a workaround hack 
in [c]debootstrap to trap mmap; or fill 
status/available files before invoking dpkg.


I'm not quite sure why sarge manages to bootstrap despite 
having a dpkg version (1.10.28) that shouldn't work.


regards,
	junichi

Attachment: pgpeSvfWlcwJ8.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux