[Devel] [PATCH rh7] mm/memcg, ub: fix overflow in mem_cgroup_apply_beancounter()

2017-06-01 Thread Andrey Ryabinin
If UBC has unlimited UB_PHYSPAGES/UB_SWAPPAGES mem_cgroup_apply_beancounter() will set memcg limits to negative values due to overflow. This will lead to bogus -ENOMEM. Add proper check for overflow and also make sure that we don't mem and memsw bigger than PAGE_COUNTER_MAX as this is maximal poss

[Devel] [PATCH 0/1] ms/kprobes/x86: Return correct length in __copy_instruction()

2017-06-01 Thread Evgenii Shatokhin
https://jira.sw.ru/browse/PSBM-66876 If one tries to place a kprobe on an instruction that uses %rip-relative addressing, register_kprobe() fails with -EINVAL because __copy_instruction() from arch/x86/kernel/kprobes/core.c incorrectly returns 0. This makes it harder to use kprobes for the kern

[Devel] [PATCH] ms/kprobes/x86: Return correct length in __copy_instruction()

2017-06-01 Thread Evgenii Shatokhin
From: Eugene Shatokhin ms commit: c80e5c0c23ce2282476fdc64c4b5e3d3a40723fd On x86-64, __copy_instruction() always returns 0 (error) if the instruction uses %rip-relative addressing. This is because kernel_insn_init() is called the second time for 'insn' instance in such cases and sets all its fi

[Devel] [PATCH] scripts: use absolute binaries paths nfs-ports-allow.sh

2017-06-01 Thread Stanislav Kinsburskiy
That's the way to support multiple distributions. https://jira.sw.ru/browse/PSBM-66901 Signed-off-by: Stanislav Kinsburskiy --- scripts/nfs-ports-allow.sh | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/scripts/nfs-ports-allow.sh b/scripts/nfs-ports-

Re: [Devel] [PATCH] scripts: use absolute binaries paths nfs-ports-allow.sh

2017-06-01 Thread Dmitry Safonov
On 06/01/2017 06:00 PM, Stanislav Kinsburskiy wrote: That's the way to support multiple distributions. https://jira.sw.ru/browse/PSBM-66901 Signed-off-by: Stanislav Kinsburskiy --- scripts/nfs-ports-allow.sh | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) Ap