[PATCH] vt: change SGR 21 to follow the standards

2018-01-29 Thread Mike Frysinger
From: Mike Frysinger <vap...@chromium.org> ECMA-48 [1] (aka ISO 6429) has defined SGR 21 as "doubly underlined" since at least March 1984. The Linux kernel has treated it as SGR 22 "normal intensity" since it was added in Linux-0.96b in June 1992. Before that, it

[PATCH] vt: change SGR 21 to follow the standards

2018-01-29 Thread Mike Frysinger
From: Mike Frysinger ECMA-48 [1] (aka ISO 6429) has defined SGR 21 as "doubly underlined" since at least March 1984. The Linux kernel has treated it as SGR 22 "normal intensity" since it was added in Linux-0.96b in June 1992. Before that, it was simply ignored. Other ter

Re: [PATCH] groups: don't return unmapped gids in getgroups(2)

2017-02-17 Thread Mike Frysinger
On Fri, Feb 17, 2017 at 12:53 PM, Aleksa Sarai wrote: > One thing overlooked by commit 9cc46516ddf4 ("userns: Add a knob to > disable setgroups on a per user namespace basis") is that because > setgroups(2) no longer works in user namespaces it doesn't make any > sense to be

Re: [PATCH] groups: don't return unmapped gids in getgroups(2)

2017-02-17 Thread Mike Frysinger
On Fri, Feb 17, 2017 at 12:53 PM, Aleksa Sarai wrote: > One thing overlooked by commit 9cc46516ddf4 ("userns: Add a knob to > disable setgroups on a per user namespace basis") is that because > setgroups(2) no longer works in user namespaces it doesn't make any > sense to be

Re: seccomp: dump core when using SECCOMP_RET_KILL

2017-01-24 Thread Mike Frysinger
(core dumped) +++ > 767 +++ killed by SIGSYS (core dumped) +++ > 766 <... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSYS && > WCOREDUMP(s)}], 0, NULL) = 31 > 766 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=31, si_ > > Steps to repro

Re: seccomp: dump core when using SECCOMP_RET_KILL

2017-01-24 Thread Mike Frysinger
767 +++ killed by SIGSYS (core dumped) +++ > 766 <... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSYS && > WCOREDUMP(s)}], 0, NULL) = 31 > 766 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=31, si_ > > Steps to reprod

Re: [PATCH] seccomp: dump core when using SECCOMP_RET_KILL

2017-01-22 Thread Mike Frysinger
On Sun, Jan 22, 2017 at 4:10 PM, James Morris wrote: > On Fri, 20 Jan 2017, Kees Cook wrote: > > Yup, I think this is fine. The additional kernel code executed before > > the do_exit() is relatively limited, and is equivalent to leaving > > kill(self, SIGSEGV) exposed in a seccomp filter. Setting

Re: [PATCH] seccomp: dump core when using SECCOMP_RET_KILL

2017-01-22 Thread Mike Frysinger
On Sun, Jan 22, 2017 at 4:10 PM, James Morris wrote: > On Fri, 20 Jan 2017, Kees Cook wrote: > > Yup, I think this is fine. The additional kernel code executed before > > the do_exit() is relatively limited, and is equivalent to leaving > > kill(self, SIGSEGV) exposed in a seccomp filter. Setting

[PATCH] seccomp: dump core when using SECCOMP_RET_KILL

2017-01-19 Thread Mike Frysinger
From: Mike Frysinger <vap...@chromium.org> The SECCOMP_RET_KILL mode is documented as immediately killing the process as if a SIGSYS had been sent and not caught (similar to a SIGKILL). However, a SIGSYS is documented as triggering a coredump which does not happen today. This has the adv

[PATCH] seccomp: dump core when using SECCOMP_RET_KILL

2017-01-19 Thread Mike Frysinger
From: Mike Frysinger The SECCOMP_RET_KILL mode is documented as immediately killing the process as if a SIGSYS had been sent and not caught (similar to a SIGKILL). However, a SIGSYS is documented as triggering a coredump which does not happen today. This has the advantage of being able to more

[PATCH] uapi: mqueue.h: add missing linux/types.h include

2017-01-19 Thread Mike Frysinger
From: Mike Frysinger <vap...@chromium.org> Commit 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 changed the types from long to __kernel_long_t, but didn't add a linux/types.h include. Code that tries to include this header directly breaks: /usr/include/linux/mqueue.h:26:2: error: unknown typ

[PATCH] uapi: mqueue.h: add missing linux/types.h include

2017-01-19 Thread Mike Frysinger
From: Mike Frysinger Commit 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 changed the types from long to __kernel_long_t, but didn't add a linux/types.h include. Code that tries to include this header directly breaks: /usr/include/linux/mqueue.h:26:2: error: unknown type name '__kernel_long_t

[PATCH] timerfd: export defines to userspace

2016-12-18 Thread Mike Frysinger
Since userspace is expected to call timerfd syscalls directly with these flags/ioctls, make sure we export them so they don't have to duplicate the values themselves. Acked-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Mike Frysinger <vap...@gentoo.org> --- ping -- this wa

[PATCH] timerfd: export defines to userspace

2016-12-18 Thread Mike Frysinger
Since userspace is expected to call timerfd syscalls directly with these flags/ioctls, make sure we export them so they don't have to duplicate the values themselves. Acked-by: Thomas Gleixner Signed-off-by: Mike Frysinger --- ping -- this was sent about two years ago now include/linux

Re: [glibc] preadv/pwritev question

2016-05-31 Thread Mike Frysinger
On 31 May 2016 17:00, Chris Metcalf wrote: > On 5/31/2016 4:04 PM, Yury Norov wrote: > > In path a63c7fa18a (Add sysdeps/unix/sysv/linux/generic/.) you add > > this: > > +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c > > > > [...] > > > > +static ssize_t > > +do_preadv (int fd, const

Re: [glibc] preadv/pwritev question

2016-05-31 Thread Mike Frysinger
On 31 May 2016 17:00, Chris Metcalf wrote: > On 5/31/2016 4:04 PM, Yury Norov wrote: > > In path a63c7fa18a (Add sysdeps/unix/sysv/linux/generic/.) you add > > this: > > +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c > > > > [...] > > > > +static ssize_t > > +do_preadv (int fd, const

Re: [PATCH] parisc: fix a bug when syscall number of tracee is __NR_Linux_syscalls

2016-04-26 Thread Mike Frysinger
On 27 Apr 2016 04:56, Dmitry V. Levin wrote: > Do not load one entry beyond the end of the syscall table when the > syscall number of a traced process equals to __NR_Linux_syscalls. > Similar bug with regular processes was fixed by commit 3bb457af4fa8 > ("[PARISC] Fix bug when syscall nr is

Re: [PATCH] parisc: fix a bug when syscall number of tracee is __NR_Linux_syscalls

2016-04-26 Thread Mike Frysinger
On 27 Apr 2016 04:56, Dmitry V. Levin wrote: > Do not load one entry beyond the end of the syscall table when the > syscall number of a traced process equals to __NR_Linux_syscalls. > Similar bug with regular processes was fixed by commit 3bb457af4fa8 > ("[PARISC] Fix bug when syscall nr is

[PATCH] uapi: mqueue.h: add missing linux/types.h include

2015-10-28 Thread Mike Frysinger
From: Mike Frysinger Commit 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 changed the types from long to __kernel_long_t, but didn't add a linux/types.h include. Code that tries to include this header directly breaks: /usr/include/linux/mqueue.h:26:2: error: unknown type name '__kernel_long_t

[PATCH] uapi: mqueue.h: add missing linux/types.h include

2015-10-28 Thread Mike Frysinger
From: Mike Frysinger <vap...@chromium.org> Commit 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 changed the types from long to __kernel_long_t, but didn't add a linux/types.h include. Code that tries to include this header directly breaks: /usr/include/linux/mqueue.h:26:2: error: unknown typ

Re: [PATCH] userns/capability: Add user namespace capability

2015-10-18 Thread Mike Frysinger
On 18 Oct 2015 22:13, Tobias Markus wrote: > On 17.10.2015 22:17, Richard Weinberger wrote: > > On Sat, Oct 17, 2015 at 5:58 PM, Tobias Markus wrote: > >> One question remains though: Does this break userspace executables that > >> expect being able to create user namespaces without priviledge?

Re: [PATCH] userns/capability: Add user namespace capability

2015-10-18 Thread Mike Frysinger
On 18 Oct 2015 22:13, Tobias Markus wrote: > On 17.10.2015 22:17, Richard Weinberger wrote: > > On Sat, Oct 17, 2015 at 5:58 PM, Tobias Markus wrote: > >> One question remains though: Does this break userspace executables that > >> expect being able to create user namespaces

Re: handling of supplemental groups with userns

2015-09-28 Thread Mike Frysinger
On 22 Sep 2015 17:52, Mike Frysinger wrote: > On 22 Sep 2015 14:40, Eric W. Biederman wrote: > > Mike Frysinger writes: > > > in the mean time, a "quick" fix might be to change new_idmap_permitted > > > to walk all the extents, and if all the ranges are s

Re: handling of supplemental groups with userns

2015-09-28 Thread Mike Frysinger
On 22 Sep 2015 17:52, Mike Frysinger wrote: > On 22 Sep 2015 14:40, Eric W. Biederman wrote: > > Mike Frysinger writes: > > > in the mean time, a "quick" fix might be to change new_idmap_permitted > > > to walk all the extents, and if all the ranges are s

Re: handling of supplemental groups with userns

2015-09-22 Thread Mike Frysinger
On 22 Sep 2015 14:40, Eric W. Biederman wrote: > Mike Frysinger writes: > > is it possible to map in supplemental groups in a userns when the user > > lacks setgid/etc... capabilities in the parent ns ? it doesn't seem > > like it's currently possible, but is there a

handling of supplemental groups with userns

2015-09-22 Thread Mike Frysinger
is it possible to map in supplemental groups in a userns when the user lacks setgid/etc... capabilities in the parent ns ? it doesn't seem like it's currently possible, but is there a reason to not enable it ? basically i have a build tool that i want to isolate a bit, but it requires access to

handling of supplemental groups with userns

2015-09-22 Thread Mike Frysinger
is it possible to map in supplemental groups in a userns when the user lacks setgid/etc... capabilities in the parent ns ? it doesn't seem like it's currently possible, but is there a reason to not enable it ? basically i have a build tool that i want to isolate a bit, but it requires access to

Re: handling of supplemental groups with userns

2015-09-22 Thread Mike Frysinger
On 22 Sep 2015 14:40, Eric W. Biederman wrote: > Mike Frysinger writes: > > is it possible to map in supplemental groups in a userns when the user > > lacks setgid/etc... capabilities in the parent ns ? it doesn't seem > > like it's currently possible, but is there a

[PATCH] elf-em.h: move EM_MICROBLAZE to the common header

2015-08-18 Thread Mike Frysinger
defined when we try to use the AUDIT_ARCH_MICROBLAZE symbol. Signed-off-by: Mike Frysinger --- arch/microblaze/include/uapi/asm/elf.h | 3 ++- include/uapi/linux/elf-em.h| 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/include/uapi/asm/elf.h b/arch

[PATCH] elf-em.h: move EM_MICROBLAZE to the common header

2015-08-18 Thread Mike Frysinger
defined when we try to use the AUDIT_ARCH_MICROBLAZE symbol. Signed-off-by: Mike Frysinger vap...@gentoo.org --- arch/microblaze/include/uapi/asm/elf.h | 3 ++- include/uapi/linux/elf-em.h| 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/include/uapi/asm

Re: [PATCH v2 1/3] vt: add cursor blink interval escape sequence

2015-03-27 Thread Mike Frysinger
On 26 Mar 2015 13:54, Scot Doyle wrote: > Add an escape sequence to specify the current console's cursor blink > interval. The interval is specified as a number of milliseconds until > the next cursor display state toggle, from 50 to 65535. /proc/loadavg > did not show a difference with a one msec

Re: [PATCH v2 1/3] vt: add cursor blink interval escape sequence

2015-03-27 Thread Mike Frysinger
On 26 Mar 2015 13:54, Scot Doyle wrote: Add an escape sequence to specify the current console's cursor blink interval. The interval is specified as a number of milliseconds until the next cursor display state toggle, from 50 to 65535. /proc/loadavg did not show a difference with a one msec

[PATCH] netlink: drop (int) cast on length arg in NLMSG_OK

2015-03-04 Thread Mike Frysinger
ger expressions [-Wsign-compare] Lets drop the int cast on the first sizeof. This way, once the user casts len to an unsigned value, everything shakes out correctly. Signed-off-by: Mike Frysinger --- include/uapi/linux/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incl

[PATCH] netlink: drop (int) cast on length arg in NLMSG_OK

2015-03-04 Thread Mike Frysinger
expressions [-Wsign-compare] Lets drop the int cast on the first sizeof. This way, once the user casts len to an unsigned value, everything shakes out correctly. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/uapi/linux/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] MAINTAINERS: fix file encoding

2015-02-28 Thread Mike Frysinger
This file is largely UTF-8 except for this one entry which is ISO-8859-1. By mixing the encodings, grep thinks the file is binary. Signed-off-by: Mike Frysinger --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index eaf9996..7ee86dd

[PATCH] MAINTAINERS: fix file encoding

2015-02-28 Thread Mike Frysinger
This file is largely UTF-8 except for this one entry which is ISO-8859-1. By mixing the encodings, grep thinks the file is binary. Signed-off-by: Mike Frysinger vap...@gentoo.org --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: Bug#772807: binfmt-support: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument

2014-12-30 Thread Mike Frysinger
On 12 Dec 2014 06:01, Al Viro wrote: > On Fri, Dec 12, 2014 at 02:51:55PM +1030, Arthur Marsh wrote: > > 6b899c4e9a049dfca759d990bd53b14f81c3626c is the first bad commit > > commit 6b899c4e9a049dfca759d990bd53b14f81c3626c > > Author: Mike Frysinger > > Date: Wed

[PATCH] timerfd: export defines to userspace

2014-12-30 Thread Mike Frysinger
Since userspace is expected to call timerfd syscalls directly with these flags/ioctls, make sure we export them so they don't have to duplicate the values themselves. Signed-off-by: Mike Frysinger --- include/linux/timerfd.h | 20 +--- include/uapi/linux/Kbuild| 1

[PATCH] timerfd: export defines to userspace

2014-12-30 Thread Mike Frysinger
Since userspace is expected to call timerfd syscalls directly with these flags/ioctls, make sure we export them so they don't have to duplicate the values themselves. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/linux/timerfd.h | 20 +--- include/uapi/linux

Re: Bug#772807: binfmt-support: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument

2014-12-30 Thread Mike Frysinger
On 12 Dec 2014 06:01, Al Viro wrote: On Fri, Dec 12, 2014 at 02:51:55PM +1030, Arthur Marsh wrote: 6b899c4e9a049dfca759d990bd53b14f81c3626c is the first bad commit commit 6b899c4e9a049dfca759d990bd53b14f81c3626c Author: Mike Frysinger vap...@gentoo.org Date: Wed Dec 10 15:52:08 2014

Re: [PATCH 1/2 v2] binfmt_misc: add comments & debug logs

2014-10-28 Thread Mike Frysinger
On 28 Oct 2014 15:58, Andrew Morton wrote: > On Mon, 20 Oct 2014 19:54:14 -0400 Mike Frysinger wrote: > > On 20 Oct 2014 15:59, Joe Perches wrote: > > > On Mon, 2014-10-20 at 18:45 -0400, Mike Frysinger wrote: > > > > diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc

Re: [PATCH 1/2 v2] binfmt_misc: add comments debug logs

2014-10-28 Thread Mike Frysinger
On 28 Oct 2014 15:58, Andrew Morton wrote: On Mon, 20 Oct 2014 19:54:14 -0400 Mike Frysinger wrote: On 20 Oct 2014 15:59, Joe Perches wrote: On Mon, 2014-10-20 at 18:45 -0400, Mike Frysinger wrote: diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c [] @@ -323,46 +343,113 @@ static

Re: [PATCH 1/2 v2] binfmt_misc: add comments & debug logs

2014-10-20 Thread Mike Frysinger
On 20 Oct 2014 15:59, Joe Perches wrote: > On Mon, 2014-10-20 at 18:45 -0400, Mike Frysinger wrote: > > diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c > [] > > @@ -323,46 +343,113 @@ static Node *create_entry(const char __user *buffer, > > size_t count) > [] > >

[PATCH 2/2 v2] binfmt_misc: clean up code style a bit

2014-10-20 Thread Mike Frysinger
Clean up various coding style issues that checkpatch complains about. No functional changes here. Signed-off-by: Mike Frysinger --- v2 - rebased fs/binfmt_misc.c | 295 +++ 1 file changed, 146 insertions(+), 149 deletions(-) diff

[PATCH 1/2 v2] binfmt_misc: add comments & debug logs

2014-10-20 Thread Mike Frysinger
: C (preserve creds) The [raw] lines show us exactly what was received from userspace. The lines after that show us how the kernel has decoded things. Signed-off-by: Mike Frysinger --- v2: - add explicit trailing \n to all the pr_debug lines fs/binfmt_misc.c |

Re: [PATCH 1/2] binfmt_misc: add comments & debug logs

2014-10-20 Thread Mike Frysinger
On 19 Oct 2014 17:41, Joe Perches wrote: > On Sun, 2014-10-19 at 19:03 -0400, Mike Frysinger wrote: > > let's deploy extensive pr_debug markers at > > logical parse points, and add comments to the dense parsing logic. > [] > > diff --git a/fs/binfmt_misc.c b/fs/binfmt_mi

Re: [PATCH 1/2] binfmt_misc: add comments debug logs

2014-10-20 Thread Mike Frysinger
On 19 Oct 2014 17:41, Joe Perches wrote: On Sun, 2014-10-19 at 19:03 -0400, Mike Frysinger wrote: let's deploy extensive pr_debug markers at logical parse points, and add comments to the dense parsing logic. [] diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c [] @@ -259,14 +270,17

[PATCH 1/2 v2] binfmt_misc: add comments debug logs

2014-10-20 Thread Mike Frysinger
(preserve creds) The [raw] lines show us exactly what was received from userspace. The lines after that show us how the kernel has decoded things. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2: - add explicit trailing \n to all the pr_debug lines fs/binfmt_misc.c | 136

[PATCH 2/2 v2] binfmt_misc: clean up code style a bit

2014-10-20 Thread Mike Frysinger
Clean up various coding style issues that checkpatch complains about. No functional changes here. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - rebased fs/binfmt_misc.c | 295 +++ 1 file changed, 146 insertions(+), 149

Re: [PATCH 1/2 v2] binfmt_misc: add comments debug logs

2014-10-20 Thread Mike Frysinger
On 20 Oct 2014 15:59, Joe Perches wrote: On Mon, 2014-10-20 at 18:45 -0400, Mike Frysinger wrote: diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c [] @@ -323,46 +343,113 @@ static Node *create_entry(const char __user *buffer, size_t count) [] + if (e-mask

[PATCH 1/2] binfmt_misc: add comments & debug logs

2014-10-19 Thread Mike Frysinger
: C (preserve creds) The [raw] lines show us exactly what was received from userspace. The lines after that show us how the kernel has decoded things. Signed-off-by: Mike Frysinger --- fs/binfmt_misc.c | 136 +-- 1 file changed, 121 inserti

[PATCH 2/2] binfmt_misc: clean up code style a bit

2014-10-19 Thread Mike Frysinger
Clean up various coding style issues that checkpatch complains about. No functional changes here. Signed-off-by: Mike Frysinger --- fs/binfmt_misc.c | 295 +++ 1 file changed, 146 insertions(+), 149 deletions(-) diff --git a/fs/binfmt_misc.c

[PATCH 1/2] binfmt_misc: add comments debug logs

2014-10-19 Thread Mike Frysinger
(preserve creds) The [raw] lines show us exactly what was received from userspace. The lines after that show us how the kernel has decoded things. Signed-off-by: Mike Frysinger vap...@gentoo.org --- fs/binfmt_misc.c | 136 +-- 1 file changed, 121

[PATCH 2/2] binfmt_misc: clean up code style a bit

2014-10-19 Thread Mike Frysinger
Clean up various coding style issues that checkpatch complains about. No functional changes here. Signed-off-by: Mike Frysinger vap...@gentoo.org --- fs/binfmt_misc.c | 295 +++ 1 file changed, 146 insertions(+), 149 deletions(-) diff --git

[PATCH 1/2] binfmt_misc: expand the register format limit to 1920 bytes

2014-09-01 Thread Mike Frysinger
r, we leave a bit of space to easily round up to 2k. 1920 is just as arbitrary as 256 ;). Signed-off-by: Mike Frysinger --- Documentation/binfmt_misc.txt | 2 +- fs/binfmt_misc.c | 19 +-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Documenta

[PATCH 2/2] binfmt_misc: touch up documentation a bit

2014-09-01 Thread Mike Frysinger
Line wrap the content to 80 cols, and add more details to various fields to match the code. Drop reference to a website that does not exist anymore. Signed-off-by: Mike Frysinger --- Documentation/binfmt_misc.txt | 48 +-- 1 file changed, 28 insertions

[PATCH 2/2] binfmt_misc: touch up documentation a bit

2014-09-01 Thread Mike Frysinger
Line wrap the content to 80 cols, and add more details to various fields to match the code. Drop reference to a website that does not exist anymore. Signed-off-by: Mike Frysinger vap...@gentoo.org --- Documentation/binfmt_misc.txt | 48 +-- 1 file changed

[PATCH 1/2] binfmt_misc: expand the register format limit to 1920 bytes

2014-09-01 Thread Mike Frysinger
as arbitrary as 256 ;). Signed-off-by: Mike Frysinger vap...@gentoo.org --- Documentation/binfmt_misc.txt | 2 +- fs/binfmt_misc.c | 19 +-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Documentation/binfmt_misc.txt b/Documentation/binfmt_misc.txt index

Re: [RFA][PATCH 24/27] Blackfin: ftrace: Remove check of obsolete variable function_trace_stop

2014-06-26 Thread Mike Frysinger
he asm looks correct -- it's only using scratch registers, and the rest of the code doesn't rely on the state in that ifdef (by design). Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part.

Re: [RFA][PATCH 24/27] Blackfin: ftrace: Remove check of obsolete variable function_trace_stop

2014-06-26 Thread Mike Frysinger
correct -- it's only using scratch registers, and the rest of the code doesn't rely on the state in that ifdef (by design). Acked-by: Mike Frysinger vap...@gentoo.org -mike signature.asc Description: This is a digitally signed message part.

[tip:x86/x32] x86, x32: Use compat shims for io_{setup,submit}

2014-05-04 Thread tip-bot for Mike Frysinger
Commit-ID: 7fd44dacdd803c0bbf38bf478d51d280902bb0f1 Gitweb: http://git.kernel.org/tip/7fd44dacdd803c0bbf38bf478d51d280902bb0f1 Author: Mike Frysinger AuthorDate: Sun, 4 May 2014 20:43:15 -0400 Committer: H. Peter Anvin CommitDate: Sun, 4 May 2014 17:49:22 -0700 x86, x32: Use compat

[PATCH] x32: use compat shims for io_{setup,submit}

2014-05-04 Thread Mike Frysinger
convert io_getevents to the compat func as its only purpose is to handle the timespec struct, and the x32 ABI uses 64bit times. With this change, the libaio package can now pass its testsuite when built for the x32 ABI. Signed-off-by: Mike Frysinger --- arch/x86/syscalls/syscall_64.tbl | 6

[PATCH] x32: use compat shims for io_{setup,submit}

2014-05-04 Thread Mike Frysinger
convert io_getevents to the compat func as its only purpose is to handle the timespec struct, and the x32 ABI uses 64bit times. With this change, the libaio package can now pass its testsuite when built for the x32 ABI. Signed-off-by: Mike Frysinger vap...@gentoo.org --- arch/x86/syscalls/syscall_64

[tip:x86/x32] x86, x32: Use compat shims for io_{setup,submit}

2014-05-04 Thread tip-bot for Mike Frysinger
Commit-ID: 7fd44dacdd803c0bbf38bf478d51d280902bb0f1 Gitweb: http://git.kernel.org/tip/7fd44dacdd803c0bbf38bf478d51d280902bb0f1 Author: Mike Frysinger vap...@gentoo.org AuthorDate: Sun, 4 May 2014 20:43:15 -0400 Committer: H. Peter Anvin h...@zytor.com CommitDate: Sun, 4 May 2014 17:49:22

Re: For review: open_by_name_at(2) man page [v2]

2014-03-19 Thread Mike Frysinger
On Tue 18 Mar 2014 13:55:15 Michael Kerrisk wrote: > The > .I flags > argument is a bit mask constructed by ORing together > zero or more of the following value: > .TP > .B AT_EMPTY_PATH > Allow > .I pathname > to be an empty string. > See above. > (which may have been obtained using the > .BR

Re: For review: open_by_name_at(2) man page [v2]

2014-03-19 Thread Mike Frysinger
On Tue 18 Mar 2014 13:55:15 Michael Kerrisk wrote: The .I flags argument is a bit mask constructed by ORing together zero or more of the following value: .TP .B AT_EMPTY_PATH Allow .I pathname to be an empty string. See above. (which may have been obtained using the .BR open (2) .B

[PATCH] uapi: dn: pull in ioctl.h header

2014-01-21 Thread Mike Frysinger
This header uses _IOW/_IOR defines but doesn't include ioctl.h for it. If you try to use this w/out including ioctl.h yourself, it can fail to build, so add the explicit include. Signed-off-by: Mike Frysinger --- include/uapi/linux/dn.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] uapi: ppp-ioctl.h: pull in ppp_defs.h

2014-01-21 Thread Mike Frysinger
. Signed-off-by: Mike Frysinger --- include/uapi/linux/ppp-ioctl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ppp-ioctl.h b/include/uapi/linux/ppp-ioctl.h index 2d9a885..63a23a3 100644 --- a/include/uapi/linux/ppp-ioctl.h +++ b/include/uapi/linux/ppp-ioctl.h @@ -12,6

[PATCH] uapi: convert u64 to __u64 in exported headers

2014-01-21 Thread Mike Frysinger
The u64 type is not defined in any exported kernel headers, so trying to use it will lead to build failures. Signed-off-by: Mike Frysinger --- include/uapi/linux/nfs4.h | 2 +- include/uapi/linux/perf_event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include

[PATCH] uapi: convert u64 to __u64 in exported headers

2014-01-21 Thread Mike Frysinger
The u64 type is not defined in any exported kernel headers, so trying to use it will lead to build failures. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/uapi/linux/nfs4.h | 2 +- include/uapi/linux/perf_event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] uapi: ppp-ioctl.h: pull in ppp_defs.h

2014-01-21 Thread Mike Frysinger
. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/uapi/linux/ppp-ioctl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ppp-ioctl.h b/include/uapi/linux/ppp-ioctl.h index 2d9a885..63a23a3 100644 --- a/include/uapi/linux/ppp-ioctl.h +++ b/include/uapi/linux/ppp

[PATCH] uapi: dn: pull in ioctl.h header

2014-01-21 Thread Mike Frysinger
This header uses _IOW/_IOR defines but doesn't include ioctl.h for it. If you try to use this w/out including ioctl.h yourself, it can fail to build, so add the explicit include. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/uapi/linux/dn.h | 1 + 1 file changed, 1 insertion

Re: blackfin + dmaengine: conflicting define/enum "DMA_COMPLETE"

2014-01-17 Thread Mike Frysinger
On Saturday 11 January 2014 13:55:15 Marc Kleine-Budde wrote: > On 01/11/2014 07:31 PM, Randy Dunlap wrote: > > On 01/11/2014 10:09 AM, Marc Kleine-Budde wrote: > >> Hello, > >> > >> in current linux-next (and net-next) the compilation of the CAN > >> > >> drivers[1] with ARCH=blackfin fails

Re: blackfin + dmaengine: conflicting define/enum DMA_COMPLETE

2014-01-17 Thread Mike Frysinger
On Saturday 11 January 2014 13:55:15 Marc Kleine-Budde wrote: On 01/11/2014 07:31 PM, Randy Dunlap wrote: On 01/11/2014 10:09 AM, Marc Kleine-Budde wrote: Hello, in current linux-next (and net-next) the compilation of the CAN drivers[1] with ARCH=blackfin fails with: CC [M]

Re: [PATCH] blackfin: Ignore generated uImages

2013-08-28 Thread Mike Frysinger
On Monday 26 August 2013 07:59:05 Mark Brown wrote: > On Sat, Aug 24, 2013 at 06:01:44PM -0400, Mike Frysinger wrote: > > Acked-by: Mike Frysinger > > Thanks. Do you know who might be likely to apply this - MAINTAINERS > lists you? looks like they haven't updated the MAINTAI

Re: [PATCH] blackfin: Ignore generated uImages

2013-08-28 Thread Mike Frysinger
On Monday 26 August 2013 07:59:05 Mark Brown wrote: On Sat, Aug 24, 2013 at 06:01:44PM -0400, Mike Frysinger wrote: Acked-by: Mike Frysinger vap...@gentoo.org Thanks. Do you know who might be likely to apply this - MAINTAINERS lists you? looks like they haven't updated the MAINTAINERS

Re: [trivial PATCH] treewide: Fix printks with 0x%#

2013-08-26 Thread Mike Frysinger
On Thursday 25 July 2013 14:53:25 Joe Perches wrote: > Using 0x%# emits 0x0x. Only one is necessary. sounds like a job for checkpatch.pl :) -mike signature.asc Description: This is a digitally signed message part.

Re: [trivial PATCH] treewide: Fix printks with 0x%#

2013-08-26 Thread Mike Frysinger
On Thursday 25 July 2013 14:53:25 Joe Perches wrote: Using 0x%# emits 0x0x. Only one is necessary. sounds like a job for checkpatch.pl :) -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] ARM: Add ".text.unlikely" and ".text.hot" to arm unwind tables

2013-08-24 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] blackfin: Ignore generated uImages

2013-08-24 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] Omnikey Cardman 4000: pull in ioctl.h in user header

2013-08-24 Thread Mike Frysinger
On Thursday 22 August 2013 18:55:45 Andrew Morton wrote: > On Fri, 16 Aug 2013 14:07:09 -0400 Mike Frysinger wrote: > > This file uses the ioctl helpers (_IOR/_IOW/etc...), so include ioctl.h > > for the definitions. > > > > ... > > > > --- a/include/uapi/l

Re: [PATCH] Omnikey Cardman 4000: pull in ioctl.h in user header

2013-08-24 Thread Mike Frysinger
On Thursday 22 August 2013 18:55:45 Andrew Morton wrote: On Fri, 16 Aug 2013 14:07:09 -0400 Mike Frysinger wrote: This file uses the ioctl helpers (_IOR/_IOW/etc...), so include ioctl.h for the definitions. ... --- a/include/uapi/linux/cm4000_cs.h +++ b/include/uapi/linux

Re: [PATCH] blackfin: Ignore generated uImages

2013-08-24 Thread Mike Frysinger
Acked-by: Mike Frysinger vap...@gentoo.org -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] ARM: Add .text.unlikely and .text.hot to arm unwind tables

2013-08-24 Thread Mike Frysinger
Acked-by: Mike Frysinger vap...@gentoo.org -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH v2 0/8] turbostat: Build fixes, 32-bit support, and cleanups

2013-08-20 Thread Mike Frysinger
Acked-by: Mike Frysinger -mik -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v2 6/8] turbostat: Factor out common function to open file and exit on failure

2013-08-20 Thread Mike Frysinger
On Tue, Aug 20, 2013 at 8:20 PM, Josh Triplett wrote: > +FILE *fopen_or_die(const char *path, const char *mode) > +{ > + FILE *filep = fopen(path, "r"); not a big deal, but would be nice to add the "e" flag -mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH v2 6/8] turbostat: Factor out common function to open file and exit on failure

2013-08-20 Thread Mike Frysinger
On Tue, Aug 20, 2013 at 8:20 PM, Josh Triplett j...@joshtriplett.org wrote: +FILE *fopen_or_die(const char *path, const char *mode) +{ + FILE *filep = fopen(path, r); not a big deal, but would be nice to add the e flag -mike -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH v2 0/8] turbostat: Build fixes, 32-bit support, and cleanups

2013-08-20 Thread Mike Frysinger
Acked-by: Mike Frysinger vap...@chromium.org -mik -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH] Omnikey Cardman 4000: pull in ioctl.h in user header

2013-08-16 Thread Mike Frysinger
This file uses the ioctl helpers (_IOR/_IOW/etc...), so include ioctl.h for the definitions. Signed-off-by: Mike Frysinger --- include/uapi/linux/cm4000_cs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/cm4000_cs.h b/include/uapi/linux/cm4000_cs.h index bc51f77

[PATCH] Omnikey Cardman 4000: pull in ioctl.h in user header

2013-08-16 Thread Mike Frysinger
This file uses the ioctl helpers (_IOR/_IOW/etc...), so include ioctl.h for the definitions. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/uapi/linux/cm4000_cs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/cm4000_cs.h b/include/uapi/linux/cm4000_cs.h

[tip:perf/urgent] perf tools: Fix -ldw/ -lelf link test when static linking

2013-07-12 Thread tip-bot for Mike Frysinger
Commit-ID: d14c496588733ec1b586ec068932c1db228dd770 Gitweb: http://git.kernel.org/tip/d14c496588733ec1b586ec068932c1db228dd770 Author: Mike Frysinger AuthorDate: Thu, 9 May 2013 00:17:44 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 10 Jul 2013 13:41:12 -0300 perf tools

[tip:perf/urgent] perf tools: Fix -ldw/ -lelf link test when static linking

2013-07-12 Thread tip-bot for Mike Frysinger
Commit-ID: d14c496588733ec1b586ec068932c1db228dd770 Gitweb: http://git.kernel.org/tip/d14c496588733ec1b586ec068932c1db228dd770 Author: Mike Frysinger vap...@chromium.org AuthorDate: Thu, 9 May 2013 00:17:44 -0400 Committer: Arnaldo Carvalho de Melo a...@redhat.com CommitDate: Wed, 10 Jul

Re: [PATCH] ARM: Avoid extra calls to the C compiler

2013-06-25 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] ARM: Avoid extra calls to the C compiler

2013-06-25 Thread Mike Frysinger
Acked-by: Mike Frysinger vap...@gentoo.org -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH 11/32] blackfin: delete __cpuinit usage from all blackfin files

2013-06-24 Thread Mike Frysinger
Acked-by: Mike Frysinger -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH 11/32] blackfin: delete __cpuinit usage from all blackfin files

2013-06-24 Thread Mike Frysinger
Acked-by: Mike Frysinger vap...@gentoo.org -mike signature.asc Description: This is a digitally signed message part.

Re: [uclinux-dist-devel] [PATCH 01/11] cpufreq: blackfin: enable driver for CONFIG_BFIN_CPU_FREQ

2013-06-16 Thread Mike Frysinger
On Wednesday 12 June 2013 04:15:08 Viresh Kumar wrote: > By mistake blackfin's cpufreq driver is enabled when CONFIG_BLACKFIN was > present, whereas it should have been enabled only when CONFIG_BFIN_CPU_FREQ > is present. Acked-by: Mike Frysinger -mike signature.asc De

Re: [uclinux-dist-devel] [PATCH 01/11] cpufreq: blackfin: enable driver for CONFIG_BFIN_CPU_FREQ

2013-06-16 Thread Mike Frysinger
On Wednesday 12 June 2013 04:15:08 Viresh Kumar wrote: By mistake blackfin's cpufreq driver is enabled when CONFIG_BLACKFIN was present, whereas it should have been enabled only when CONFIG_BFIN_CPU_FREQ is present. Acked-by: Mike Frysinger vap...@gentoo.org -mike signature.asc Description

Re: [PATCH] arch: blackfin: kernel: sprintf(), need avoid NUL for '%s'

2013-06-15 Thread Mike Frysinger
i think you mean NULL instead of NUL that said, the kernel is smart enough to replace NULL with "(null)", so i don't see much point in this patch -mike On Wed, May 29, 2013 at 5:43 AM, Chen Gang wrote: > > When it is kernel symbol, the 'modname' will be NUL, and the 'symname' > contents the

Re: [PATCH] arch: blackfin: kernel: sprintf(), need avoid NUL for '%s'

2013-06-15 Thread Mike Frysinger
i think you mean NULL instead of NUL that said, the kernel is smart enough to replace NULL with (null), so i don't see much point in this patch -mike On Wed, May 29, 2013 at 5:43 AM, Chen Gang gang.c...@asianux.com wrote: When it is kernel symbol, the 'modname' will be NUL, and the 'symname'

  1   2   3   4   5   6   7   8   9   >