Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
qemu
qemu-cvs-ipc_semop.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qemu-cvs-ipc_semop.patch of Package qemu
Index: qemu/linux-user/syscall.c ================================================================================ --- qemu/linux-user/syscall.c +++ qemu/linux-user/syscall.c @@ -1983,9 +1983,19 @@ switch (call) { case IPCOP_semop: - ret = get_errno(semop(first,(struct sembuf *)g2h(ptr), second)); + { + struct sembuf *target_sops; + int i; + lock_user_struct(VERIFY_READ, target_sops, ptr, 0); + for(i=0; i<second; i++) { + target_sops[i].sem_num = tswap16(target_sops[i].sem_num); + target_sops[i].sem_op = tswap16(target_sops[i].sem_op); + target_sops[i].sem_flg = tswap16(target_sops[i].sem_flg); + } + ret = get_errno(semop(first, target_sops, second)); + unlock_user_struct(target_sops, ptr, 0); break; - + } case IPCOP_semget: ret = get_errno(semget(first, second, third)); break;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor