From: Al Viro Date: Sun, 24 Feb 2013 08:02:41 +0000 (-0500) Subject: lseek() and truncate() on sparc really need sign extension X-Git-Tag: v3.9-rc1~23^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aee41fe2b2468bd3276e8eecd36c3e75927e2c53;p=pandora-kernel.git lseek() and truncate() on sparc really need sign extension ftruncate() doesn't - it's declared with size as unsigned long, but truncate() and lseek() have that argument as signed long. IOW, these two really need sign extension + branch to native syscall; argument validation in sys_... does *not* suffice. Signed-off-by: Al Viro --- Reading git-diff-tree failed