> ...
> if (get_user(len, optlen))
> return -EFAULT;
> if (len < sizeof(int))
> return -EINVAL;
Actually, `optlen' is not checked againist upper limit as well, so we
can simply use any large positive value for getsockopt()'s optlen and we
will be able to use it on IA32 cpus as well, without ...
> ...
> if (get_user(len, optlen))
> return -EFAULT;
> if (len < sizeof(int))
> return -EINVAL;
Actually, `optlen' is not checked againist upper limit as well, so we
can simply use any large positive value for getsockopt()'s optlen and we
will be able to use it on IA32 cpus as well, without ...
[ more ]