For example sys_poll contains:
> if (copy_from_user(pp->entries, ufds + nfds-i,
> sizeof(struct pollfd)*pp->len)) {
> err = -EFAULT;
> goto out_fds;
> }
> i -= pp->len;
>
>
[snip: code that allocates memory, sleep until data is around, ...]
> if(__put_user(fds[j].revents, &ufds->revents))
> goto out_fds;
>
>
If an arch really treats VERIFY_READ differently that VERIFY_WRITE, then
this would be wrong.
Are there ports that perform some checks only for VERIFY_WRITE? I have a
fix for 80386.
-- Manfred- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/