lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue,  5 May 2015 11:28:43 -0700
From:	a22017@...orola.com
To:	akpm@...ux-foundation.org, linux-api@...r.kernel.org,
	linux-kernel@...r.kernel.org
Cc:	Ling-Juan Sun <a22017@...orola.com>
Subject: [PATCH] ipc/sem: 64bit union semun definition

From: Ling-Juan Sun <a22017@...orola.com>

The member of semun semid_ds has new definition
semid64_ds for 64bit architectures.

Signed-off-by: Ling-Juan Sun <a22017@...orola.com>
---
 include/uapi/linux/sem.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/uapi/linux/sem.h b/include/uapi/linux/sem.h
index dd73b90..e9ab2a5 100644
--- a/include/uapi/linux/sem.h
+++ b/include/uapi/linux/sem.h
@@ -50,6 +50,15 @@ union semun {
 	void __user *__pad;
 };
 
+/* arg for semctl 64 bit system calls. */
+union semun64 {
+	int val;			/* value for SETVAL */
+	struct semid64_ds __user *buf;	/* buffer for IPC_STAT & IPC_SET */
+	unsigned short __user *array;	/* array for GETALL & SETALL */
+	struct seminfo __user *__buf;	/* buffer for IPC_INFO */
+	void __user *__pad;
+};
+
 struct  seminfo {
 	int semmap;
 	int semmni;
-- 
2.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ