]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC64]: Fix bugs in SYSV IPC handling in 64-bit processes.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 03:56:31 +0000 (20:56 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 14 Oct 2007 04:53:12 +0000 (21:53 -0700)
commitc5b2c645253d4142f202fd01a3af2d89accc807e
tree7187727755fbcb36b66c583c7ed89cb169a52f12
parente39cfe73538a439ae587f3adf7c19e9e21d26544
[SPARC64]: Fix bugs in SYSV IPC handling in 64-bit processes.

Thanks to Tom Callaway for the excellent bug report and
test case.

sys_ipc() has several problems, most to due with semaphore
call handling:

1) 'err' return should be a 'long'
2) "union semun" is passed in a register on 64-bit compared
   to 32-bit which provides it on the stack and therefore
   by reference
3) Second and third arguments to SEMCTL are swapped compared
   to 32-bit.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/sys_sparc.c