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
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
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
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-
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