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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 5 Jul 2017 19:23:28 +0300
From:   "Dmitry V. Levin" <ldv@...linux.org>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH] uapi: fix linux/sched/types.h userspace compilation errors

Consistently use types provided by <linux/types.h> to fix the following
linux/sched/types.h userspace compilation errors:

/usr/include/linux/sched/types.h:57:2: error: unknown type name 'u32'
  u32 size;
/usr/include/linux/sched/types.h:59:2: error: unknown type name 'u32'
  u32 sched_policy;
/usr/include/linux/sched/types.h:60:2: error: unknown type name 'u64'
  u64 sched_flags;
/usr/include/linux/sched/types.h:63:2: error: unknown type name 's32'
  s32 sched_nice;
/usr/include/linux/sched/types.h:66:2: error: unknown type name 'u32'
  u32 sched_priority;
/usr/include/linux/sched/types.h:69:2: error: unknown type name 'u64'
  u64 sched_runtime;
/usr/include/linux/sched/types.h:70:2: error: unknown type name 'u64'
  u64 sched_deadline;
/usr/include/linux/sched/types.h:71:2: error: unknown type name 'u64'
  u64 sched_period;

Fixes: e2d1e2aec572 ("sched/headers: Move various ABI definitions to <uapi/linux/sched/types.h>")
Cc: stable@...r.kernel.org # v4.12
Signed-off-by: Dmitry V. Levin <ldv@...linux.org>
---
 include/uapi/linux/sched/types.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/uapi/linux/sched/types.h b/include/uapi/linux/sched/types.h
index 307acbc..34b81aa 100644
--- a/include/uapi/linux/sched/types.h
+++ b/include/uapi/linux/sched/types.h
@@ -54,21 +54,21 @@ struct sched_param {
  * available in the scheduling class file or in Documentation/.
  */
 struct sched_attr {
-	u32 size;
+	__u32 size;
 
-	u32 sched_policy;
-	u64 sched_flags;
+	__u32 sched_policy;
+	__u64 sched_flags;
 
 	/* SCHED_NORMAL, SCHED_BATCH */
-	s32 sched_nice;
+	__s32 sched_nice;
 
 	/* SCHED_FIFO, SCHED_RR */
-	u32 sched_priority;
+	__u32 sched_priority;
 
 	/* SCHED_DEADLINE */
-	u64 sched_runtime;
-	u64 sched_deadline;
-	u64 sched_period;
+	__u64 sched_runtime;
+	__u64 sched_deadline;
+	__u64 sched_period;
 };
 
 #endif /* _UAPI_LINUX_SCHED_TYPES_H */

-- 
ldv

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ