lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20150209172811.GZ29656@ZenIV.linux.org.uk> Date: Mon, 9 Feb 2015 17:28:11 +0000 From: Al Viro <viro@...IV.linux.org.uk> To: Stephan Mueller <smueller@...onox.de> Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org, linux-crypto@...r.kernel.org Subject: Re: [PATCH v3 12/18] crypto: switch af_alg_make_sg() to iov_iter On Mon, Feb 09, 2015 at 02:33:48PM +0100, Stephan Mueller wrote: > > > > -int af_alg_make_sg(struct af_alg_sgl *sgl, void __user *addr, int len, > > - int write) > > +int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len) > > Shouldn't len be size_t? iov_iter_get_pages wants a size_t. Also, the > invocation of af_alg_make_sg uses an unsigned variable that is provided by > userspace. Keepo in mind that rw_copy_check_uvector() does, among other things, verify that total length is less than 2^31. So this code doesn't suffer from wraparounds; it might make sense to switch to size_t here, but that's a separate patch, IMO. For this conversion I just kept the type that used to be there. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists