]> git.baikalelectronics.ru Git - kernel.git/commit
lseek() and truncate() on sparc really need sign extension
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Feb 2013 08:02:41 +0000 (03:02 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Feb 2013 08:02:41 +0000 (03:02 -0500)
commitb12c8a487e9923b841d22491a22ffd7675cbc7ba
tree605f6c74b257d9c4878c76a8203b753200d0f0fb
parent4f2150ebead9362c86e1ce02d42a938dab6c332c
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 <viro@zeniv.linux.org.uk>
arch/sparc/kernel/sys32.S
arch/sparc/kernel/systbls_64.S