[PATCH] MAINTAINERS: add btrfs file entries

2017-03-02 Thread Dmitry V. Levin
Add file entries for btrfs header files. Signed-off-by: Dmitry V. Levin Acked-by: David Sterba --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0001835..04a758f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2904,6 +2904,8 @@ T:git

[PATCH] uapi: fix linux/if_pppol2tp.h userspace compilation errors

2017-02-14 Thread Dmitry V. Levin
l2tp: deprecate PPPOL2TP_MSG_* in favour of L2TP_MSG_*") Signed-off-by: Dmitry V. Levin --- include/uapi/linux/if_pppol2tp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/if_pppol2tp.h b/include/uapi/linux/if_pppol2tp.h index 6418c4d..54a404e 100644 ---

Re: [PATCH] uapi: fix linux/if_pppol2tp.h userspace compilation errors

2017-02-14 Thread Dmitry V. Levin
On Tue, Feb 14, 2017 at 02:37:23PM -0500, David Miller wrote: > From: "Dmitry V. Levin" > Date: Tue, 14 Feb 2017 13:33:53 +0300 > > > In file included from /usr/include/linux/l2tp.h:12:0, > > from /usr/include/linux/if_pppol2tp.h:21, > >

[PATCH v2] uapi: fix linux/if_pppol2tp.h userspace compilation errors

2017-02-14 Thread Dmitry V. Levin
: 47c3e7783be4 ("net: l2tp: deprecate PPPOL2TP_MSG_* in favour of L2TP_MSG_*") Signed-off-by: Dmitry V. Levin --- v2: change uapi/linux/l2tp.h to fix include/uapi/linux/l2tp.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/l2tp.h b/include/

[PATCH] uapi: fix linux/btrfs.h userspace compilation error

2017-02-15 Thread Dmitry V. Levin
Stop using NULL to fix the following linux/btrfs.h userspace compilation error: /usr/include/linux/btrfs.h: In function 'btrfs_err_str': /usr/include/linux/btrfs.h:740:11: error: 'NULL' undeclared (first use in this function) return NULL; Signed-off-by: Dmitry V. Levin --- include/uapi

[PATCH] uapi: fix linux/mqueue.h userspace compilation errors

2017-02-15 Thread Dmitry V. Levin
"uapi: Use __kernel_long_t in struct mq_attr") Signed-off-by: Dmitry V. Levin --- include/uapi/linux/mqueue.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/mqueue.h b/include/uapi/linux/mqueue.h index d0a2b8e..4170778 100644 --- a/include/uapi/linux/mqueue.h +++

[PATCH] uapi: fix linux/dlm_netlink.h userspace compilation error

2017-02-15 Thread Dmitry V. Levin
Include to fix the following linux/dlm_netlink.h userspace compilation error: /usr/include/linux/dlm_netlink.h:35:21: error: 'DLM_RESNAME_MAXLEN' undeclared here (not in a function) char resource_name[DLM_RESNAME_MAXLEN]; Signed-off-by: Dmitry V. Levin --- include/uapi/linux/dlm_netlink.h

[PATCH] uapi: fix linux/target_core_user.h userspace compilation errors

2017-02-15 Thread Dmitry V. Levin
: error: unknown type name 'uint8_t' uint8_t __pad1; /usr/include/linux/target_core_user.h:119:4: error: unknown type name 'uint16_t' uint16_t __pad2; /usr/include/linux/target_core_user.h:120:4: error: unknown type name 'uint32_t' uint32_t __pad3; Signed-off-by: Dmitry V. Levin --- include

[PATCH] uapi: fix linux/ipv6_route.h userspace compilation errors

2017-02-15 Thread Dmitry V. Levin
rtmsg_src; /ust/include/linux/ipv6_route.h:44:19: error: field 'rtmsg_gateway' has incomplete type struct in6_addr rtmsg_gateway; Signed-off-by: Dmitry V. Levin --- include/uapi/linux/ipv6_route.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ipv6_route.h b/include

[PATCH] uapi: fix linux/mroute6.h userspace compilation errors

2017-02-15 Thread Dmitry V. Levin
/mroute6.h:132:18: error: field 'im6_src' has incomplete type struct in6_addr im6_src, im6_dst; /usr/include/linux/mroute6.h:132:27: error: field 'im6_dst' has incomplete type struct in6_addr im6_src, im6_dst; Signed-off-by: Dmitry V. Levin --- include/uapi/linux/mroute6.h | 1 + 1 file changed, 1

[PATCH] uapi: fix linux/mroute.h userspace compilation errors

2017-02-15 Thread Dmitry V. Levin
incomplete type struct in_addr im_src,im_dst; /usr/include/linux/mroute.h:109:24: error: field 'im_dst' has incomplete type struct in_addr im_src,im_dst; Signed-off-by: Dmitry V. Levin --- include/uapi/linux/mroute.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux

[PATCH 1/2] uapi: fix linux/rds.h userspace compilation errors

2017-02-15 Thread Dmitry V. Levin
flags; /usr/include/linux/rds.h:270:2: error: unknown type name 'uint64_t' uint64_t user_token; /usr/include/linux/rds.h:274:2: error: unknown type name 'uint64_t' uint64_t user_token; /usr/include/linux/rds.h:275:2: error: unknown type name 'int32_t' int32_t status; Signed-off-by: Dmitry V

[PATCH 2/2] uapi: fix linux/rds.h userspace compilation error

2017-02-15 Thread Dmitry V. Levin
incomplete type struct sockaddr_storage dest_addr; Signed-off-by: Dmitry V. Levin --- include/uapi/linux/rds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/rds.h b/include/uapi/linux/rds.h index 3ff5cc2..804c9b2 100644 --- a/include/uapi/linux/rds.h +++ b

[PATCH v2] btrfs: remove btrfs_err_str function from uapi/linux/btrfs.h

2017-02-15 Thread Dmitry V. Levin
' undeclared (first use in this function) return NULL; Suggested-by: Jeff Mahoney Signed-off-by: Dmitry V. Levin --- v2: remove btrfs_err_str rather than fix it include/uapi/linux/btrfs.h | 27 --- 1 file changed, 27 deletions(-) diff --git a/include/uapi/linux

[PATCH v2] uapi: fix linux/mroute6.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
/mroute6.h:132:18: error: field 'im6_src' has incomplete type struct in6_addr im6_src, im6_dst; /usr/include/linux/mroute6.h:132:27: error: field 'im6_dst' has incomplete type struct in6_addr im6_src, im6_dst; Signed-off-by: Dmitry V. Levin --- v2: Cc'ed netdev include/uapi/linux/mroute6.h | 1

[PATCH v2] uapi: fix linux/ipv6_route.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
rtmsg_src; /ust/include/linux/ipv6_route.h:44:19: error: field 'rtmsg_gateway' has incomplete type struct in6_addr rtmsg_gateway; Signed-off-by: Dmitry V. Levin --- v2: Cc'ed netdev include/uapi/linux/ipv6_route.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux

[PATCH v2] uapi: fix linux/mroute.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
incomplete type struct in_addr im_src,im_dst; /usr/include/linux/mroute.h:109:24: error: field 'im_dst' has incomplete type struct in_addr im_src,im_dst; Signed-off-by: Dmitry V. Levin --- v2: Cc'ed netdev include/uapi/linux/mroute.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 1/2] uapi: fix linux/rds.h userspace compilation errors

2017-02-16 Thread Dmitry V. Levin
flags; /usr/include/linux/rds.h:270:2: error: unknown type name 'uint64_t' uint64_t user_token; /usr/include/linux/rds.h:274:2: error: unknown type name 'uint64_t' uint64_t user_token; /usr/include/linux/rds.h:275:2: error: unknown type name 'int32_t' int32_t status; Signed-off-by: Dmitry V

[PATCH v2 2/2] uapi: fix linux/rds.h userspace compilation error

2017-02-16 Thread Dmitry V. Levin
incomplete type struct sockaddr_storage dest_addr; Signed-off-by: Dmitry V. Levin --- v2: Cc'ed netdev include/uapi/linux/rds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/rds.h b/include/uapi/linux/rds.h index 3ff5cc2..804c9b2 100644 --- a/include/uapi

[PATCH] uapi: fix linux/if.h userspace compilation errors

2017-02-20 Thread Dmitry V. Levin
et al members being of type struct sockaddr. Signed-off-by: Dmitry V. Levin --- include/uapi/linux/if.h | 4 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h index 1158a04..259617a 100644 --- a/include/uapi/linux/if.h +++ b/include/uapi/linux

Re: + uapi-fix-linux-sysctlh-userspace-compilation-errors.patch added to -mm tree

2017-02-24 Thread Dmitry V. Levin
On Fri, Feb 24, 2017 at 05:35:33PM +0300, Alexey Dobriyan wrote: > On Thu, Feb 23, 2017 at 02:44:31PM -0800, a...@linux-foundation.org wrote: > > /usr/include/linux/sysctl.h:38:2: error: unknown type name 'size_t' > > size_t *oldlenp; > > /usr/include/linux/sysctl.h:40:2: error: unknown type

[PATCH] uapi: fix drm/omap_drm.h userspace compilation errors

2017-02-25 Thread Dmitry V. Levin
: unknown type name 'uint32_t' uint32_t __pad; Fixes: ef6503e89194 ("drm: Kbuild: add omap_drm.h to the installed headers") Signed-off-by: Dmitry V. Levin --- include/uapi/drm/omap_drm.h | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-)

[PATCH] uapi: fix asm/signal.h userspace compilation errors

2017-02-25 Thread Dmitry V. Levin
n32, however, #include seems to be the most straightforward way to obtain the definition for sigaltstack.ss_size's type. Signed-off-by: Dmitry V. Levin --- include/uapi/asm-generic/signal.h | 3 +++ arch/alpha/include/uapi/asm/signal.h | 3 +++ arch/arm/include/uapi/asm/signal.h

[PATCH] uapi: fix asm/ipcbuf.h userspace compilation errors

2017-02-26 Thread Dmitry V. Levin
-generic/ipcbuf.h:30:2: error: unknown type name '__kernel_ulong_t' __kernel_ulong_t __unused1; /usr/include/asm-generic/ipcbuf.h:31:2: error: unknown type name '__kernel_ulong_t' __kernel_ulong_t __unused2; Signed-off-by: Dmitry V. Levin --- include/uapi/asm-generic/ipcbuf.h | 2 ++ arch

Re: + uapi-fix-linux-sysctlh-userspace-compilation-errors.patch added to -mm tree

2017-02-27 Thread Dmitry V. Levin
On Mon, Feb 27, 2017 at 12:38:16PM +0300, Alexey Dobriyan wrote: > On Sat, Feb 25, 2017 at 1:35 AM, Dmitry V. Levin wrote: > > On Fri, Feb 24, 2017 at 05:35:33PM +0300, Alexey Dobriyan wrote: > >> On Thu, Feb 23, 2017 at 02:44:31PM -0800, a...@linux-foundation.org wrote: > &g

Re: + uapi-fix-linux-sysctlh-userspace-compilation-errors.patch added to -mm tree

2017-02-27 Thread Dmitry V. Levin
On Sat, Feb 25, 2017 at 01:35:51AM +0300, Dmitry V. Levin wrote: > On Fri, Feb 24, 2017 at 05:35:33PM +0300, Alexey Dobriyan wrote: > > On Thu, Feb 23, 2017 at 02:44:31PM -0800, a...@linux-foundation.org wrote: > > > /usr/include/linux/sysctl.h:38:2: error: unknown

[RFC PATCH] uapi: move struct reiserfs_security_handle out from linux/reiserfs_xattr.h

2017-02-27 Thread Dmitry V. Levin
linux/reiserfs_xattr.h userspace compilation error: /usr/include/linux/reiserfs_xattr.h:21:2: error: unknown type name 'size_t' size_t length; Signed-off-by: Dmitry V. Levin --- Perhaps the whole file could be moved out from the UAPI. I'm not sure about that, though. fs/reiserfs/xattr.h

[RFC PATCH] uapi: fix linux/packet_diag.h userspace compilation error

2017-02-27 Thread Dmitry V. Levin
the numeric value of MAX_ADDR_LEN is used, uapi/linux/if_link.h already does the same, and there are no UAPI headers besides these two that use MAX_ADDR_LEN. The alternative fix would be to include which pulls in other headers and a lot of definitions with them. Signed-off-by: Dmitry V. Levin --- I'm

Re: [PATCH v7 7/8] uapi: export all headers under uapi directories

2017-02-27 Thread Dmitry V. Levin
On Mon, Feb 27, 2017 at 05:01:55PM +0100, Nicolas Dichtel wrote: > Le 24/02/2017 à 17:49, Nicolas Dichtel a écrit : > > Regularly, when a new header is created in include/uapi/, the developer > > forgets to add it in the corresponding Kbuild file. This error is usually > > detected after the

Re: Revised statx(2) man page for review

2017-04-25 Thread Dmitry V. Levin
On Tue, Apr 25, 2017 at 01:14:26PM +0200, Michael Kerrisk (man-pages) wrote: [...] >The file timestamps are structures of the following type: > >struct statx_timestamp { >__s64 tv_sec;/* Seconds since the Epoch (UNIX time) */ >__s32 tv_nsec;

[PATCH v2] uapi: change the type of struct statx_timestamp.tv_nsec to unsigned

2017-04-26 Thread Dmitry V. Levin
n immense confusion. Fix this source of confusion by changing the type of struct statx_timestamp.tv_nsec from __s32 to __u32. Fixes: a528d35e8bfc ("statx: Add a system call to make enhanced file info available") Signed-off-by: Dmitry V. Levin --- v1: fix misleading comments v2: change

Re: [PATCH] uapi: fix linux/nfsd/cld.h userspace compilation errors

2017-03-09 Thread Dmitry V. Levin
is should be safe to apply for 4.11 as well, but it's surely not urgent. > --b. > > On Wed, Mar 01, 2017 at 03:12:03AM +0300, Dmitry V. Levin wrote: > > Include and consistently use types it provides > > to fix the following linux/nfsd/cld.h userspace compilation errors: &g

Re: Compat 32-bit syscall entry from 64-bit task!?

2017-03-13 Thread Dmitry V. Levin
On Wed, Mar 08, 2017 at 08:39:55PM -0800, Andrew Lutomirski wrote: > On Wed, Mar 8, 2017 at 3:41 PM, Dmitry V. Levin wrote: [...] > > Is there any progress with this (or any alternative) solution? > > > > I see the kernel side has changed a bit, and the strace part > >

[PATCH v3 2/2] x86/uapi: fix asm/signal.h userspace compilation error

2017-03-02 Thread Dmitry V. Levin
Replace size_t with __kernel_uapi_size_t to fix the following asm/signal.h userspace compilation error: /usr/include/asm/signal.h:126:2: error: unknown type name 'size_t' size_t ss_size; Signed-off-by: Dmitry V. Levin Link: http://lkml.kernel.org/r/20170302001853.ga27...@altlinux.org

[PATCH 1/2] uapi: introduce __kernel_uapi_size_t

2017-03-02 Thread Dmitry V. Levin
API headers, e.g. in cases when size_t might differ from __kernel_size_t. Signed-off-by: Dmitry V. Levin --- include/uapi/asm-generic/posix_types.h | 10 ++ arch/x86/include/uapi/asm/posix_types_x32.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/include/uapi/asm-gene

Re: [PATCH] x86: use compat version for preadv2 and pwritev2

2016-05-12 Thread Dmitry V. Levin
On Thu, May 12, 2016 at 09:30:37AM +0200, Christoph Hellwig wrote: > On Wed, May 11, 2016 at 11:48:17AM +0300, Dmitry V. Levin wrote: > > Similar to preadv and pwritev, preadv2 and pwritev2 need compat entries > > in the 32-bit syscall table. > > > > This bug was

[PATCH] x86: use compat version for preadv2 and pwritev2

2016-05-11 Thread Dmitry V. Levin
Similar to preadv and pwritev, preadv2 and pwritev2 need compat entries in the 32-bit syscall table. This bug was found by strace test suite. Fixes: 4babf2c5efb7 ("x86: wire up preadv2 and pwritev2") Signed-off-by: Dmitry V. Levin --- arch/x86/entry/syscalls/syscall_32.tbl | 4 ++

Re: [PATCH] x86: use compat version for preadv2 and pwritev2

2016-05-11 Thread Dmitry V. Levin
On Wed, May 11, 2016 at 12:14:11PM +0200, Thomas Gleixner wrote: > On Wed, 11 May 2016, Dmitry V. Levin wrote: > > Similar to preadv and pwritev, preadv2 and pwritev2 need compat entries > > in the 32-bit syscall table. > > So this is 2016 and we added a syscalls which r

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

2016-04-26 Thread Dmitry V. Levin
trace test suite. Cc: sta...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- arch/parisc/kernel/syscall.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index c976ebf..57b4836 100644 --- a/arch/parisc/kernel/sysca

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

2016-04-26 Thread Dmitry V. Levin
On Tue, Apr 26, 2016 at 10:45:11PM -0400, Mike Frysinger wrote: > 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 w

[PATCH] x86/signal: fix restart_syscall number for x32 tasks

2015-11-30 Thread Dmitry V. Levin
/tests/restart_syscall.test Reported-and-tested-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin Cc: sta...@vger.kernel.org --- arch/x86/kernel/signal.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c

[RESEND PATCH 4/4] vfs: show_vfsstat: remove redundant initialization and check of error code

2015-12-02 Thread Dmitry V. Levin
Date: Wed, 18 Nov 2015 21:09:45 + As err variable is now always checked right after each assignment, its initialization is redundant and could be safely removed. For the same reason, the last check of err is also redundant and could be removed as well. Signed-off-by: Dmitry V. Levin

[RESEND PATCH 3/4] vfs: show_mountinfo: cleanup error code checks

2015-12-02 Thread Dmitry V. Levin
Wed, 18 Nov 2015 21:08:33 + Check err variable right after each assignment. This change makes initialization of err redundant, so remove the initialization. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions

[RESEND PATCH 2/4] vfs: show_vfsmnt: remove redundant initialization of error code

2015-12-02 Thread Dmitry V. Levin
Date: Wed, 18 Nov 2015 21:07:10 + As err variable is now always checked right after the first assignment, its initialization is redundant and could be safely removed. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[RESEND v2 PATCH 1/4] vfs: show_vfsstat: do not ignore errors from show_devname method

2015-12-02 Thread Dmitry V. Levin
Date: Thu, 19 Mar 2015 11:10:54 + Explicitly check show_devname method return code and bail out in case of an error. This fixes regression introduced by commit 9d4d65748a5c. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs

Re: [PATCH 8/8] Use __kernel_long_t in struct mq_attr

2015-11-23 Thread Dmitry V. Levin
On Fri, Dec 27, 2013 at 02:14:24PM -0800, H.J. Lu wrote: > Both x32 and x86-64 use the same struct mq_attr for system calls. But > x32 long is 32-bit. This patch replaces long with __kernel_long_t in > struct mq_attr. > > Signed-off-by: H.J. Lu > --- > include/uapi/linux/mqueue.h | 10

[PATCH] sh64: fix __NR_fgetxattr

2015-12-08 Thread Dmitry V. Levin
According to arch/sh/kernel/syscalls_64.S and common sense, __NR_fgetxattr has to be defined to 259, but it doesn't. Instead, it's defined to 269, which is of course used by another syscall, __NR_sched_setaffinity in this case. This bug was found by strace test suite. Signed-off-by: Dmitry V

[RESEND PATCH] vfs: show_vfsstat: do not ignore errors from show_devname method

2015-11-18 Thread Dmitry V. Levin
Date: Thu, 19 Mar 2015 11:10:54 + Explicitly check show_devname method return code and bail out in case of an error. This fixes regression introduced by commit 9d4d65748a5c. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs

[PATCH 1/3] vfs: show_vfsmnt: remove redundant initialization of error code

2015-11-18 Thread Dmitry V. Levin
As err variable is now always checked right after the first assignment, its initialization is redundant and could be safely removed. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc_namespace.c b/fs

[PATCH 2/3] vfs: show_mountinfo: cleanup error code checks

2015-11-18 Thread Dmitry V. Levin
Check err variable right after each assignment. This change makes initialization of err redundant, so remove the initialization. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/fs/proc_namespace.c

[PATCH 3/3] vfs: show_vfsstat: remove redundant initialization and check of error code

2015-11-18 Thread Dmitry V. Levin
As err variable is now always checked right after each assignment, its initialization is redundant and could be safely removed. For the same reason, the last check of err is also redundant and could be removed as well. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 5 ++--- 1 file

[PATCH] unix_diag: fix incorrect sign extension in unix_lookup_by_ino

2016-02-18 Thread Dmitry V. Levin
to incorrect comparison on 64-bit architectures for inode numbers greater than INT_MAX. This bug was found by strace test suite. Signed-off-by: Dmitry V. Levin Cc: --- net/unix/diag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/unix/diag.c b/net/unix/diag.c index c512f64

[RESEND v3 PATCH] vfs: show_vfsstat: do not ignore errors from show_devname method

2016-02-18 Thread Dmitry V. Levin
Date: Thu, 19 Mar 2015 11:10:54 + Explicitly check show_devname method return code and bail out in case of an error. This fixes regression introduced by commit 9d4d65748a5c. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs

[RESEND v4 PATCH] vfs: show_vfsstat: do not ignore errors from show_devname method

2016-03-20 Thread Dmitry V. Levin
Date: Thu, 19 Mar 2015 11:10:54 + Explicitly check show_devname method return code and bail out in case of an error. This fixes regression introduced by commit 9d4d65748a5c. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs

[PATCH] uapi: use __u64 instead of u64

2016-05-30 Thread Dmitry V. Levin
This bug was found by strace test suite. Fixes: 6b526ed70cf1 ("btrfs: introduce device delete by devid") Signed-off-by: Dmitry V. Levin --- include/uapi/linux/btrfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/btrfs.h b/include/uapi/lin

[PATCH] x86/signal: Cleanup get_nr_restart_syscall

2015-12-18 Thread Dmitry V. Levin
Check for TS_COMPAT instead of TIF_IA32 to distinguish ia32 tasks from 64-bit tasks. Check for __X32_SYSCALL_BIT only if CONFIG_X86_X32_ABI is defined. Signed-off-by: Dmitry V. Levin Cc: Elvira Khabirova Cc: Andy Lutomirski --- arch/x86/kernel/signal.c | 13 - 1 file changed, 8

[PATCH v2] x86/signal: Cleanup get_nr_restart_syscall

2015-12-19 Thread Dmitry V. Levin
Check for TS_COMPAT instead of TIF_IA32 to distinguish ia32 tasks from 64-bit tasks. Check for __X32_SYSCALL_BIT iff CONFIG_X86_X32_ABI is defined. Signed-off-by: Dmitry V. Levin Cc: Elvira Khabirova Cc: Andy Lutomirski --- v2: reintroduced __NR_restart_syscall | (regs->orig

[PATCH] sparc64: fix incorrect sign extension in sys_sparc64_personality

2015-12-26 Thread Dmitry V. Levin
; to "long int" that happens on return from sys_sparc64_personality. For example, a userspace call personality((unsigned) -EINVAL) will result to any subsequent personality call, including absolutely harmless read-only personality(0x) call, failing with errno set to EINVAL. Signed-off-by: Dmitry V.

Re: [PATCH] x86/signal: fix restart_syscall number for x32 tasks

2015-12-12 Thread Dmitry V. Levin
On Mon, Dec 07, 2015 at 03:22:06PM -0800, Andy Lutomirski wrote: > [not real reply because I'm using a bad internet connection right now > and I'm not set up with my usual Gmane reply hack right now] > > The new code is (whitespace-damaged): > > static inline unsigned long

Re: Linux include/uapi/linux/libc-compat.h and Musl include/netinet/in.h incompatibility for __UAPI_DEF_IN6_ADDR_ALT

2021-03-29 Thread Dmitry V. Levin
Hi, On Tue, Mar 30, 2021 at 12:30:52PM +1300, Chris Packham wrote: > Hi, > > I've come over from https://github.com/strace/strace/issues/177 > there's a bit of context there. > > Crosstool-ng has hit a problem when building a recent enough version > of strace in a configuration that uses musl

Re: [PATCH] ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign

2021-03-03 Thread Dmitry V. Levin
On Wed, Mar 03, 2021 at 03:30:19PM +0100, Oleg Nesterov wrote: > On 03/02, Sergei Trofimovich wrote: > > > > > --- a/arch/ia64/include/asm/syscall.h > > > +++ b/arch/ia64/include/asm/syscall.h > > > @@ -32,7 +32,7 @@ static inline void syscall_rollback(struct task_struct > > > *task, > > >

Re: [PATCH] ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign

2021-03-03 Thread Dmitry V. Levin
> } > > Tested on v5.10 on rx3600 machine (ia64 9040 CPU). > > CC: linux-i...@vger.kernel.org > CC: linux-kernel@vger.kernel.org > CC: Andrew Morton > Reported-by: Dmitry V. Levin > Bug: https://bugs.gentoo.org/769614 > Signed-off-by: Sergei Trofimovich > ---

Re: [PATCH] ia64: fix ia64_syscall_get_set_arguments() for break-based syscalls

2021-03-03 Thread Dmitry V. Levin
dy enforces locals=0 and fixes `break`. > > Tested on v5.10 on rx3600 machine (ia64 9040 CPU). > > CC: Oleg Nesterov > CC: linux-i...@vger.kernel.org > CC: linux-kernel@vger.kernel.org > CC: Andrew Morton > Reported-by: Dmitry V. Levin > Bug: https://bugs.gentoo.

[PATCH] sparc: make copy_thread honor pid namespaces

2021-02-17 Thread Dmitry V. Levin
, "wait"); } return !WIFEXITED(status) || WEXITSTATUS(status) != 0; } EOF $ sh -c ./a.out current: 10001, parent: 1, fork returned: 10002 current: 1, parent: 0, fork returned: 10001 Cc: Eric W. Biederman Cc: sta...@vger.kernel.org Signed-off-by: Dmitry V. Levin ---

[PATCH v2] sparc: make copy_thread honor pid namespaces

2021-02-19 Thread Dmitry V. Levin
rent: 10001, fork returned: 10001 current: 10001, parent: 1, fork returned: 10003 current: 1, parent: 0, fork returned: 10001 This bug was found by strace test suite. Cc: Eric W. Biederman Cc: sta...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- v2: Replaced task_active_pid_ns(p) wi

Re: [PATCH] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request

2021-02-22 Thread Dmitry V. Levin
On Mon, Feb 22, 2021 at 11:04:43AM +0100, Piotr Figiel wrote: [...] > --- a/include/uapi/linux/ptrace.h > +++ b/include/uapi/linux/ptrace.h > @@ -102,6 +102,14 @@ struct ptrace_syscall_info { > }; > }; > > +#define PTRACE_GET_RSEQ_CONFIGURATION0x420f > + > +struct

Re: [PATCH] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request

2021-02-22 Thread Dmitry V. Levin
On Mon, Feb 22, 2021 at 09:53:10AM -0500, Mathieu Desnoyers wrote: > - On Feb 22, 2021, at 6:57 AM, Dmitry V. Levin l...@altlinux.org wrote: > > On Mon, Feb 22, 2021 at 11:04:43AM +0100, Piotr Figiel wrote: [...] > >> +#ifdef CONFIG_RSEQ > >> +static long ptrace_ge

[PATCH] uapi: nfnetlink_cthelper.h: fix userspace compilation error

2021-02-22 Thread Dmitry V. Levin
Apparently, and could not be included into the same compilation unit because of a cut-and-paste typo in the former header. Fixes: 12f7a505331e6 ("netfilter: add user-space connection tracking helper infrastructure") Cc: # v3.6 Signed-off-by: Dmitry V. Levin --- include/uapi/linux

[tip:x86/urgent] x86/signal: Fix restart_syscall number for x32 tasks

2015-12-05 Thread tip-bot for Dmitry V. Levin
Commit-ID: 22eab1108781eff09961ae7001704f7bd8fb1dce Gitweb: http://git.kernel.org/tip/22eab1108781eff09961ae7001704f7bd8fb1dce Author: Dmitry V. Levin <l...@altlinux.org> AuthorDate: Tue, 1 Dec 2015 00:54:36 +0300 Committer: Thomas Gleixner <t...@linutronix.de> CommitDate

[tip:x86/urgent] x86: Use compat version for preadv2 and pwritev2

2016-05-12 Thread tip-bot for Dmitry V. Levin
Commit-ID: 9a7a076e8e4ffcfec05e3cafe4c4e31d41ddbaa0 Gitweb: http://git.kernel.org/tip/9a7a076e8e4ffcfec05e3cafe4c4e31d41ddbaa0 Author: Dmitry V. Levin <l...@altlinux.org> AuthorDate: Wed, 11 May 2016 11:48:17 +0300 Committer: Thomas Gleixner <t...@linutronix.de> CommitDate:

[tip:sched/urgent] sched/headers/uapi: Fix linux/sched/types.h userspace compilation errors

2017-07-08 Thread tip-bot for Dmitry V. Levin
Commit-ID: 242fc35290bd8cf0effc6e3474e3a417985de2f3 Gitweb: http://git.kernel.org/tip/242fc35290bd8cf0effc6e3474e3a417985de2f3 Author: Dmitry V. Levin <l...@altlinux.org> AuthorDate: Wed, 5 Jul 2017 19:23:28 +0300 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Sat, 8

[tip:x86/pti] x86/uapi: Fix asm/bootparam.h userspace compilation errors

2018-04-05 Thread tip-bot for Dmitry V. Levin
Commit-ID: 9820e1c3376c641299624dd24646aed3167ad5b1 Gitweb: https://git.kernel.org/tip/9820e1c3376c641299624dd24646aed3167ad5b1 Author: Dmitry V. Levin <l...@altlinux.org> AuthorDate: Thu, 5 Apr 2018 07:32:10 +0300 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Thu, 5

[tip:x86/pti] x86/uapi: Fix asm/bootparam.h userspace compilation errors

2018-04-05 Thread tip-bot for Dmitry V. Levin
Commit-ID: 9820e1c3376c641299624dd24646aed3167ad5b1 Gitweb: https://git.kernel.org/tip/9820e1c3376c641299624dd24646aed3167ad5b1 Author: Dmitry V. Levin AuthorDate: Thu, 5 Apr 2018 07:32:10 +0300 Committer: Ingo Molnar CommitDate: Thu, 5 Apr 2018 10:05:21 +0200 x86/uapi: Fix asm

[tip:sched/urgent] sched/headers/uapi: Fix linux/sched/types.h userspace compilation errors

2017-07-08 Thread tip-bot for Dmitry V. Levin
Commit-ID: 242fc35290bd8cf0effc6e3474e3a417985de2f3 Gitweb: http://git.kernel.org/tip/242fc35290bd8cf0effc6e3474e3a417985de2f3 Author: Dmitry V. Levin AuthorDate: Wed, 5 Jul 2017 19:23:28 +0300 Committer: Ingo Molnar CommitDate: Sat, 8 Jul 2017 11:17:55 +0200 sched/headers/uapi: Fix

[tip:x86/urgent] x86: Use compat version for preadv2 and pwritev2

2016-05-12 Thread tip-bot for Dmitry V. Levin
Commit-ID: 9a7a076e8e4ffcfec05e3cafe4c4e31d41ddbaa0 Gitweb: http://git.kernel.org/tip/9a7a076e8e4ffcfec05e3cafe4c4e31d41ddbaa0 Author: Dmitry V. Levin AuthorDate: Wed, 11 May 2016 11:48:17 +0300 Committer: Thomas Gleixner CommitDate: Thu, 12 May 2016 14:27:13 +0200 x86: Use compat

[tip:x86/urgent] x86/signal: Fix restart_syscall number for x32 tasks

2015-12-05 Thread tip-bot for Dmitry V. Levin
Commit-ID: 22eab1108781eff09961ae7001704f7bd8fb1dce Gitweb: http://git.kernel.org/tip/22eab1108781eff09961ae7001704f7bd8fb1dce Author: Dmitry V. Levin AuthorDate: Tue, 1 Dec 2015 00:54:36 +0300 Committer: Thomas Gleixner CommitDate: Sat, 5 Dec 2015 18:52:14 +0100 x86/signal: Fix

<    2   3   4   5   6   7