[tip:x86/urgent] x86/sigreturn: Use SYSCALL_DEFINE0

2018-03-14 Thread tip-bot for Tautschnig, Michael
Commit-ID: 1227b344de283f96c41de02cde4b26d5290f5302 Gitweb: https://git.kernel.org/tip/1227b344de283f96c41de02cde4b26d5290f5302 Author: Tautschnig, Michael <tauts...@amazon.co.uk> AuthorDate: Wed, 14 Mar 2018 09:41:42 + Committer: Thomas Gleixner <t...@linutronix.de> Com

[tip:x86/urgent] x86/sigreturn: Use SYSCALL_DEFINE0

2018-03-14 Thread tip-bot for Tautschnig, Michael
Commit-ID: 1227b344de283f96c41de02cde4b26d5290f5302 Gitweb: https://git.kernel.org/tip/1227b344de283f96c41de02cde4b26d5290f5302 Author: Tautschnig, Michael AuthorDate: Wed, 14 Mar 2018 09:41:42 + Committer: Thomas Gleixner CommitDate: Wed, 14 Mar 2018 21:43:09 +0100 x86/sigreturn

Re: [PATCH] x86: always use SYSCALL_DEFINE*

2018-03-14 Thread Tautschnig, Michael
Hi Dominik, > On 14 Mar 2018, at 05:48, Dominik Brodowski > wrote: > [...] > ... the ioperm change is already in mainline (did an equivalent change a > couple of days ago), but the sigreturn/rt_sigreturn changes still seem > useful. Could you send a fresh patch with

Re: [PATCH] x86: always use SYSCALL_DEFINE*

2018-03-14 Thread Tautschnig, Michael
Hi Dominik, > On 14 Mar 2018, at 05:48, Dominik Brodowski > wrote: > [...] > ... the ioperm change is already in mainline (did an equivalent change a > couple of days ago), but the sigreturn/rt_sigreturn changes still seem > useful. Could you send a fresh patch with just these two changes; and

[PATCH] x86/sigreturn: use SYSCALL_DEFINE0

2018-03-14 Thread Tautschnig, Michael
All definitions of syscalls in x86 except for those patched here have already been using the appropriate SYSCALL_DEFINE*. Signed-off-by: Michael Tautschnig Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc:

[PATCH] x86/sigreturn: use SYSCALL_DEFINE0

2018-03-14 Thread Tautschnig, Michael
All definitions of syscalls in x86 except for those patched here have already been using the appropriate SYSCALL_DEFINE*. Signed-off-by: Michael Tautschnig Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: Jaswinder Singh Cc: Andi Kleen Cc: Dominik Brodowski ---

[PATCH v2] x86: always use SYSCALL_DEFINE*

2018-03-11 Thread Tautschnig, Michael
All syscall arguments are passed in as types of the same byte size as unsigned long (width of full registers). Using a smaller type without a cast may result in losing bits of information. SYSCALL_DEFINE* introduce adequate type casts. All definitions of syscalls in x86 except for those patched

[PATCH v2] x86: always use SYSCALL_DEFINE*

2018-03-11 Thread Tautschnig, Michael
All syscall arguments are passed in as types of the same byte size as unsigned long (width of full registers). Using a smaller type without a cast may result in losing bits of information. SYSCALL_DEFINE* introduce adequate type casts. All definitions of syscalls in x86 except for those patched

Re: [PATCH] x86: always use SYSCALL_DEFINE*

2018-03-10 Thread Tautschnig, Michael
On 10 Mar 2018, at 20:55, Tautschnig, Michael <tauts...@amazon.co.uk> wrote: > > All syscall arguments are passed in as types of the same byte size as > unsigned long (width of full registers). Using a smaller type without a > cast may result in losing bits of informati

Re: [PATCH] x86: always use SYSCALL_DEFINE*

2018-03-10 Thread Tautschnig, Michael
On 10 Mar 2018, at 20:55, Tautschnig, Michael wrote: > > All syscall arguments are passed in as types of the same byte size as > unsigned long (width of full registers). Using a smaller type without a > cast may result in losing bits of information. SYSCALL_DEFINE* introduce >

[PATCH] x86: always use SYSCALL_DEFINE*

2018-03-10 Thread Tautschnig, Michael
All syscall arguments are passed in as types of the same byte size as unsigned long (width of full registers). Using a smaller type without a cast may result in losing bits of information. SYSCALL_DEFINE* introduce adequate type casts. All definitions of syscalls in x86 except for those patched

[PATCH] x86: always use SYSCALL_DEFINE*

2018-03-10 Thread Tautschnig, Michael
All syscall arguments are passed in as types of the same byte size as unsigned long (width of full registers). Using a smaller type without a cast may result in losing bits of information. SYSCALL_DEFINE* introduce adequate type casts. All definitions of syscalls in x86 except for those patched

Re: [PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
> On 4 Jul 2016, at 20:27, H. Peter Anvin <h...@zytor.com> wrote: > > On July 4, 2016 6:52:58 AM PDT, "Tautschnig, Michael" <tauts...@amazon.co.uk> > wrote: >> All syscall arguments are passed in as types of the same byte size as >> unsigned long (

Re: [PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
> On 4 Jul 2016, at 20:27, H. Peter Anvin wrote: > > On July 4, 2016 6:52:58 AM PDT, "Tautschnig, Michael" > wrote: >> All syscall arguments are passed in as types of the same byte size as >> unsigned long (width of full registers). Using a smaller type with

Re: [PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
> On 4 Jul 2016, at 16:59, Arnd Bergmann <a...@arndb.de> wrote: > > On Monday, July 4, 2016 2:47:10 PM CEST Tautschnig, Michael wrote: >> Thanks a lot for the immediate feedback. >> >>> On 4 Jul 2016, at 16:28, Andi Kleen <a...@linux.intel.com> wrote: &

Re: [PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
> On 4 Jul 2016, at 16:59, Arnd Bergmann wrote: > > On Monday, July 4, 2016 2:47:10 PM CEST Tautschnig, Michael wrote: >> Thanks a lot for the immediate feedback. >> >>> On 4 Jul 2016, at 16:28, Andi Kleen wrote: >>> >>> On Mon, Jul 04, 201

Re: [PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
Thanks a lot for the immediate feedback. > On 4 Jul 2016, at 16:28, Andi Kleen <a...@linux.intel.com> wrote: > > On Mon, Jul 04, 2016 at 01:52:58PM +0000, Tautschnig, Michael wrote: >> All syscall arguments are passed in as types of the same byte size as >> unsigned lo

Re: [PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
Thanks a lot for the immediate feedback. > On 4 Jul 2016, at 16:28, Andi Kleen wrote: > > On Mon, Jul 04, 2016 at 01:52:58PM +, Tautschnig, Michael wrote: >> All syscall arguments are passed in as types of the same byte size as >> unsigned long (width of full regist

[PATCH] scripts: Fix size mismatch of kexec_purgatory_size

2016-07-04 Thread Tautschnig, Michael
bin2c is used to create a valid C file out of a binary file where two symbols will be globally defined: and _size. is passed as the first parameter of the host binary. Building using goto-cc reported that the purgatory binary code (the only current user of this utility) declares

[PATCH] scripts: Fix size mismatch of kexec_purgatory_size

2016-07-04 Thread Tautschnig, Michael
bin2c is used to create a valid C file out of a binary file where two symbols will be globally defined: and _size. is passed as the first parameter of the host binary. Building using goto-cc reported that the purgatory binary code (the only current user of this utility) declares

[PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
All syscall arguments are passed in as types of the same byte size as unsigned long (width of full registers). Using a smaller type without a cast may result in losing bits of information. In all other instances apart from the ones fixed by the patch the code explicitly introduces type casts

[PATCH] Syscall arguments are unsigned long (full registers)

2016-07-04 Thread Tautschnig, Michael
All syscall arguments are passed in as types of the same byte size as unsigned long (width of full registers). Using a smaller type without a cast may result in losing bits of information. In all other instances apart from the ones fixed by the patch the code explicitly introduces type casts