From: Junichi Uekawa <dancer@netfort.gr.jp>
To: Scott James Remnant <scott@netsplit.com>
Cc: Junichi Uekawa <dancer@netfort.gr.jp>,
322309@bugs.debian.org, 329468@bugs.debian.org,
debian-devel@bugs.debian.org, linux-kernel@vger.kernel.org,
332903@bugs.debian.org
Subject: Re: Bug#322309: Debian woody dpkg no longer works with recent linux kernel.
Date: Wed, 12 Oct 2005 00:15:03 +0900 [thread overview]
Message-ID: <877jck9jbc.dancerj%dancer@netfort.gr.jp> (raw)
In-Reply-To: <87achg9lnl.dancerj%dancer@netfort.gr.jp>
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.
Okay, I've verified that dpkg on sarge doesn't call mmap.
strace snippet:
umask(022) = 022
open("/var/lib/dpkg/status", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
close(3) = 0
open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 2 entries */, 4096) = 48
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/var/lib/dpkg/available", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
close(3) = 0
exit_group(0, 0, 0x2aaaaadfc530, 0x2, 0x2aaaaae00640 <unfinished ... exit status
So, the impact is restricted on trying to run woody dpkg
on newer kernels.
regards,
junichi
next prev parent reply other threads:[~2005-10-11 15:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-09 15:16 Junichi Uekawa
2005-10-09 22:33 ` Bug#322309: " Scott James Remnant
2005-10-10 1:07 ` Junichi Uekawa
2005-10-11 14:24 ` Junichi Uekawa
2005-10-11 15:15 ` Junichi Uekawa [this message]
2005-10-11 15:19 ` Jon Masters
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877jck9jbc.dancerj%dancer@netfort.gr.jp \
--to=dancer@netfort.gr.jp \
--cc=322309@bugs.debian.org \
--cc=329468@bugs.debian.org \
--cc=332903@bugs.debian.org \
--cc=debian-devel@bugs.debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=scott@netsplit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome