[PATCH v05 60/72] arch/arm/include/uapi/asm/signal.h: use __kernel_size_t instead of size_t

From
Arnd Bergmann <arnd@arndb.de>
Date
2016-08-24 15:03:35
Also in
lkml
Reply to
Mikko Rapeli, 2016-08-22
On Monday, August 22, 2016 8:33:17 PM CEST Mikko Rapeli wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/include/uapi/asm/signal.h b/arch/arm/include/uapi/asm/signal.h
index 33073bd..859f2de 100644
--- a/arch/arm/include/uapi/asm/signal.h
+++ b/arch/arm/include/uapi/asm/signal.h
@@ -113,7 +113,7 @@ struct sigaction {
 typedef struct sigaltstack {
        void __user *ss_sp;
        int ss_flags;
-       size_t ss_size;
+       __kernel_size_t ss_size;
 } stack_t;
I was going to reply with an Ack, but on further consideration,
I'm not sure if we can't do this in general: size_t may be either
'unsigned int' or 'unsigned long' (depending on the architecture
and toolchain), and if kernel and glibc disagree on this, we
have a problem with any user space code that expects sigaltstack->ss_size
to be the same type as size_t (as mandated by the man page).

I wonder if there is another way to address this.

	Arnd
Thread (3 messages) 3 messages, 2 authors, last reply 2016-11-16
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help