linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Cree <mcree@orcon.net.nz>
To: debian-alpha@lists.debian.org
Cc: 521737@bugs.debian.org, linux-alpha@vger.kernel.org
Subject: Re: current state of sid (unstable)
Date: Mon, 20 Sep 2010 22:18:44 +1200	[thread overview]
Message-ID: <4C973504.3020602@orcon.net.nz> (raw)
In-Reply-To: <9AF94B53-DBAB-456E-B7FC-1E503375EB94@orcon.net.nz>

On 04/08/10 09:35, Michael Cree wrote:
> On 4/08/2010, at 1:48 AM, Bob Tracy wrote:
>> (5) Some long-standing compiler and libc issues have been fixed
>> upstream and in Debian, but recently, a build of libc in Debian
>> Unstable failed.
>
> I see the memchr seg fault bug (521737) is still open. I have a hunch
> that it may be a false-positive,

Darn, it's a true-positive.

>  It's a standard ldq_u for loading a byte within a
> quadword that is failing. If the correct quadword is being loaded then
> that shouldn't trip a seg fault no matter what byte in it is being
> loaded, even if the byte is pass the end of the string, right?

If there are fewer than eight bytes to search it loads a quadword (via 
ldq_u) encompassing the address one byte before the start address plus 
the length to search.  If the start address is quadword aligned then 
that will always be safe, but it appears to me that the author forgot 
about the possibility that the start address may not be quadword 
aligned, and then adding on the length-1 may step across the next 
quadword boundary, and whoops, we've gone past the valid end of buffer.

The problem is in both the Alpha generic and the Alpha ev6 code for 
memchr in libc.

Ohh, the kernel code (arch/alpha/lib/memchr.S) has the same problem!

Cheers
Michael.

       reply	other threads:[~2010-09-20 10:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20100803134859.GA9030@gherkin.frus.com>
     [not found] ` <9AF94B53-DBAB-456E-B7FC-1E503375EB94@orcon.net.nz>
2010-09-20 10:18   ` Michael Cree [this message]
2010-09-27  6:53     ` current state of sid (unstable) Michael Cree

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=4C973504.3020602@orcon.net.nz \
    --to=mcree@orcon.net.nz \
    --cc=521737@bugs.debian.org \
    --cc=debian-alpha@lists.debian.org \
    --cc=linux-alpha@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).