Re: [PATCH] ia64: populate the cmpxchg header with appropriate code

From: Tony Luck
Date: Fri Apr 13 2012 - 12:07:33 EST


On Thu, Apr 12, 2012 at 2:52 PM, Tony Luck <tony.luck@xxxxxxxxx> wrote:
> IA64 doesn't return a -EFAULT when we poke at the supposedly invalid user
> address of "NULL" because we map a special page to catch prefetch references

Leaping to conclusions ... fail :-(

If I change the address from NULL to something that isn't mapped ... I
still don't
get -EFAULT.

Looking more closely at futex_atomic_cmpxchg_inatomic() for the
error case.

-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/