summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/ipc.h2
-rw-r--r--include/linux/msg.h6
-rw-r--r--include/linux/security.h4
-rw-r--r--include/linux/sem.h6
-rw-r--r--include/linux/shm.h6
5 files changed, 12 insertions, 12 deletions
diff --git a/include/asm-i386/ipc.h b/include/asm-i386/ipc.h
index 88229f11796f..810a449f8a7e 100644
--- a/include/asm-i386/ipc.h
+++ b/include/asm-i386/ipc.h
@@ -7,7 +7,7 @@
* See arch/i386/kernel/sys_i386.c for ugly details..
*/
struct ipc_kludge {
- struct msgbuf *msgp;
+ struct msgbuf __user *msgp;
long msgtyp;
};
diff --git a/include/linux/msg.h b/include/linux/msg.h
index 0aa923294f06..7fb3d5c17b6f 100644
--- a/include/linux/msg.h
+++ b/include/linux/msg.h
@@ -94,9 +94,9 @@ struct msg_queue {
};
asmlinkage long sys_msgget (key_t key, int msgflg);
-asmlinkage long sys_msgsnd (int msqid, struct msgbuf *msgp, size_t msgsz, int msgflg);
-asmlinkage long sys_msgrcv (int msqid, struct msgbuf *msgp, size_t msgsz, long msgtyp, int msgflg);
-asmlinkage long sys_msgctl (int msqid, int cmd, struct msqid_ds *buf);
+asmlinkage long sys_msgsnd (int msqid, struct msgbuf __user *msgp, size_t msgsz, int msgflg);
+asmlinkage long sys_msgrcv (int msqid, struct msgbuf __user *msgp, size_t msgsz, long msgtyp, int msgflg);
+asmlinkage long sys_msgctl (int msqid, int cmd, struct msqid_ds __user *buf);
#endif /* __KERNEL__ */
diff --git a/include/linux/security.h b/include/linux/security.h
index 4d052ad9759d..6741cc027ceb 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -1729,7 +1729,7 @@ static inline int security_shm_shmctl (struct shmid_kernel * shp, int cmd)
}
static inline int security_shm_shmat (struct shmid_kernel * shp,
- char *shmaddr, int shmflg)
+ char __user *shmaddr, int shmflg)
{
return security_ops->shm_shmat(shp, shmaddr, shmflg);
}
@@ -2322,7 +2322,7 @@ static inline int security_shm_shmctl (struct shmid_kernel * shp, int cmd)
}
static inline int security_shm_shmat (struct shmid_kernel * shp,
- char *shmaddr, int shmflg)
+ char __user *shmaddr, int shmflg)
{
return 0;
}
diff --git a/include/linux/sem.h b/include/linux/sem.h
index 1b869bf3aad9..38a64f8ea69b 100644
--- a/include/linux/sem.h
+++ b/include/linux/sem.h
@@ -138,10 +138,10 @@ struct sysv_sem {
};
asmlinkage long sys_semget (key_t key, int nsems, int semflg);
-asmlinkage long sys_semop (int semid, struct sembuf *sops, unsigned nsops);
+asmlinkage long sys_semop (int semid, struct sembuf __user *sops, unsigned nsops);
asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg);
-asmlinkage long sys_semtimedop(int semid, struct sembuf *sops,
- unsigned nsops, const struct timespec *timeout);
+asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops,
+ unsigned nsops, const struct timespec __user *timeout);
#endif /* __KERNEL__ */
diff --git a/include/linux/shm.h b/include/linux/shm.h
index 39c0e66e8c3e..dd0cafabdc1c 100644
--- a/include/linux/shm.h
+++ b/include/linux/shm.h
@@ -90,10 +90,10 @@ struct shmid_kernel /* private to the kernel */
#define SHM_LOCKED 02000 /* segment will not be swapped */
#define SHM_HUGETLB 04000 /* segment will use huge TLB pages */
+long sys_shmat (int shmid, char __user *shmaddr, int shmflg, unsigned long *addr);
asmlinkage long sys_shmget (key_t key, size_t size, int flag);
-asmlinkage long sys_shmat (int shmid, char *shmaddr, int shmflg, unsigned long *addr);
-asmlinkage long sys_shmdt (char *shmaddr);
-asmlinkage long sys_shmctl (int shmid, int cmd, struct shmid_ds *buf);
+asmlinkage long sys_shmdt (char __user *shmaddr);
+asmlinkage long sys_shmctl (int shmid, int cmd, struct shmid_ds __user *buf);
#endif /* __KERNEL__ */