[PATCH] libbb: in xmalloc_fgetline, use getline if enabled

2023-05-28 Thread Elvira Khabirova
14061367 -39 -- (add/remove: 1/0 grow/shrink: 0/2 up/down: 41/-66)Total: -25 bytes Fixes: https://bugs.busybox.net/show_bug.cgi?id=15276 Signed-off-by: Elvira Khabirova --- coreutils/cut.c

[PATCH v4 RESEND] tee: add support for application-based session login methods

2020-12-10 Thread Elvira Khabirova
ge. The exact nature is REE-specific. As the exact method of generating application identifier strings may vary between vendors, setups and installations, add two suggested methods and an exact framework for vendors to extend upon. Signed-off-by: Elvira Khabirova --- Changes in v4: - Fix pote

[PATCH v4] tee: add support for application-based session login methods

2020-10-17 Thread Elvira Khabirova
strings may vary between vendors, setups and installations, add two suggested methods and an exact framework for vendors to extend upon. Signed-off-by: Elvira Khabirova --- Changes in v4: - Fix potential exe_file leaks. Changes in v3: - Remove free_app_id() and replace it with calls to kfree

[PATCH v3] tee: add support for application-based session login methods

2020-10-05 Thread Elvira Khabirova
strings may vary between vendors, setups and installations, add two suggested methods and an exact framework for vendors to extend upon. Signed-off-by: Elvira Khabirova --- Jens, do you have any advice on finding more reviewers for this? Changes in v3: - Remove free_app_id() and replace

Re: [PATCH v2] tee: add support for application-based session login methods

2020-10-01 Thread Elvira Khabirova
On Thu, 1 Oct 2020 11:47:58 +0200 Jens Wiklander wrote: > On Wed, Sep 30, 2020 at 07:56:52PM +0300, Elvira Khabirova wrote: > > +#if defined(CONFIG_TEE_APPID_PATH) || defined(CONFIG_TEE_APPID_SECURITY) > > +static void free_app_id(void *data) > > +{ > > + kfre

[PATCH v2] tee: add support for application-based session login methods

2020-09-30 Thread Elvira Khabirova
strings may vary between vendors, setups and installations, add two suggested methods and an exact framework for vendors to extend upon. Signed-off-by: Elvira Khabirova --- drivers/tee/Kconfig| 29 + drivers/tee/tee_core.c | 133 ++--- 2 files

Re: [RFC PATCH] tee: add support for application-based session login methods

2020-09-29 Thread Elvira Khabirova
On Mon, 28 Sep 2020 15:43:47 +0200 Jens Wiklander wrote: > Hi Elvira, > > On Thu, Sep 17, 2020 at 06:38:03PM +0300, Elvira Khabirova wrote: > > GP TEE Client API in addition to login methods already supported > > in the kernel also defines several appl

Re: [RFC PATCH] tee: add support for application-based session login methods

2020-09-28 Thread Elvira Khabirova
Hello, On Thu, 17 Sep 2020 15:46:07 + Elvira Khabirova via OP-TEE wrote: > GP TEE Client API in addition to login methods already supported > in the kernel also defines several application-based methods: > TEEC_LOGIN_APPLICATION, TEEC_LOGIN_USER_AP

[PATCH] tee: fix some comment typos in header files

2020-09-19 Thread Elvira Khabirova
struct tee_param: revc -> recv. TEE_IOC_SUPPL_SEND: typo introduced by copy-pasting, replace invalid description with description from the according argument struct. Signed-off-by: Elvira Khabirova --- include/linux/tee_drv.h | 2 +- include/uapi/linux/tee.h | 2 +- 2 files changed

[RFC PATCH] tee: add support for application-based session login methods

2020-09-17 Thread Elvira Khabirova
strings may vary between vendors, setups and installations, add two suggested methods and an exact framework for vendors to extend upon. Signed-off-by: Elvira Khabirova --- drivers/tee/Kconfig| 29 + drivers/tee/tee_core.c | 136 - 2 files

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

2018-11-26 Thread Elvira Khabirova
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 syscall-enter-stops. > > Oh, this is not nic

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

2018-11-26 Thread Elvira Khabirova
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 syscall-enter-stops. > > Oh, this is not nic

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

2018-11-26 Thread Elvira Khabirova
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 syscall-stop. > > + * > > +

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

2018-11-26 Thread Elvira Khabirova
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 syscall-stop. > > + * > > +

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

2018-11-24 Thread Elvira Khabirova
Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. The information returned is the same as for syscall-enter-stops. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/linux/ptrace.h| 1 + include/linux/sched.h | 1 + include/linux/tracehook.h

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

2018-11-24 Thread Elvira Khabirova
Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. The information returned is the same as for syscall-enter-stops. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/linux/ptrace.h| 1 + include/linux/sched.h | 1 + include/linux/tracehook.h

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

2018-11-24 Thread Elvira Khabirova
Define two constants, PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT, and place them in ptrace_message for the duration of syscall-stops. This way ptracers can distinguish syscall-enter-stops from syscall-exit-stops using PTRACE_GETEVENTMSG request. Signed-off-by: Elvira Khabirova

[PATCH RESEND v3 2/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
e is not in a syscall-enter-stop, a syscall-exit-stop, or a PTRACE_EVENT_SECCOMP stop. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/uapi/linux/ptrace.h | 24 ++ kernel/ptrace.c | 50 + 2 files changed,

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

2018-11-24 Thread Elvira Khabirova
Define two constants, PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT, and place them in ptrace_message for the duration of syscall-stops. This way ptracers can distinguish syscall-enter-stops from syscall-exit-stops using PTRACE_GETEVENTMSG request. Signed-off-by: Elvira Khabirova

[PATCH RESEND v3 2/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
e is not in a syscall-enter-stop, a syscall-exit-stop, or a PTRACE_EVENT_SECCOMP stop. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/uapi/linux/ptrace.h | 24 ++ kernel/ptrace.c | 50 + 2 files changed,

[PATCH RESEND v3 0/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
er defines for ptrace_syscall_info.op values. Rename PT_SYSCALL_IS_ENTERING and PT_SYSCALL_IS_EXITING to PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT and move them to uapi. Elvira Khabirova (3): ptrace: pass type of a syscall-stop in ptrace_message p

[PATCH RESEND v3 0/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
er defines for ptrace_syscall_info.op values. Rename PT_SYSCALL_IS_ENTERING and PT_SYSCALL_IS_EXITING to PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT and move them to uapi. Elvira Khabirova (3): ptrace: pass type of a syscall-stop in ptrace_message p

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

2018-11-24 Thread Elvira Khabirova
Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. The information returned is the same as for syscall-enter-stops. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/linux/ptrace.h| 1 + include/linux/sched.h | 1 + include/linux/tracehook.h

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

2018-11-24 Thread Elvira Khabirova
Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. The information returned is the same as for syscall-enter-stops. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/linux/ptrace.h| 1 + include/linux/sched.h | 1 + include/linux/tracehook.h

[PATCH v3 2/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
e is not in a syscall-enter-stop, a syscall-exit-stop, or a PTRACE_EVENT_SECCOMP stop. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/uapi/linux/ptrace.h | 24 ++ kernel/ptrace.c | 50 + 2 files changed,

[PATCH v3 2/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
e is not in a syscall-enter-stop, a syscall-exit-stop, or a PTRACE_EVENT_SECCOMP stop. Signed-off-by: Elvira Khabirova Signed-off-by: Dmitry V. Levin --- include/uapi/linux/ptrace.h | 24 ++ kernel/ptrace.c | 50 + 2 files changed,

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

2018-11-24 Thread Elvira Khabirova
Define two constants, PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT, and place them in ptrace_message for the duration of syscall-stops. This way ptracers can distinguish syscall-enter-stops from syscall-exit-stops using PTRACE_GETEVENTMSG request. Signed-off-by: Elvira Khabirova

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

2018-11-24 Thread Elvira Khabirova
Define two constants, PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT, and place them in ptrace_message for the duration of syscall-stops. This way ptracers can distinguish syscall-enter-stops from syscall-exit-stops using PTRACE_GETEVENTMSG request. Signed-off-by: Elvira Khabirova

[PATCH v3 0/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
ll_info.op values. Rename PT_SYSCALL_IS_ENTERING and PT_SYSCALL_IS_EXITING to PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT and move them to uapi. Elvira Khabirova (3): ptrace: pass type of a syscall-stop in ptrace_message ptrace: add PTRACE_GET_SYSCALL_INFO request p

[PATCH v3 0/3] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-24 Thread Elvira Khabirova
ll_info.op values. Rename PT_SYSCALL_IS_ENTERING and PT_SYSCALL_IS_EXITING to PTRACE_EVENTMSG_SYSCALL_ENTRY and PTRACE_EVENTMSG_SYSCALL_EXIT and move them to uapi. Elvira Khabirova (3): ptrace: pass type of a syscall-stop in ptrace_message ptrace: add PTRACE_GET_SYSCALL_INFO request p

[RFC PATCH v2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-21 Thread Elvira Khabirova
l.org/lkml/caobl_7gm0n80n7j_dfw_eqyflyzq+sf4y2avsccv88tb3aw...@mail.gmail.com/ [3] https://lore.kernel.org/lkml/20181119210139.ga8...@altlinux.org/ [4] https://lore.kernel.org/lkml/20181120001128.ga11...@altlinux.org/ Co-authored-by: Dmitry V. Levin Signed-off-by: Elvira Khabirova Signed-off-by: Dmitr

[RFC PATCH v2] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-21 Thread Elvira Khabirova
l.org/lkml/caobl_7gm0n80n7j_dfw_eqyflyzq+sf4y2avsccv88tb3aw...@mail.gmail.com/ [3] https://lore.kernel.org/lkml/20181119210139.ga8...@altlinux.org/ [4] https://lore.kernel.org/lkml/20181120001128.ga11...@altlinux.org/ Co-authored-by: Dmitry V. Levin Signed-off-by: Elvira Khabirova Signed-off-by: Dmitr

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

2018-11-16 Thread Elvira Khabirova
Arch code should use tracehook_*() helpers, as documented in include/linux/tracehook.h. Fixes: 5521eb4bca2d ("powerpc/ptrace: Add support for PTRACE_SYSEMU") Signed-off-by: Elvira Khabirova --- arch/powerpc/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[tip:x86/urgent] x86/ptrace: Fix documentation for tracehook_report_syscall_entry()

2018-11-11 Thread tip-bot for Elvira Khabirova
Commit-ID: d19f9130b814d33c03118493c17454f7d90075d1 Gitweb: https://git.kernel.org/tip/d19f9130b814d33c03118493c17454f7d90075d1 Author: Elvira Khabirova AuthorDate: Sat, 10 Nov 2018 04:22:09 +0100 Committer: Ingo Molnar CommitDate: Mon, 12 Nov 2018 04:53:27 +0100 x86/ptrace: Fix

[tip:x86/urgent] x86/ptrace: Fix documentation for tracehook_report_syscall_entry()

2018-11-11 Thread tip-bot for Elvira Khabirova
Commit-ID: d19f9130b814d33c03118493c17454f7d90075d1 Gitweb: https://git.kernel.org/tip/d19f9130b814d33c03118493c17454f7d90075d1 Author: Elvira Khabirova AuthorDate: Sat, 10 Nov 2018 04:22:09 +0100 Committer: Ingo Molnar CommitDate: Mon, 12 Nov 2018 04:53:27 +0100 x86/ptrace: Fix

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

2018-11-11 Thread Elvira Khabirova
Arch code should use tracehook_*() helpers, as documented in include/linux/tracehook.h. Signed-off-by: Elvira Khabirova --- arch/powerpc/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index

[PATCH] tracehook: fix documentation for tracehook_report_syscall_entry()

2018-11-09 Thread Elvira Khabirova
tracehook_report_syscall_entry() is called not only if %TIF_SYSCALL_TRACE is set, but also if %TIF_SYSCALL_EMU is set, as appears from x86's entry code. Signed-off-by: Elvira Khabirova --- include/linux/tracehook.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include

[PATCH] tracehook: fix documentation for tracehook_report_syscall_entry()

2018-11-09 Thread Elvira Khabirova
tracehook_report_syscall_entry() is called not only if %TIF_SYSCALL_TRACE is set, but also if %TIF_SYSCALL_EMU is set, as appears from x86's entry code. Signed-off-by: Elvira Khabirova --- include/linux/tracehook.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include

Re: [RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-07 Thread Elvira Khabirova
On Wed, 7 Nov 2018 17:44:44 +0100 Oleg Nesterov wrote: > To me PT_IN_SYSCALL_STOP makes no real sense, but I won't argue. > > At least I'd ask to not abuse task->ptrace. ptrace_report_syscall() can clear > ->ptrace_message on exit if we really want PTRACE_GET_SYSCALL_INFO to fail > after >

Re: [RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-07 Thread Elvira Khabirova
On Wed, 7 Nov 2018 17:44:44 +0100 Oleg Nesterov wrote: > To me PT_IN_SYSCALL_STOP makes no real sense, but I won't argue. > > At least I'd ask to not abuse task->ptrace. ptrace_report_syscall() can clear > ->ptrace_message on exit if we really want PTRACE_GET_SYSCALL_INFO to fail > after >

[RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-06 Thread Elvira Khabirova
Signed-off-by: Elvira Khabirova --- arch/alpha/kernel/ptrace.c | 2 +- arch/arc/kernel/ptrace.c| 2 +- arch/arm/kernel/ptrace.c| 2 +- arch/arm64/kernel/ptrace.c | 2 +- arch/c6x/kernel/ptrace.c| 2 +- arch/h8300/kernel/ptrace.c | 2 +- arch/hexa

[RFC PATCH] ptrace: add PTRACE_GET_SYSCALL_INFO request

2018-11-06 Thread Elvira Khabirova
Signed-off-by: Elvira Khabirova --- arch/alpha/kernel/ptrace.c | 2 +- arch/arc/kernel/ptrace.c| 2 +- arch/arm/kernel/ptrace.c| 2 +- arch/arm64/kernel/ptrace.c | 2 +- arch/c6x/kernel/ptrace.c| 2 +- arch/h8300/kernel/ptrace.c | 2 +- arch/hexa

Re: [PATCH] nbd-client: support newstyle protocol, -b, -d

2018-10-29 Thread Elvira Khabirova
On Wed, 24 Oct 2018 15:53:44 +0200 Denys Vlasenko wrote: > I applied a modified version of the patch, > please let me know whether it works. > Thanks! It does, both on x86_64 and MIPS64be, with old and new servers. Thank you! ___ busybox mailing list

Re: [PATCH] nbd-client: support newstyle protocol, -b, -d

2018-10-19 Thread Elvira Khabirova
On Tue, 9 Oct 2018 01:41:48 +0200 Elvira Khabirova wrote: > Recognize the "newstyle" protocol and switch to it automatically. > Add options for setting blocksize (-b) and for disconnecting > a nbd device (-d). Ping. Support for oldstyle protocol was dropped in nbd-

[PATCH] nbd-client: support newstyle protocol, -b, -d

2018-10-08 Thread Elvira Khabirova
Recognize the "newstyle" protocol and switch to it automatically. Add options for setting blocksize (-b) and for disconnecting a nbd device (-d). Signed-off-by: Elvira Khabirova --- networking/nbd-client.c | 168 +--- 1 file changed, 140 inserti

[no subject]

2017-01-23 Thread Elvira Khabirova
-- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers