public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@ftp.linux.org.uk>
To: Anton Altaparmakov <aia21@cam.ac.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	dbrownell@users.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ptrdiff_t is not uintptr_t, damnit
Date: Mon, 20 Aug 2007 01:52:46 +0100	[thread overview]
Message-ID: <20070820005246.GX21089@ftp.linux.org.uk> (raw)
In-Reply-To: <C0FCB07A-EE48-4ABB-96A7-470C53C86A38@cam.ac.uk>

On Mon, Aug 20, 2007 at 01:27:13AM +0100, Anton Altaparmakov wrote:

> And what the cast was doing I can't remember.  I may well have just  
> copied it from the VFS or I was perhaps trying to silence a warning  
> and this happened to work...

... due to sparse bug (it miscalculated address space of pointed to,
picking top-level qualifiers for some reason; __user pointer to char
and pointer to __user char gave the same result and so did __user long).
That cast still made no sense...

  reply	other threads:[~2007-08-20  0:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 22:55 [PATCH] ptrdiff_t is not uintptr_t, damnit Al Viro
2007-08-20  0:19 ` David Brownell
2007-08-20  0:29   ` Anton Altaparmakov
2007-08-20  0:57     ` Al Viro
2007-08-20  0:57     ` David Brownell
2007-08-20  3:01       ` Satyam Sharma
2007-08-20  3:26         ` David Brownell
2007-08-20  3:40           ` Al Viro
2007-08-20  4:17             ` David Brownell
2007-08-20  0:27 ` Anton Altaparmakov
2007-08-20  0:52   ` Al Viro [this message]
2007-08-20  1:12     ` David Brownell
2007-08-21 18:53 ` David Brownell

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=20070820005246.GX21089@ftp.linux.org.uk \
    --to=viro@ftp.linux.org.uk \
    --cc=aia21@cam.ac.uk \
    --cc=dbrownell@users.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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