* [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t
[not found] <20170806164428.2273-1-mikko.rapeli@iki.fi>
@ 2017-08-06 16:44 ` Mikko Rapeli
2017-08-07 15:12 ` Arnd Bergmann
2017-08-08 23:15 ` Dmitry V. Levin
0 siblings, 2 replies; 4+ messages in thread
From: Mikko Rapeli @ 2017-08-06 16:44 UTC (permalink / raw)
To: linux-kernel, linux-api; +Cc: Mikko Rapeli, kexec, Eric Biederman
Fixes userspace compilation error:
error: unknown type name ‘size_t’
size_t bufsz;
Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: kexec@lists.infradead.org
Cc: Eric Biederman <ebiederm@xmission.com>
---
include/uapi/linux/kexec.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h
index aae5ebf2022b..f964d83b2757 100644
--- a/include/uapi/linux/kexec.h
+++ b/include/uapi/linux/kexec.h
@@ -51,9 +51,9 @@
*/
struct kexec_segment {
const void *buf;
- size_t bufsz;
+ __kernel_size_t bufsz;
const void *mem;
- size_t memsz;
+ __kernel_size_t memsz;
};
#endif /* __KERNEL__ */
--
2.13.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t
2017-08-06 16:44 ` [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t Mikko Rapeli
@ 2017-08-07 15:12 ` Arnd Bergmann
2017-08-08 23:15 ` Dmitry V. Levin
1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2017-08-07 15:12 UTC (permalink / raw)
To: Mikko Rapeli; +Cc: Linux API, kexec, Linux Kernel Mailing List, Eric Biederman
On Sun, Aug 6, 2017 at 6:44 PM, Mikko Rapeli <mikko.rapeli@iki.fi> wrote:
> Fixes userspace compilation error:
>
> error: unknown type name ‘size_t’
> size_t bufsz;
>
> Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
> Cc: kexec@lists.infradead.org
> Cc: Eric Biederman <ebiederm@xmission.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t
2017-08-06 16:44 ` [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t Mikko Rapeli
2017-08-07 15:12 ` Arnd Bergmann
@ 2017-08-08 23:15 ` Dmitry V. Levin
[not found] ` <20170808225739.GF10552@altlinux.org>
1 sibling, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2017-08-08 23:15 UTC (permalink / raw)
To: Mikko Rapeli; +Cc: linux-api, kexec, linux-kernel, Eric Biederman
[-- Attachment #1.1: Type: text/plain, Size: 962 bytes --]
On Sun, Aug 06, 2017 at 06:44:12PM +0200, Mikko Rapeli wrote:
> Fixes userspace compilation error:
>
> error: unknown type name ‘size_t’
> size_t bufsz;
>
> Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
> Cc: kexec@lists.infradead.org
> Cc: Eric Biederman <ebiederm@xmission.com>
> ---
> include/uapi/linux/kexec.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h
> index aae5ebf2022b..f964d83b2757 100644
> --- a/include/uapi/linux/kexec.h
> +++ b/include/uapi/linux/kexec.h
> @@ -51,9 +51,9 @@
> */
> struct kexec_segment {
> const void *buf;
> - size_t bufsz;
> + __kernel_size_t bufsz;
> const void *mem;
> - size_t memsz;
> + __kernel_size_t memsz;
No, this is definitely wrong as it breaks x32.
I submitted an alternative fix some time ago, see
http://lkml.kernel.org/r/20170222224646.GC14311@altlinux.org
--
ldv
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v06 05/36] uapi linux/sysctl.h: use __kernel_size_t instead of size_t
[not found] ` <20170808223420.GA10552@altlinux.org>
@ 2017-08-09 7:18 ` Mikko Rapeli
0 siblings, 0 replies; 4+ messages in thread
From: Mikko Rapeli @ 2017-08-09 7:18 UTC (permalink / raw)
To: Dmitry V. Levin, linux-kernel, linux-api, Al Viro, Arnd Bergmann,
H . Peter Anvin, Thomas Gleixner, Ingo Molnar, x86,
reiserfs-devel
Cc: linux-arch, H . J . Lu, Joel Scherpelz, kexec, Russell King,
Matthew Whitehead, Eric Biederman, David S . Miller,
linux-arm-kernel, Lorenzo Colitti
Hi Dmitry and thanks for the comments.
I have only one question: why haven't your patches been applied yet?
-Mikko
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-09 7:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170806164428.2273-1-mikko.rapeli@iki.fi>
2017-08-06 16:44 ` [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t Mikko Rapeli
2017-08-07 15:12 ` Arnd Bergmann
2017-08-08 23:15 ` Dmitry V. Levin
[not found] ` <20170808225739.GF10552@altlinux.org>
[not found] ` <20170808225417.GE10552@altlinux.org>
[not found] ` <20170808225026.GD10552@altlinux.org>
[not found] ` <20170808224555.GC10552@altlinux.org>
[not found] ` <20170808224253.GB10552@altlinux.org>
[not found] ` <20170808223420.GA10552@altlinux.org>
2017-08-09 7:18 ` [PATCH v06 05/36] uapi linux/sysctl.h: " Mikko Rapeli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox