[PATCH] Check umove() return code

Dmitry V. Levin ldv at altlinux.org
Wed Nov 4 01:46:29 UTC 2009


I did one more miniaudit for umove() return code checks, and found a few
bugs, one of them (in sched_setaffinity parser) looks quite nasty.
Here are reproducers:

#include <unistd.h>
#include <syscall.h>
int main(void){return syscall(SYS_sched_setaffinity, 0, -1L, main);}

#include <sys/msg.h>
int main(void){return msgrcv(-1L, main, 0x7fffffff, 0, 0);}

#include <unistd.h>
#include <syscall.h>
int main(void){return syscall(SYS_query_module, main, 0, main, -1L, main);}

Proposed patch could be found at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20091104/5e66fbfe/attachment.bin>

More information about the Strace-devel mailing list