[PATCH 3/3] vfs: make mounts and mountstats honor root dir like mountinfo does

2013-01-29 Thread Dmitry V. Levin
Change show_vfsmnt() and show_vfsstat() to show mountpoints relative to the root directory and skip mountpoints outside of chroot jail the same way as show_mountinfo() does. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions

[PATCH 1/3] Documentation: update seq_file

2013-01-29 Thread Dmitry V. Levin
Starting with commit v3.2-rc4-1-g02125a8, seq_path_root() no longer changes the value of root. Starting with commit v3.2-rc7-104-g8c9379e, some arguments of seq_path() and seq_path_root() are const. Signed-off-by: Dmitry V. Levin --- Documentation/filesystems/seq_file.txt | 12 ++-- 1

[PATCH 2/3] vfs: cleanup show_mountinfo

2013-01-29 Thread Dmitry V. Levin
quot; in show_mountinfo() that holds a copy of struct path root is no longer needed. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 5fe34c3..10aa92d 100644 ---

[PATCH 2/3] vfs: cleanup show_mountinfo

2012-10-17 Thread Dmitry V. Levin
quot; in show_mountinfo() that holds a copy of struct path root is no longer needed. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 5fe34c3..10aa92d 100644 ---

[PATCH 3/3] vfs: make mounts and mountstats honor root dir like mountinfo does

2012-10-17 Thread Dmitry V. Levin
Change show_vfsmnt() and show_vfsstat() to show mountpoints relative to the root directory and skip mountpoints outside of chroot jail the same way as show_mountinfo() does. Signed-off-by: Dmitry V. Levin --- fs/proc_namespace.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions

[PATCH 1/3] Documentation: update seq_file

2012-10-17 Thread Dmitry V. Levin
Starting with commit v3.2-rc4-1-g02125a8, seq_path_root() no longer changes the value of root. Starting with commit v3.2-rc7-104-g8c9379e, some arguments of seq_path() and seq_path_root() are const. Signed-off-by: Dmitry V. Levin --- Documentation/filesystems/seq_file.txt | 12 ++-- 1

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

2017-11-12 Thread Dmitry V. Levin
ror: unknown type name 'uint32_t' uint32_t num_banks; /* from KFD */ /usr/include/linux/kfd_ioctl.h:258:2: error: unknown type name 'uint32_t' uint32_t num_ranks; /* from KFD */ Fixes: 6a1c9510694fe ("drm/amdkfd: Adding new IOCTL for scratch memory v2") Fixes: 5d71

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

2017-11-12 Thread Dmitry V. Levin
amily */ Fixes: 727f8914477e ("rxrpc: Expose UAPI definitions to userspace") Cc: # v4.14 Signed-off-by: Dmitry V. Levin --- include/uapi/linux/rxrpc.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/rxrpc.h b/include/uapi/linux/rxrpc.

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

2017-11-13 Thread Dmitry V. Levin
for userspace, cleanup this header file further by moving other redundant includes to net/tls.h. Fixes: 3c4d7559159b ("tls: kernel TLS support") Cc: # v4.13+ Signed-off-by: Dmitry V. Levin --- include/net/tls.h| 4 include/uapi/linux/tls.h | 4 2 files changed, 4

[PATCH] uapi: fix sound/skl-tplg-interface.h userspace compilation errors

2018-08-13 Thread Dmitry V. Levin
/sound/skl-tplg-interface.h:223:2: error: unknown type name 'u32' u32 output_pin_type:1; /usr/include/sound/skl-tplg-interface.h:224:2: error: unknown type name 'u32' u32 is_dynamic_in_pin:1; /usr/include/sound/skl-tplg-interface.h:225:2: error: unknown type name 'u32&

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

2018-08-13 Thread Dmitry V. Levin
function) return NULL; Fixes: 6cfd839ae78e ("ALSA: usb-audio: UAC3. Add support for mixer unit.") Cc: # v4.18 Signed-off-by: Dmitry V. Levin --- include/uapi/linux/usb/audio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/usb/audio.h b/includ

Re: [PATCH] uapi: fix linux/usb/audio.h userspace compilation error

2018-08-13 Thread Dmitry V. Levin
On Mon, Aug 13, 2018 at 05:55:25PM +0200, Takashi Iwai wrote: > On Mon, 13 Aug 2018 17:46:51 +0200, Dmitry V. Levin wrote: > > > > Replace NULL with 0 in uac_mixer_unit_bmControls() to fix the following > > linux/usb/audio.h userspace compilation error: > > > > /

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-11 Thread Dmitry V. Levin
Hi, On Mon, Apr 09, 2018 at 06:22:53PM +0300, Dmitry V. Levin wrote: > There seems to be a regression in v4.16 on ppc compat very similar > to sparc compat regression reported earlier at > https://marc.info/?l=linux-sparc&m=151501500704383 . > > The symptoms are exactly

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-12 Thread Dmitry V. Levin
On Thu, Apr 12, 2018 at 10:58:11AM +0100, Russell King - ARM Linux wrote: > On Thu, Apr 12, 2018 at 04:34:35AM +0300, Dmitry V. Levin wrote: > > A similar commit v4.16-rc1~159^2~37 > > ("signal/arm: Document conflicts with SI_USER and SIGFPE") must have > > introdu

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-12 Thread Dmitry V. Levin
On Thu, Apr 12, 2018 at 01:19:49PM +0100, Russell King - ARM Linux wrote: > On Thu, Apr 12, 2018 at 02:03:14PM +0300, Dmitry V. Levin wrote: > > On Thu, Apr 12, 2018 at 10:58:11AM +0100, Russell King - ARM Linux wrote: > > > On Thu, Apr 12, 2018 at 04:34:35AM +0300, Dmi

Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-12 Thread Dmitry V. Levin
On Thu, Apr 12, 2018 at 09:50:26AM -0700, Linus Torvalds wrote: > Does this attached patch perhaps fix the ARM case? > > It just uses FPE_FLTUNK as the default si_code for SIGFPE, which seems > sane enough. And then gets rid of FPE_FIXME, which should resolve the > nasty case. > > Hmm? Entirely u

[PATCH] sparc: fix compat siginfo ABI regression

2018-04-13 Thread Dmitry V. Levin
commit v4.16-11958-g16e205cf42da. This bug was found by strace test suite. Link: https://github.com/strace/strace/issues/21 Fixes: cc731525f26a ("signal: Remove kernel interal si_code magic") Thanks-to: Anatoly Pugachev Signed-off-by: Dmitry V. Levin --- arch/sparc/include/uapi/asm

ppc compat v4.16 regression: sending SIGTRAP or SIGFPE via kill() returns wrong values in si_pid and si_uid

2018-04-09 Thread Dmitry V. Levin
Hi, There seems to be a regression in v4.16 on ppc compat very similar to sparc compat regression reported earlier at https://marc.info/?l=linux-sparc&m=151501500704383 . The symptoms are exactly the same: the same signal_receive test from the strace test suite fails with the same diagnostics: ht

Re: [RFC PATCH v2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-22 Thread Dmitry V. Levin
On Thu, Nov 22, 2018 at 06:55:29AM -0800, Andy Lutomirski wrote: > On Wed, Nov 21, 2018 at 3:56 PM Dmitry V. Levin wrote: > > On Wed, Nov 21, 2018 at 02:56:57PM -0800, Andy Lutomirski wrote: > > > Please cc linux-...@vger.kernel.org for future versions. > > > > >

Re: [RFC PATCH v2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-22 Thread Dmitry V. Levin
On Thu, Nov 22, 2018 at 04:19:10PM -0800, Andy Lutomirski wrote: > On Thu, Nov 22, 2018 at 11:15 AM Dmitry V. Levin wrote: > > > > On Thu, Nov 22, 2018 at 06:55:29AM -0800, Andy Lutomirski wrote: > > > On Wed, Nov 21, 2018 at 3:56 PM Dmitry V. Levin wrote: > > >

Re: Official Linux system wrapper library?

2018-11-23 Thread Dmitry V. Levin
On Fri, Nov 23, 2018 at 12:15:39PM -0800, Daniel Colascione wrote: > On Fri, Nov 23, 2018 at 5:34 AM Florian Weimer wrote: > > > On Mon, Nov 12, 2018 at 12:11 AM, Florian Weimer wrote: > > >> > > >>> If the kernel provides a system call, libc should provide a C wrapper > > >>> for it, even if in th

Re: [PATCH RESEND v3 1/3] ptrace: pass type of a syscall-stop in ptrace_message

2018-11-24 Thread Dmitry V. Levin
On Sat, Nov 24, 2018 at 03:54:02PM -1000, Joey Pabalinas wrote: > On Sun, Nov 25, 2018 at 02:22:27AM +0100, Elvira Khabirova wrote: > > Define two constants, PTRACE_EVENTMSG_SYSCALL_ENTRY and > > PTRACE_EVENTMSG_SYSCALL_EXIT, and place them in ptrace_message > > for the duration of syscall-stops. >

Re: [RFC PATCH v2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Dmitry V. Levin
On Fri, Nov 23, 2018 at 07:01:39AM +0300, Dmitry V. Levin wrote: > On Thu, Nov 22, 2018 at 04:19:10PM -0800, Andy Lutomirski wrote: > > On Thu, Nov 22, 2018 at 11:15 AM Dmitry V. Levin wrote: > > > On Thu, Nov 22, 2018 at 06:55:29AM -0800, Andy Lutomirski wrote: > > >

Re: [RFC PATCH RESEND v3 3/3] ptrace: add PTRACE_EVENT_SECCOMP support to PTRACE_GET_SYSCALL_INFO

2018-11-26 Thread Dmitry V. Levin
On Tue, Nov 27, 2018 at 04:07:32AM +0100, Elvira Khabirova wrote: > On Mon, 26 Nov 2018 15:35:24 +0100, Oleg Nesterov wrote: > > On 11/25, Elvira Khabirova wrote: > > > > > > Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. > > > The information returned is the same as for sysc

Re: [PATCH RESEND v3 1/3] ptrace: pass type of a syscall-stop in ptrace_message

2018-11-26 Thread Dmitry V. Levin
On Tue, Nov 27, 2018 at 03:53:57AM +0100, Elvira Khabirova wrote: > On Mon, 26 Nov 2018 15:56:43 +0100, Oleg Nesterov wrote: > > On 11/25, Elvira Khabirova wrote: > > > > > > + * These values are stored in task->ptrace_message by > > > tracehook_report_syscall_* > > > + * to describe current sysca

[PATCH v2 03/15] Move EM_UNICORE to uapi/linux/elf-em.h

2018-11-19 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- v2: unchanged since v1 arch/unicore32/include/asm/elf.h | 3 +-- include/uapi/linux/elf-em.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/unicore32/include/asm/elf.h b/arch/unicore32/include/asm/elf.h index

[PATCH v2 02/15] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h

2018-11-19 Thread Dmitry V. Levin
generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin Acked-by: Vineet Gupta --- v2: added Acked-by to [PATCH 02/13 v2] arch/arc/include/asm/elf.h | 6 +- include/uapi/linux/elf-em.h | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch

[PATCH v2 01/15] Move EM_HEXAGON to uapi/linux/elf-em.h

2018-11-19 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- v2: unchanged since v1 arch/hexagon/include/asm/elf.h | 6 +- include/uapi/linux/elf-em.h| 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/hexagon/include/asm/elf.h b/arch/hexagon/include/asm/elf.h index

[PATCH v2 05/15] elf-em.h: add EM_XTENSA

2018-11-19 Thread Dmitry V. Levin
://www.sco.com/developers/gabi/2012-12-31/ch4.eheader.html Signed-off-by: Dmitry V. Levin Reviewed-by: Max Filippov --- v2: added Reviewed-by to v1 include/uapi/linux/elf-em.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index ba2e64cdbb6f

[PATCH v2 06/15] m68k: define syscall_get_arch()

2018-11-19 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- v2: unchanged since v1 arch/m68k/include/asm/syscall.h | 12 1 file changed, 12 insertions

[PATCH v2 04/15] elf-em.h: add EM_NDS32

2018-11-19 Thread Dmitry V. Levin
/developers/gabi/2012-12-31/ch4.eheader.html Signed-off-by: Dmitry V. Levin --- v2: unchanged since v1 include/uapi/linux/elf-em.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index a4fba79abbb9..ba2e64cdbb6f 100644 --- a/include

[PATCH v2 11/15] nds32: define syscall_get_arch()

2018-11-19 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- v2: unchanged since [PATCH 10/13 v2] arch/nds32/include/asm/syscall.h | 8 include/uapi/linux

[PATCH] mips: fix mips_get_syscall_arg o32 check

2018-11-21 Thread Dmitry V. Levin
nable HAVE_ARCH_TRACEHOOK.") Signed-off-by: Dmitry V. Levin --- arch/mips/include/asm/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h index 0170602a1e4e..6cf8ffb5367e 100644 --- a/arch/mips/include/asm/syscall.h

Re: [RFC PATCH v2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-21 Thread Dmitry V. Levin
On Wed, Nov 21, 2018 at 02:56:57PM -0800, Andy Lutomirski wrote: > Please cc linux-...@vger.kernel.org for future versions. > > On Wed, Nov 21, 2018 at 7:58 AM Elvira Khabirova wrote: > > > > struct ptrace_syscall_info { > > __u8 op; /* 0 for entry, 1 for exit */ > > Can you add proper de

Re: [RFC PATCH RESEND v3 3/3] ptrace: add PTRACE_EVENT_SECCOMP support to PTRACE_GET_SYSCALL_INFO

2018-11-27 Thread Dmitry V. Levin
On Tue, Nov 27, 2018 at 01:31:17PM +0100, Oleg Nesterov wrote: > On 11/27, Elvira Khabirova wrote: > > On Mon, 26 Nov 2018 15:35:24 +0100, Oleg Nesterov wrote: > > > On 11/25, Elvira Khabirova wrote: > > > > > > > > Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. > > > > The i

Re: [RFC PATCH RESEND v3 3/3] ptrace: add PTRACE_EVENT_SECCOMP support to PTRACE_GET_SYSCALL_INFO

2018-11-28 Thread Dmitry V. Levin
On Wed, Nov 28, 2018 at 01:35:46PM +0100, Oleg Nesterov wrote: > On 11/28, Dmitry V. Levin wrote: > > > > > Just like ptrace_request(PTRACE_LISTEN) > > > does but you can do this lockless (no need to lock_task_sighand()). > > > > Why this can be done lock

[PATCH v4 0/2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-28 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO lets ptracer obtain details of the syscall the tracee is blocked in. The request succeeds when the tracee is in a syscall-enter-stop, syscall-exit-stop or PTRACE_EVENT_SECCOMP stop, and fails with -EINVAL otherwise. There are two reasons for a special syscall-related ptrac

[PATCH v4 1/2] ptrace: save the type of syscall-stop in ptrace_message

2018-11-28 Thread Dmitry V. Levin
-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/linux/tracehook.h | 9 ++--- include/uapi/linux/ptrace.h | 10 ++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h index 40b0b4c1bf7b

[PATCH v4 2/2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-28 Thread Dmitry V. Levin
exit-stop, or a PTRACE_EVENT_SECCOMP stop. Co-authored-by: Dmitry V. Levin Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/uapi/linux/ptrace.h | 34 +++ kernel/ptrace.c | 110 +++- 2 files changed, 143 inserti

Re: [PATCH v4 1/2] ptrace: save the type of syscall-stop in ptrace_message

2018-11-28 Thread Dmitry V. Levin
On Wed, Nov 28, 2018 at 02:49:14PM +0100, Oleg Nesterov wrote: > On 11/28, Dmitry V. Levin wrote: > > > > +/* > > + * These values are stored in task->ptrace_message by > > tracehook_report_syscall_* > > + * to describe current syscall-stop. > > + * >

Re: [PATCH v4 1/2] ptrace: save the type of syscall-stop in ptrace_message

2018-11-28 Thread Dmitry V. Levin
On Wed, Nov 28, 2018 at 03:20:06PM +0100, Oleg Nesterov wrote: > On 11/28, Dmitry V. Levin wrote: > > On Wed, Nov 28, 2018 at 02:49:14PM +0100, Oleg Nesterov wrote: > > > On 11/28, Dmitry V. Levin wrote: > > > > > > > > +/* > > > >

Re: [PATCH v4 1/2] ptrace: save the type of syscall-stop in ptrace_message

2018-11-28 Thread Dmitry V. Levin
On Wed, Nov 28, 2018 at 06:23:46PM +0300, Dmitry V. Levin wrote: > On Wed, Nov 28, 2018 at 03:20:06PM +0100, Oleg Nesterov wrote: > > On 11/28, Dmitry V. Levin wrote: > > > On Wed, Nov 28, 2018 at 02:49:14PM +0100, Oleg Nesterov wrote: > > > > O

Re: [PATCH v4 1/2] ptrace: save the type of syscall-stop in ptrace_message

2018-11-29 Thread Dmitry V. Levin
On Wed, Nov 28, 2018 at 03:17:49PM -0800, Andy Lutomirski wrote: > On Wed, Nov 28, 2018 at 2:11 PM Dmitry V. Levin wrote: > > > > On Wed, Nov 28, 2018 at 06:23:46PM +0300, Dmitry V. Levin wrote: > > > On Wed, Nov 28, 2018 at 03:20:06PM +0100, Oleg Nesterov wrote: > >

Re: [PATCH v4 1/2] ptrace: save the type of syscall-stop in ptrace_message

2018-11-29 Thread Dmitry V. Levin
On Thu, Nov 29, 2018 at 03:47:43PM +0100, Oleg Nesterov wrote: > On 11/29, Dmitry V. Levin wrote: > > > > 2. Document these values > > sure, they should be documented and live in include/uapi/, > > > chosen to avoid collisions with ptrace_message values > >

Re: [RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-12 Thread Dmitry V. Levin
On Wed, Nov 07, 2018 at 12:44:58PM -0800, Andy Lutomirski wrote: > > On Nov 6, 2018, at 7:27 PM, Elvira Khabirova > > wrote: > > > > PTRACE_GET_SYSCALL_INFO lets ptracer obtain details of the syscall > > the tracee is blocked in. The request returns meaningful data only > > when the tracee is in

Re: [PATCH v4] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call

2018-12-06 Thread Dmitry V. Levin
On Mon, Dec 03, 2018 at 06:18:23AM +0300, Dmitry V. Levin wrote: > From: Elvira Khabirova > > Arch code should use tracehook_*() helpers, as documented > in include/linux/tracehook.h, > ptrace_report_syscall() is not expected to be used outside that file. > > Co-authore

Re: [PATCH v4] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call

2018-12-07 Thread Dmitry V. Levin
On Fri, Dec 07, 2018 at 10:12:49PM +1100, Michael Ellerman wrote: > "Dmitry V. Levin" writes: > > On Mon, Dec 03, 2018 at 06:18:23AM +0300, Dmitry V. Levin wrote: > >> From: Elvira Khabirova > >> > >> Arch code should use tracehook_*() helpers, a

[PATCH v5] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call

2018-12-07 Thread Dmitry V. Levin
. Co-authored-by: Dmitry V. Levin Fixes: 5521eb4bca2d ("powerpc/ptrace: Add support for PTRACE_SYSEMU") Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Oleg Nesterov Cc: Breno Leitao Cc: Andy Lutomirski Cc: Eugene Syromyatnikov Cc: linuxppc-...@lists.ozlabs.

Re: [PATCH v4] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call

2018-12-07 Thread Dmitry V. Levin
On Fri, Dec 07, 2018 at 05:34:10PM +0100, Oleg Nesterov wrote: > On 12/07, Dmitry V. Levin wrote: > > On Fri, Dec 07, 2018 at 10:12:49PM +1100, Michael Ellerman wrote: > > > > > > Sorry, this patch does not work, please ignore it. > > > > > > Hmm OK.

[PATCH v6] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call

2018-12-07 Thread Dmitry V. Levin
From: Elvira Khabirova Arch code should use tracehook_*() helpers, as documented in include/linux/tracehook.h, ptrace_report_syscall() is not expected to be used outside that file. Co-authored-by: Dmitry V. Levin Fixes: 5521eb4bca2d ("powerpc/ptrace: Add support for PTRACE_SYSEMU") C

[PATCH] selftests: do not macro-expand failed assertion expressions

2018-12-09 Thread Dmitry V. Levin
bug fixed in glibc assert(3) three years ago: https://sourceware.org/bugzilla/show_bug.cgi?id=18604 Cc: Shuah Khan Cc: Kees Cook Cc: Andy Lutomirski Cc: Will Drewry Cc: linux-kselft...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- tools/testing/selftests/kselftest_harness.h | 42 +++

[PATCH v5 01/25] alpha: define remaining syscall_get_* functions

2018-12-09 Thread Dmitry V. Levin
, syscall_get_error, and syscall_get_return_value. Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-al...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- arch/alpha/include/asm/syscall.h | 29

[PATCH v5 02/25] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Acked-by: Vineet Gupta Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Alexey Brodkin Cc: linux-snps-...@lists.infradead.org Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc v2: added

[PATCH v5 06/25] csky: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
...@redhat.com Signed-off-by: Dmitry V. Levin --- arch/csky/include/asm/syscall.h | 7 +++ include/uapi/linux/audit.h | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/csky/include/asm/syscall.h b/arch/csky/include/asm/syscall.h index 926a64a8b4ee..d637445737b7 100644 --- a/arch

[PATCH v5 04/25] c6x: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
: Mark Salter Cc: Aurelien Jacquiot Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-c6x-...@linux-c6x.org Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc arch/c6x/include/asm

[PATCH v5 03/25] arc: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
-by: Vineet Gupta Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Alexey Brodkin Cc: Paul Moore Cc: Eric Paris Cc: linux-snps-...@lists.infradead.org Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc v2: added

[PATCH v5 05/25] elf-em.h: add EM_CSKY

2018-12-09 Thread Dmitry V. Levin
/elf.h and confirmed by binutils:include/elf/common.h Cc: Guo Ren Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Signed-off-by: Dmitry V. Levin --- include/uapi/linux/elf-em.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/elf-em.h

[PATCH v5 07/25] h8300: define remaining syscall_get_* functions

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch. Cc: Yoshinori Sato Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: uclinux-h8-de...@lists.sourceforge.jp Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes: v5: added syscall_get_error

[PATCH v5 08/25] Move EM_HEXAGON to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO request. Cc: Richard Kuo Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-hexa...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc arch/hexagon/include/asm/elf.h | 6 +- include/uapi/linux/elf-em.h| 1 + 2

[PATCH v5 09/25] hexagon: define remaining syscall_get_* functions

2018-12-09 Thread Dmitry V. Levin
syscall_get_arch. Cc: Richard Kuo Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-hexa...@vger.kernel.org Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes: v5: added syscall_get_error and

[PATCH v5 14/25] mips: define syscall_get_error()

2018-12-09 Thread Dmitry V. Levin
: Paul Burton Cc: Ralf Baechle Cc: James Hogan Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-m...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- arch/mips/include/asm/syscall.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips

[PATCH v5 15/25] parisc: define syscall_get_error()

2018-12-09 Thread Dmitry V. Levin
: Helge Deller Cc: James E.J. Bottomley Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-par...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- arch/parisc/include/asm/syscall.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/parisc

[PATCH v5 17/25] riscv: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
-on-patch-by: David Abdurachmanov Reviewed-by: Palmer Dabbelt Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Albert Ou Cc: Paul Moore Cc: Eric Paris Cc: linux-ri...@lists.infradead.org Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin

[PATCH v5 18/25] Move EM_XTENSA to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO request. Cc: Max Filippov Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: Chris Zankel Cc: linux-xte...@linux-xtensa.org Signed-off-by: Dmitry V. Levin --- Notes: v5: move EM_XTENSA to elf-em.h instead of adding, I didn't realize i

[PATCH v5 16/25] powerpc: define syscall_get_error()

2018-12-09 Thread Dmitry V. Levin
: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Dmitry V. Levin --- Notes: This change has been tested with tools/testing/selftests/ptrace

[PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-09 Thread Dmitry V. Levin
, syscall_get_arguments, syscall_get_error, syscall_get_return_value, and syscall_get_arch. Cc: Geert Uytterhoeven Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-m...@lists.linux-m68k.org Signed-off-by: Dmitry V. Levin --- Notes: v5: added

[PATCH v5 11/25] nds32: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
: Greentime Hu Cc: Vincent Chen Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc v2: apparently, this architecture can be configured as big

[PATCH v5 12/25] nios2: define syscall_get_arch()

2018-12-09 Thread Dmitry V. Levin
Foon Tan Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: nios2-...@lists.rocketboards.org Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc arch/nios2/include/asm/syscall.h | 6

[PATCH v5 10/25] Move EM_NDS32 to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
request. Cc: Greentime Hu Cc: Vincent Chen Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc arch/nds32/include/asm/elf.h | 3 +-- include/uapi/linux/elf-em.h | 2 ++ 2 files changed, 3

[PATCH v5 19/25] xtensa: define syscall_get_* functions

2018-12-09 Thread Dmitry V. Levin
, syscall_get_error, syscall_get_return_value, and syscall_get_arch. Cc: Max Filippov Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: Chris Zankel Cc: Paul Moore Cc: Eric Paris Cc: linux-xte...@linux-xtensa.org Cc: linux-au...@redhat.com Signed-off-by: Dmitry V

[PATCH v5 23/25] powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call

2018-12-09 Thread Dmitry V. Levin
. Co-authored-by: Dmitry V. Levin Fixes: 5521eb4bca2d ("powerpc/ptrace: Add support for PTRACE_SYSEMU") Cc: Michael Ellerman Cc: Oleg Nesterov Cc: Eugene Syromyatnikov Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Breno Leitao Cc: Andy Lutomirski Cc: linuxppc-...@lists.ozlabs.

[PATCH v5 20/25] Move EM_UNICORE to uapi/linux/elf-em.h

2018-12-09 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO request. Cc: Guan Xuetao Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Signed-off-by: Dmitry V. Levin --- Notes: v5: added Cc arch/unicore32/include/asm/elf.h | 3 +-- include/uapi/linux/elf-em.h | 1 + 2 files changed, 2 insertions(+), 2

[PATCH v5 21/25] unicore32: add asm/syscall.h

2018-12-09 Thread Dmitry V. Levin
similar to ARM, so the implementation of syscall_get_* functions is also similar to ARM. Cc: Guan Xuetao Cc: Paul Moore Cc: Eric Paris Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes

[PATCH v5 24/25] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-12-09 Thread Dmitry V. Levin
el exceeds the size specified by "addr" argument, the output is truncated. Co-authored-by: Dmitry V. Levin Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Eugene Syromyatnikov Cc: Kees Cook Cc: Jann Horn Cc: linux-...@vger.kernel.org Cc: strace-de...@lists.strace.io Signed-off

[PATCH v5 25/25] selftests/ptrace: add a test case for PTRACE_GET_SYSCALL_INFO

2018-12-09 Thread Dmitry V. Levin
Check whether PTRACE_GET_SYSCALL_INFO semantics implemented in the kernel matches userspace expectations. Cc: Oleg Nesterov Cc: Andy Lutomirski Cc: Shuah Khan Cc: Elvira Khabirova Cc: Eugene Syromyatnikov Cc: linux-kselft...@vger.kernel.org Signed-off-by: Dmitry V. Levin --- tools/testing

[PATCH v5 22/25] syscall_get_arch: add "struct task_struct *" argument

2018-12-09 Thread Dmitry V. Levin
.@vger.kernel.org Cc: linux...@vger.kernel.org Cc: sparcli...@vger.kernel.org Cc: linux...@lists.infradead.org Cc: linux-xte...@linux-xtensa.org Cc: linux-a...@vger.kernel.org Cc: linux-au...@redhat.com Signed-off-by: Dmitry V. Levin --- Notes: v5: fixed asm-generic docs by reverting 1002d94d3

Re: [PATCH v4 1/2] ptrace: save the type of syscall-stop in ptrace_message

2018-11-30 Thread Dmitry V. Levin
On Fri, Nov 30, 2018 at 12:29:21PM +0100, Oleg Nesterov wrote: > On 11/30, Dmitry V. Levin wrote: > > On Thu, Nov 29, 2018 at 03:47:43PM +0100, Oleg Nesterov wrote: > > > > > > so that PTRACE_GETEVENTMSG users can easily tell > > > > whether this new sema

Re: [PATCH v2 06/15] m68k: define syscall_get_arch()

2018-12-02 Thread Dmitry V. Levin
Hi Geert, On Sun, Dec 02, 2018 at 11:29:10AM +0100, Geert Uytterhoeven wrote: > Hi Dmitry, > > On Tue, Nov 20, 2018 at 1:15 AM Dmitry V. Levin wrote: > > syscall_get_arch() is required to be implemented on all architectures > > in order to extend the ge

[PATCH] microblaze: fix syscall_set_return_value()

2018-12-02 Thread Dmitry V. Levin
architectures where error argument of syscall_set_return_value() is non-positive. Fixes: d5b37092aae1e ("microblaze: Implement include/asm/syscall.h.") Cc: sta...@vger.kernel.org # v2.6.32+ Signed-off-by: Dmitry V. Levin --- arch/microblaze/include/asm/syscall.h | 5 + 1 file changed, 1 inser

[PATCH] ia64: fix syscall_get_error()

2018-12-02 Thread Dmitry V. Levin
syscall_get_error() returns a non-positive value. Fixes: cfb361f13c81 ("[IA64] utrace syscall.h support for ia64") Cc: sta...@vger.kernel.org # v2.6.27+ Signed-off-by: Dmitry V. Levin --- arch/ia64/include/asm/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia

[PATCH] nios2: fix syscall_get_error()

2018-12-02 Thread Dmitry V. Levin
syscall_get_error() returns a non-positive value. Fixes: 1000197d80132 ("nios2: System calls handling") Cc: sta...@vger.kernel.org # v3.19+ Signed-off-by: Dmitry V. Levin --- arch/nios2/include/asm/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/nios2/i

[PATCH] sh: fix syscall_set_return_value()

2018-12-02 Thread Dmitry V. Levin
error argument of syscall_set_return_value() is non-positive. Fixes: fb4f87a2f048b ("sh: Provide the asm/syscall.h interface, needed by tracehook.") Fixes: 94e2fb3d3e1f4 ("sh: Provide asm/syscall.h for SH-5.") Cc: sta...@vger.kernel.org # v2.6.28+ Signed-off-by: Dmitry V.

[PATCH 01/13] Move EM_HEXAGON to uapi/linux/elf-em.h

2018-11-08 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- arch/hexagon/include/asm/elf.h | 6 +- include/uapi/linux/elf-em.h| 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/hexagon/include/asm/elf.h b/arch/hexagon/include/asm/elf.h index 80311e7b8ca6..d10fbd54ae51 100644

[PATCH 03/13] elf-em.h: add EM_NDS32

2018-11-08 Thread Dmitry V. Levin
/developers/gabi/2012-12-31/ch4.eheader.html Signed-off-by: Dmitry V. Levin --- include/uapi/linux/elf-em.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 56ff3f9d9633..f879c24a7c21 100644 --- a/include/uapi/linux/elf-em.h

[PATCH 04/13] elf-em.h: add EM_XTENSA

2018-11-08 Thread Dmitry V. Levin
://www.sco.com/developers/gabi/2012-12-31/ch4.eheader.html Signed-off-by: Dmitry V. Levin --- include/uapi/linux/elf-em.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index f879c24a7c21..2639119bf459 100644 --- a/include/uapi/linux/elf-em.h

[PATCH 05/13] m68k: define syscall_get_arch()

2018-11-08 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures that use tracehook_report_syscall_entry() in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- arch/m68k/include/asm/syscall.h | 12 1 file changed

[PATCH 08/13] h8300: define syscall_get_arch()

2018-11-08 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures that use tracehook_report_syscall_entry() in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- arch/h8300/include/asm/syscall.h | 5 + include/uapi/linux

[PATCH 09/13] hexagon: define syscall_get_arch()

2018-11-08 Thread Dmitry V. Levin
syscall_get_arch() is required to be implemented on all architectures that use tracehook_report_syscall_entry() in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- arch/hexagon/include/asm/syscall.h | 8 include/uapi/linux

Re: [PATCH v6] pidns: introduce syscall translate_pid

2018-11-08 Thread Dmitry V. Levin
Hi, On Mon, Jul 16, 2018 at 10:57:48AM -0700, Nagarathnam Muthusamy wrote: > On 06/01/2018 12:18 PM, Konstantin Khlebnikov wrote: > > Each process have different pids, one for each pid namespace it belongs. > > When interaction happens within single pid-ns translation isn't required. > > More comp

Re: [PATCH 12/13] riscv: define syscall_get_arch()

2018-11-09 Thread Dmitry V. Levin
he generic ptrace API with PTRACE_GET_SYSCALL_INFO request. > > > > Signed-off-by: Dmitry V. Levin > > --- > > arch/riscv/include/asm/syscall.h | 6 ++ > > include/uapi/linux/audit.h | 1 + > > 2 files changed, 7 insertions(+) > > > > di

[PATCH 14/13] Move EM_UNICORE to uapi/linux/elf-em.h

2018-11-10 Thread Dmitry V. Levin
PTRACE_GET_SYSCALL_INFO request. Signed-off-by: Dmitry V. Levin --- Apparently, we need to implement syscall_get_arch() on all architectures where linux/tracehook.h is compiled, not just those that use tracehook_report_syscall_entry(). This adds one more architecture to the initial list of 9 architectures where

Re: [PATCH bpf 1/2] bpf: fix alignment of netns_dev/netns_ino fields in bpf_{map,prog}_info

2018-05-30 Thread Dmitry V. Levin
> syscall in order to handle this discrepancy) is to use __aligned_u64 > instead of __u64 for these fields. > > Reported-by: Dmitry V. Levin > Fixes: 52775b33bb507 ("bpf: offload: report device information about > offloaded maps") > Fixes: 675fc275a3a2d (&quo

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
On Mon, Dec 10, 2018 at 04:30:25PM +0300, Dmitry V. Levin wrote: > On Mon, Dec 10, 2018 at 02:06:28PM +0100, Geert Uytterhoeven wrote: > > On Mon, Dec 10, 2018 at 1:41 PM Dmitry V. Levin wrote: > > > On Mon, Dec 10, 2018 at 09:45:42AM +0100, Geert Uytterhoeven wrote: > >

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
On Wed, Dec 12, 2018 at 10:01:29AM +0100, Geert Uytterhoeven wrote: > Hi Dmitry, > > On Wed, Dec 12, 2018 at 9:55 AM Dmitry V. Levin wrote: > > On Mon, Dec 10, 2018 at 04:30:25PM +0300, Dmitry V. Levin wrote: > > > On Mon, Dec 10, 2018 at 02:06:28PM +0100, Geert Uytter

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
Hi Geert, On Wed, Dec 12, 2018 at 10:43:33AM +0100, Geert Uytterhoeven wrote: > On Wed, Dec 12, 2018 at 10:27 AM Dmitry V. Levin wrote: > > On Wed, Dec 12, 2018 at 10:01:29AM +0100, Geert Uytterhoeven wrote: > > > On Wed, Dec 12, 2018 at 9:55 AM Dmitry V. Levin wrote: >

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
Hi Geert, On Wed, Dec 12, 2018 at 01:27:14PM +0100, Geert Uytterhoeven wrote: > On Wed, Dec 12, 2018 at 1:04 PM Dmitry V. Levin wrote: > > On Wed, Dec 12, 2018 at 10:43:33AM +0100, Geert Uytterhoeven wrote: > > > On Wed, Dec 12, 2018 at 10:27 AM Dmitry V. Levin > > >

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
Hi Geert, On Wed, Dec 12, 2018 at 01:54:05PM +0100, Geert Uytterhoeven wrote: > On Wed, Dec 12, 2018 at 1:37 PM Dmitry V. Levin wrote: > > On Wed, Dec 12, 2018 at 01:27:14PM +0100, Geert Uytterhoeven wrote: > > > On Wed, Dec 12, 2018 at 1:04 PM Dmitry V. Levin wrote: >

Re: [PATCH v5 13/25] m68k: add asm/syscall.h

2018-12-12 Thread Dmitry V. Levin
Hi Geert, On Wed, Dec 12, 2018 at 04:07:11PM +0300, Dmitry V. Levin wrote: > On Wed, Dec 12, 2018 at 01:54:05PM +0100, Geert Uytterhoeven wrote: > > On Wed, Dec 12, 2018 at 1:37 PM Dmitry V. Levin wrote: > > > On Wed, Dec 12, 2018 at 01:27:14PM +0100, Geert Uytterhoeven wro

Re: [PATCH 1/8] perf: Allow to block process in syscall tracepoints

2018-12-12 Thread Dmitry V. Levin
Hi Peter, On Mon, Dec 10, 2018 at 11:18:18AM +0100, Peter Zijlstra wrote: > On Sat, Dec 08, 2018 at 12:38:05PM -0500, Steven Rostedt wrote: > > On Sat, 8 Dec 2018 11:44:23 +0100, Peter Zijlstra wrote: > > > > > Why do we care about lost events? Because strace records *all* events, > > > > as that

Re: [PATCH 1/8] perf: Allow to block process in syscall tracepoints

2018-12-12 Thread Dmitry V. Levin
On Wed, Dec 12, 2018 at 08:26:39PM -0500, Steven Rostedt wrote: > On Thu, 13 Dec 2018 03:39:38 +0300, wrote: > > > btw, I didn't ask for the implementation to be ugly. > > You don't have to introduce polling into the kernel if you don't want to, > > userspace is perfectly capable of invoking wait4

  1   2   3   4   5   >