[Devel] [PATCH rh7 01/12] ms/mm: replace remap_file_pages() syscall with emulation

2016-10-03 Thread Andrey Ryabinin
g> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit c8d78c1823f46519473949d33f0d1d33fe21ea16) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- Documentation/vm/remap_file_pages.txt | 27 include/linux/fs.h| 8 +- mm/Make

[Devel] [PATCH rh7] ms/coredump: fix unfreezable coredumping task

2016-10-03 Thread Andrey Ryabinin
waits for core_state->startup completion. https://jira.sw.ru/browse/PSBM-52793 Link: http://lkml.kernel.org/r/1475225434-3753-1-git-send-email-aryabi...@virtuozzo.com Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Cc: sta...@vger.kernel.org Acked-by: Oleg Nesterov <o...@redhat.co

[Devel] [PATCH rh7 06/12] ms/rmap: drop support of non-linear mappings

2016-10-03 Thread Andrey Ryabinin
org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 27ba0644ea9dfe6e7693abc85837b60e40583b96) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- Documentation/cachetlb.txt | 8 +- fs/inode.

[Devel] [PATCH rh7 08/12] ms/mm: remove rest usage of VM_NONLINEAR and pte_file()

2016-10-03 Thread Andrey Ryabinin
ned-off-by: Andrew Morton <a...@linux-foundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 0661a33611fca12570cba48d9344ce68834ee86c) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- inclu

[Devel] [PATCH rh7 09/12] ms/mm: fix regression in remap_file_pages() emulation

2016-10-03 Thread Andrey Ryabinin
as Ignotas <nota...@gmail.com> Tested-by: Grazvydas Ignotas <nota...@gmail.com> Cc: <sta...@vger.kernel.org>[4.0+] Signed-off-by: Andrew Morton <a...@linux-foundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> https://jira.sw.ru/browse/PSBM-52992 (che

[Devel] [PATCH rh7 10/12] ms/ipc/shm: handle removed segments gracefully in shm_mmap()

2016-10-03 Thread Andrey Ryabinin
g> Signed-off-by: Andrew Morton <a...@linux-foundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 1ac0b6dec656f3f78d1c3dd216fad84cb4d0a01e) Signed-off-by: And

[Devel] [PATCH rh7 03/12] ms/mm: drop support of non-linear mapping from fault codepath

2016-10-03 Thread Andrey Ryabinin
oundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 9b4bdd2ffab9557ac43af7dff02e7dab1c8c58bd) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/linux/mm.h | 16 +

[Devel] [PATCH rh7 05/12] ms/proc: drop handling non-linear mappings

2016-10-03 Thread Andrey Ryabinin
a...@linux-foundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 1da4b35b001481df99a6dcab12d5d39a876f7056) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/proc/task_mmu.c | 15 -

[Devel] [PATCH rh7 11/12] ms/asm-generic: drop unused pte_file* helpers

2016-10-03 Thread Andrey Ryabinin
by: Linus Torvalds <torva...@linux-foundation.org> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 5064c8e19dc215afae8ffae95570e7f22062d49c) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/asm-generic/pgtable.h | 15 --- 1 file changed, 15

[Devel] [PATCH rh7 00/12] replace remap_file_pages() syscall with emulation

2016-10-03 Thread Andrey Ryabinin
Backported patchset "Workaround for Xeon Phi PTE A/D bits erratum" caused - kernel BUG at mm/rmap.c:1305! _PAGE_BIT_FILE is not present in upstream but still present in RHEL7 kernel, so they did this: /* Pick a bit unaffected by the "KNL4 erratum": */ #define _PAGE_BIT_FILE

[Devel] [PATCH rh7 02/12] ms/mm: drop support of non-linear mapping from unmap/zap codepath

2016-10-03 Thread Andrey Ryabinin
.org> https://jira.sw.ru/browse/PSBM-52992 (cherry picked from commit 8a5f14a23177061ec11daeaa3d09d0765d785c47) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/linux/mm.h | 1 - mm/madvise.c | 9 +- mm/memory.c| 83 ++---

Re: [Devel] [PATCH rh7 v2] x86/mm: Use dirty bit for non-linear files ptes

2016-10-03 Thread Andrey Ryabinin
On 10/03/2016 11:56 AM, Andrey Ryabinin wrote: > Backported patchset "Workaround for Xeon Phi PTE A/D bits erratum" > caused - kernel BUG at mm/rmap.c:1305! > > _PAGE_BIT_FILE is not present in upstream but still present > in RHEL7 kernel, so they did this: >

[Devel] [PATCH rh7 v2] x86/mm: Use dirty bit for non-linear files ptes

2016-10-03 Thread Andrey Ryabinin
https://jira.sw.ru/browse/PSBM-52992 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- Changes since v1 - fixed typo s/_PAGE_PIT_DIRTY/_PAGE_BIT_DIRTY arch/x86/include/asm/pgtable_types.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/include/asm/p

[Devel] [PATCH rh7] x86/mm: Use dirty bit for non-linear files ptes

2016-10-03 Thread Andrey Ryabinin
Which conflicts with ours code: #define _PAGE_SWP_SOFT_DIRTY _PAGE_PSE So, as temporary fix restore old value for _PAGE_FILE. If we care about supporting Xeon Phi we could backport remap_file_pages() emulation from upstream which removes uses _PAGE_FILE. https://jira.sw.ru/browse/PSBM-52992 S

Re: [Devel] [PATCH] module: Do not dump stack for out of tree and unsigned modules

2016-09-29 Thread Andrey Ryabinin
nel > > https://jira.sw.ru/browse/PSBM-52719 > > Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com> > --- > kernel/panic.c |3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

Re: [Devel] [PATCH rh7 2/2] ms/dm: remove dummy definition of 'struct dm_table'

2016-09-23 Thread Andrey Ryabinin
On 09/23/2016 05:13 PM, Konstantin Khorenko wrote: > Why mainstream still keeps it? > By mistake, I guess. > -- > Best regards, > > Konstantin Khorenko, > Virtuozzo Linux Kernel Team > > On 09/22/2016 07:44 PM, Andrey Ryabinin wrote: >> There is no need

[Devel] [PATCH rh7 1/2] ms/dm: remove dummy definition of 'struct dm_table'

2016-09-22 Thread Andrey Ryabinin
from commit 1d3aa6f683b1c1a813a63339d7309cff58ba4531) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- drivers/md/dm.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index d9a24c9..a7993cf 100644 --- a/dri

[Devel] [PATCH rh7 2/2] ms/dm: remove dummy definition of 'struct dm_table'

2016-09-22 Thread Andrey Ryabinin
There is no need for it. https://jira.sw.ru/browse/PSBM-50727 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- drivers/md/dm-ioctl.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 720ceeb..0fe4233 100644 --- a/d

Re: [Devel] [PATCH rh7] sched: Fix cfs_rq->active assignment in sched_cfs_active_timer()

2016-09-08 Thread Andrey Ryabinin
ep a moment ago. > > See for dec_nr_active_cfs_rqs(), which postpone actions it does. > > Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com> > --- > kernel/sched/fair.c |2 +- > 1 file changed, 1 insertion(

[Devel] [PATCH rh7] sched: Fix race on toggling cfs_bandwidth_used

2016-08-30 Thread Andrey Ryabinin
> https://jira.sw.ru/browse/PSBM-51056 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/sched/core.c | 9 - kernel/sched/fair.c | 16 +--- kernel/sched/sched.h | 3 ++- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/kernel/sche

Re: [Devel] [PATCH rh7 v2] mm: memcontrol: add memory.numa_migrate file

2016-08-23 Thread Andrey Ryabinin
ed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com> > Cc: Andrey Ryabinin <aryabi...@virtuozzo.com> > Cc: Igor Redko <red...@virtuozzo.com> > Cc: Konstantin Neumoin <kneum...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>

Re: [Devel] [PATCH rh7] mm: memcontrol: add memory.numa_migrate file

2016-08-23 Thread Andrey Ryabinin
ed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com> > Cc: Andrey Ryabinin <aryabi...@virtuozzo.com> > Cc: Igor Redko <red...@virtuozzo.com> > Cc: Konstantin Neumoin <kneum...@virtuozzo.com> > --- echo "0 100" > /sys/fs/cgroup/memory/machine.slice

[Devel] [PATCH rh7 v3 3/4] fs/block_dev: fix NULL ptr deref in freeze_bdev()

2016-08-19 Thread Andrey Ryabinin
that. https://jira.sw.ru/browse/PSBM-50858 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/block_dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 4575c62..325ee71 100644 --- a/fs/block_dev.c +++ b/fs/block

[Devel] [PATCH rh7 v3 4/4] ploop: add support for dm-crypted ploops

2016-08-19 Thread Andrey Ryabinin
/PSBM-50858 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- drivers/block/ploop/dev.c | 21 ++--- drivers/block/ploop/io_direct.c | 12 drivers/md/dm-crypt.c | 8 +++- drivers/md/dm.c | 6 ++ drivers/m

[Devel] [PATCH rh7 v3 2/4] ploop: keep frozen block device pointer instead of super_block pointer

2016-08-19 Thread Andrey Ryabinin
For encrypted ploop we will need to know what block_device was frozen in ploop_freeze(), so we could thaw() it. We don't need to store super_block, because we sould be able to get it from frozen block device. https://jira.sw.ru/browse/PSBM-50858 Signed-off-by: Andrey Ryabinin <ary

[Devel] [PATCH rh7 v3 1/4] ploop: drop bdev refcounter on freeze_bdev() failure

2016-08-19 Thread Andrey Ryabinin
If freeze_bdev() called in find_and_freeze_bdev() fails we should drop a reference counter grabbed by bdget_disk() call. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Acked-by: Maxim Patlasov <mpatla...@virtuozzo.com> --- drivers/block/ploop/dev.c | 5 - 1 fil

Re: [Devel] [PATCH rh7] ploop: add support for dm-crypted ploops

2016-08-19 Thread Andrey Ryabinin
On 08/19/2016 02:40 AM, Maxim Patlasov wrote: > On 08/18/2016 09:49 AM, Andrey Ryabinin wrote: > >> >> On 08/18/2016 04:21 AM, Maxim Patlasov wrote: >>> Andrey, >>> >>> >>> ploop_freeze() must use __ploop_get_dm_crypt_bdev(), not >

[Devel] [PATCH rh7 v2 2/2] ploop: add support for dm-crypted ploops

2016-08-18 Thread Andrey Ryabinin
/PSBM-50858 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- Changes since v1: - fixed deadlock in ploop_freeze() - use bdgrab()/bdput() to keep bdev alive - use sb->s_bdev in ploop_thaw() instead of plo->dm_crypt_bdev in case it changed after freeze drivers/block

Re: [Devel] [PATCH rh7] ploop: add support for dm-crypted ploops

2016-08-18 Thread Andrey Ryabinin
On 08/18/2016 04:21 AM, Maxim Patlasov wrote: > Andrey, > > > ploop_freeze() must use __ploop_get_dm_crypt_bdev(), not > ploop_get_dm_crypt_bdev()! > YUp. > > Another problem is that the patch does not ensure that plo->dm_crypt_bdev > stays the same between PLOOP_IOC_FREEZE/THAW. I could

[Devel] [PATCH rh7] ploop: add support for dm-crypted ploops

2016-08-15 Thread Andrey Ryabinin
/PSBM-50858 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- drivers/block/ploop/dev.c | 27 +-- drivers/block/ploop/io_direct.c | 9 + drivers/md/dm-crypt.c | 8 +++- drivers/md/dm.c | 6 ++ drivers/m

[Devel] [PATCH rh7 v2 1/2] keys: add user_key_payload() helper

2016-08-11 Thread Andrey Ryabinin
This backports simple helper from upstream commit 146aa8b1453b ("KEYS: Merge the type-specific data with the payload data") To be used in dm-crypt. https://jira.sw.ru/browse/PSBM-44218 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/keys/user-type.h

[Devel] [PATCH rh7 v2 2/2] dm-crypt: add ability to use keys from the kernel key retention service

2016-08-11 Thread Andrey Ryabinin
looks like this: [|:] [<#opt_params> ] Note: userspace part for this is not implemented yet. https://jira.sw.ru/browse/PSBM-44218 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- Changes since v1: - Fixed memleak on crypt_decode_key() failure. drivers/md/dm-c

[Devel] [PATCH rh7 2/2] dm-crypt: add ability to use keys from the kernel key retention service

2016-08-10 Thread Andrey Ryabinin
looks like this: [|:] [<#opt_params> ] Note: userspace part for this is not implemented yet. https://jira.sw.ru/browse/PSBM-44218 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- drivers/md/dm-crypt.c | 114 ++ 1 file

[Devel] [PATCH rh7 1/2] keys: add user_key_payload() helper

2016-08-10 Thread Andrey Ryabinin
This backports simple helper from upstream commit 146aa8b1453b ("KEYS: Merge the type-specific data with the payload data") To be used in dm-crypt. https://jira.sw.ru/browse/PSBM-44218 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/keys/user-type.h

[Devel] [PATCH rh7] net/ip6tables: fix autoloading of the ip6table_raw module from CT

2016-08-03 Thread Andrey Ryabinin
://jira.sw.ru/browse/PSBM-50548 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/kmod.c | 1 + net/ipv6/netfilter/ip6table_raw.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/kernel/kmod.c b/kernel/kmod.c index 5e5c2c6..d2c16a9 100644 --- a/kernel/

[Devel] [PATCH rh7 2/2] ms/sched/fair: Do not announce throttled next buddy in dequeue_task_fair()

2016-07-25 Thread Andrey Ryabinin
nix.de> Link: http://lkml.kernel.org/r/146608183552.21905.15924473394414832071.stgit@buzz Signed-off-by: Ingo Molnar <mi...@kernel.org> https://jira.sw.ru/browse/PSBM-50099 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/sched/fair.c | 9 - 1 file changed, 4 in

[Devel] [PATCH rh7 1/2] ms/sched/fair: Initialize throttle_count for new task-groups lazily

2016-07-25 Thread Andrey Ryabinin
ogle.com Link: http://lkml.kernel.org/r/146608182119.21870.8439834428248129633.stgit@buzz Signed-off-by: Ingo Molnar <mi...@kernel.org> https://jira.sw.ru/browse/PSBM-50099 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/sched/fair.c | 20 kernel/sched/sched.h | 2 +- 2 f

[Devel] [PATCH rh7] ub: account memory overcommit failures in UB_PRIVVMPAGES.failcnt

2016-06-27 Thread Andrey Ryabinin
If allocation failed due to memory overcommit failcounters doesn't change. This contradicts with userspace expectations. With this patch, such failures will be accounted in failconter of UB_PRIVVMPAGES. https://jira.sw.ru/browse/PSBM-48891 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.

[Devel] [PATCH rh7] vecalls: kill VZCTL_SETDEVPERMS ioctl

2016-06-23 Thread Andrey Ryabinin
All device permissions are controlled via device cgroup now. We don't need this ioctl() anymore. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/uapi/linux/vzcalluser.h | 2 +- kernel/ve/vecalls.c | 37 - 2 files chan

Re: [Devel] [PATCH] binfmt_misc: Allow mount if capable(CAP_SYS_ADMIN)

2016-06-22 Thread Andrey Ryabinin
ned-off-by: Kirill Tkhai <ktk...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com> ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH rh7] ve/cpustat: don't try to update vcpustats for root_task_group

2016-06-22 Thread Andrey Ryabinin
-ENOENT if we asked for vcpu stats of root_task_group. https://jira.sw.ru/browse/PSBM-48721 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/sched/core.c | 10 -- kernel/ve/ve.c | 7 --- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/

[Devel] [PATCH rh7] ve/device_cgroup: kill ACC_QUOTA permission

2016-06-16 Thread Andrey Ryabinin
This is a leftover from PCS6. Currently this code does absolutely nothing, so let's remove it. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/linux/fs.h | 1 - security/device_cgroup.c | 13 ++--- 2 files changed, 2 insertions(+), 12 deletions(-) diff

[Devel] [PATCH rh7] ve/device_cgroup: allow to change device mount permission via cgroup

2016-06-16 Thread Andrey Ryabinin
off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- security/device_cgroup.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/security/device_cgroup.c b/security/device_cgroup.c index 0a6d9c4..08e80a5 100644 --- a/security/device_cgroup.c +++ b/security/device

[Devel] [PATCH rh7] kernel/sysrq: restore touch_nmi_watchdog() in show_state_filter()

2016-06-14 Thread Andrey Ryabinin
486 Fixes: 60c21d9f08bf ("kernel/sysrq: reset watchdog on all cpus while during sysrq-w") Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/sched/core.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/cor

[Devel] [PATCH rh7] sched/core/cfs: don't reset nr_cpus while setting cpu limits

2016-06-07 Thread Andrey Ryabinin
# cat /sys/fs/cgroup/cpu,cpuacct/101/cpu.nr_cpus 0 tg_update_cpu_limit() does that without any apparent reason, so let's fix it,. https://jira.sw.ru/browse/PSBM-48061 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-)

[Devel] [PATCH rh7] net/skbuff: fix skb_clone()

2016-06-06 Thread Andrey Ryabinin
ctly copy ->csum_bad along with ->csum_level and ->remcsum_offload fields which are also copied in the upstream kernel after b19372273164 commit. Note that we already have stepped on this in https://jira.sw.ru/browse/PSBM-38924 but this wasn't properly fixed at the time. https://jira.sw.ru/brows

[Devel] [PATCH rh7] fs/aio-nr: fix decrement of aio-nr

2016-05-27 Thread Andrey Ryabinin
Patch 'fs/aio: show real number of aio events in fs.aio-nr sysctl' changed only incrementing of fs.aio-nr counter. It failed to update decrement path which leads to constant growing of fs.aio-nr value. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/aio.c | 4 ++-- 1 file c

Re: [Devel] [PATCH rh7] kernel/sysrq: reset watchdog on all cpus while during sysrq-w

2016-05-27 Thread Andrey Ryabinin
On 05/25/2016 04:31 PM, Andrey Ryabinin wrote: > Lengthy output of sysrq-w may take a lot of time on slow serial console. > Currently we reset NMI-watchdog on the current cpu to avoid softlockup, > however this doesn't work since watchdog might be triggered on the other > cpu wh

[Devel] [PATCH rh7] kernel/sysrq: reset watchdog on all cpus while during sysrq-w

2016-05-25 Thread Andrey Ryabinin
spurious softlockup messages. https://jira.sw.ru/browse/PSBM-47486 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 2c147c8..d21ccf0

[Devel] [PATCH rh7 1/3] ms/mm/kasan: print name of mem[set, cpy, move]() caller in report

2016-05-23 Thread Andrey Ryabinin
at After: BUG: KASAN: out-of-bounds access in at Link: http://lkml.kernel.org/r/1462538722-1574-2-git-send-email-aryabi...@virtuozzo.com Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Acked-by: Alexander Potapenko <gli...@google.com> Cc: Dmitry Vyukov <dvyu...@googl

[Devel] [PATCH rh7 2/3] ms/mm/kasan: add API to check memory regions

2016-05-23 Thread Andrey Ryabinin
-1574-3-git-send-email-aryabinin@virtuocom Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Acked-by: Alexander Potapenko <gli...@google.com> Cc: Dmitry Vyukov <dvyu...@google.com> Cc: Ingo Molnar <mi...@elte.hu> Cc: "H. Peter Anvin" <h...@zytor.com>

[Devel] [PATCH rh7 3/3] ms/x86/kasan: instrument user memory access API

2016-05-23 Thread Andrey Ryabinin
...@virtuozzo.com: move kasan check under the condition] Link: http://lkml.kernel.org/r/1462869209-21096-1-git-send-email-aryabi...@virtuozzo.com Link: http://lkml.kernel.org/r/1462538722-1574-4-git-send-email-aryabi...@virtuozzo.com Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Cc: Ale

[Devel] [PATCH rh7] fs/aio: show real number of aio events in fs.aio-nr sysctl

2016-05-20 Thread Andrey Ryabinin
() the number of actually created events. This leads to inconsistent value of fs.aio-nr after the restore. Let's account in fs.aio-nr a number of created events, not requested. https://jira.sw.ru/browse/PSBM-47209 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/aio.c | 6 +++---

[Devel] [PATCH rh7] ms/net: sock: move ->sk_shutdown out of bitfields.

2016-05-20 Thread Andrey Ryabinin
e/PSBM-47023 Link: http://lkml.kernel.org/g/1463588367-16310-1-git-send-email-aryabi...@virtuozzo.com Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Suggested-by: Hannes Frederic Sowa <han...@stressinduktion.org> Acked-by: Eric Dumazet <eduma...@google.com> --- incl

[Devel] [PATCH rh7] ploop: avoid costly user-controllable kmalloc() calls

2016-05-19 Thread Andrey Ryabinin
off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- drivers/block/ploop/dev.c | 73 +-- 1 file changed, 32 insertions(+), 41 deletions(-) diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c index f3bb092..c4f81df 100644 --- a/driv

Re: [Devel] [PATCH rh7 4/4] ub: add heuristic check for memory overcommit

2016-05-05 Thread Andrey Ryabinin
UBC_PRIVVMPAGES limit is still > taken into account. If disabled (ubc.overcommit_memory = 1), only the > UBC_PRIVVMPAGES limit will be checked. > > https://jira.sw.ru/browse/PSBM-45695 > > Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com> Reviewed-by: Andrey Ryab

Re: [Devel] [PATCH rh7 3/4] memcg: make mem_cgroup_read_{stat|event}() iterate possible cpus instead of online

2016-05-05 Thread Andrey Ryabinin
gt; > Acked-by: Johannes Weiner <han...@cmpxchg.org> > Signed-off-by: Jens Axboe <ax...@fb.com> > (cherry picked from commit 733a572e66d2a23c852fdce34dba5bbd40667817) > Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com> > Reviewed-by: Andrey Ryabinin <

Re: [Devel] [PATCH rh7 2/4] ub: make cached and shmem meminfo output more accurate

2016-05-05 Thread Andrey Ryabinin
irectly from memory cgroup where they are already properly > accounted. > > Along the way, zap ub_page_stat and use mem_cgroup_get_nr_pages > directly. > > Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com&g

Re: [Devel] [PATCH rh7 1/4] mm: memcontrol: account shmem pages

2016-05-05 Thread Andrey Ryabinin
On 05/05/2016 01:23 PM, Vladimir Davydov wrote: > Needed by the following patches. > > Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com> > --- > mm/memcontrol.c | 8 +++- > 1 file change

[Devel] [PATCH ploop] discard/defrag: take into account image size change caused by defrag

2016-04-20 Thread Andrey Ryabinin
will discarded later. https://jira.sw.ru/browse/PSBM-42548 https://jira.sw.ru/browse/PSBM-45364 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- lib/balloon.c | 17 + 1 file changed, 17 insertions(+) diff --git a/lib/balloon.c b/lib/balloon.c index 6346f7c..612a6bd

[Devel] [PATCH rh7 2/2] ms/netfilter: nfnetlink_queue: Unregister pernet subsys in case of init failure

2016-04-04 Thread Andrey Ryabinin
Borisov <ker...@kyup.com> Signed-off-by: Pablo Neira Ayuso <pa...@netfilter.org> https://jira.sw.ru/browse/PSBM-45783 (cherry picked from commit 639e077b43d9c54ffb1e1b54a2de54597ceae1d8) Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- net/netfilter/nfnetlink_queue_co

[Devel] [PATCH rh7 1/2] ms/netfilter: nfnetlink_{log, queue}: Register pernet in first place

2016-04-04 Thread Andrey Ryabinin
"netns: remove BUG_ONs from net_generic()"]. Signed-off-by: Francesco Ruggeri <frugg...@arista.com> Signed-off-by: Pablo Neira Ayuso <pa...@netfilter.org> https://jira.sw.ru/browse/PSBM-45783 (cherry picked from commit 3bfe049807c240344b407e3cfb74544927359817) Si

Re: [Devel] [PATCH rh7 v3 2/2] ve/fs/sync: fix CT's mountpoints traversal

2016-02-26 Thread Andrey Ryabinin
On 02/26/2016 02:10 PM, Vladimir Davydov wrote: > On Thu, Feb 25, 2016 at 07:19:38PM +0300, Andrey Ryabinin wrote: > ... >> @@ -2673,7 +2676,10 @@ static struct mnt_namespace *create_mnt_ns(struct >> vfsmount *m) >> struct mount *mnt = real_mount(m); >

[Devel] [PATCH rh7 v3 2/2] ve/fs/sync: fix CT's mountpoints traversal

2016-02-25 Thread Andrey Ryabinin
s over all mounts of mount namespaces in ve. List of ve's mount namespaces maintained via mntns_list. https://jira.sw.ru/browse/PSBM-44125 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/mount.h | 1 + fs/namespace.c | 7 +++ fs/sync.c

[Devel] [PATCH rh7 v3 1/2] ve: remove sync_mutex

2016-02-25 Thread Andrey Ryabinin
sync_mutex in ve_struct doesn't do anything useful and could be removed safely. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com> --- fs/sync.c | 4 include/linux/ve.h | 1 - kernel/ve/ve.c | 1 - 3 file

[Devel] [PATCH rh7 v2 2/2] ve/fs/sync: fix CT's mountpoints traversal

2016-02-25 Thread Andrey Ryabinin
all mounts that seen in container's /proc/mounts). This approach seems much more correct and also simpler. https://jira.sw.ru/browse/PSBM-44125 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/mount.h | 1 - fs/namespace.c | 2 +- fs/sync.c | 4 ++-- 3 files changed, 3 i

[Devel] [PATCH rh7 v2 1/2] ve: remove sync_mutex

2016-02-25 Thread Andrey Ryabinin
sync_mutex in ve_struct doesn't do anything useful and could be removed safely. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/sync.c | 4 include/linux/ve.h | 1 - kernel/ve/ve.c | 1 - 3 files changed, 6 deletions(-) diff --git a/fs/sync.c b/fs/sync.c

Re: [Devel] [PATCH rh7] ve/fs/sync: fix CT's mountpoints traversal

2016-02-24 Thread Andrey Ryabinin
On 02/24/2016 07:15 PM, Vladimir Davydov wrote: > On Wed, Feb 24, 2016 at 06:36:22PM +0300, Andrey Ryabinin wrote: >> Currently sync reads 've->root_path.mnt' mount and iterate over it childs. >> This doesn't work, as not all in-container mounts could be reached that way

[Devel] [PATCH rh7] ve/fs/sync: fix CT's mountpoints traversal

2016-02-24 Thread Andrey Ryabinin
all mounts that seen in container's /proc/mounts). This approach seems much more correct and also simpler. I think we could get rid of 've->root_path' now. https://jira.sw.ru/browse/PSBM-44125 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/mount.h | 1 - fs/name

[Devel] [PATCH rh7] ve/fs/sync: sync detached inodes with dirty metadata

2016-02-17 Thread Andrey Ryabinin
Inodes with dirty metadata could be detached from UB (mapping->dirtied_ub == NULL). So sync() will skip such inodes. With this patch sync() will skip inodes with dirty data only. https://jira.sw.ru/browse/PSBM-44125 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-wr

Re: [Devel] [patch rh7] free shows used=0 inside centos7 CT

2016-02-09 Thread Andrey Ryabinin
On 12/04/2015 08:16 PM, Vasily Averin wrote: > Customer reports that free or top command inside Centos7 CT shows 0 memory > used > > free from procps-ng-3.3.10-3.el7 uses /proc/meminfo output and calculates > used = total - free - buffers - cache - slab > > However kernel in some cases

Re: [Devel] [PATCH rh7 v2 2/3] ve/fs/sync: per containter sync and syncfs

2016-02-03 Thread Andrey Ryabinin
On 02/03/2016 03:12 PM, Vladimir Davydov wrote: >> ub = get_exec_ub(); >> @@ -246,15 +252,18 @@ SYSCALL_DEFINE0(sync) >> fsb = __ve_fsync_behavior(ve); >> if (fsb == FSYNC_NEVER) >> goto skip; >> + >> +if (fsb == FSYNC_FILTERED) >>

Re: [Devel] [PATCH rh7 v2 2/3] ve/fs/sync: per containter sync and syncfs

2016-02-03 Thread Andrey Ryabinin
On 02/03/2016 04:49 PM, Andrey Ryabinin wrote: >> >> If sync_ub != NULL, you sync inodes and bdevs twice, here and in >> sync_filesystems_ve. Better move all the iterate_supers/bdevs from here >> to sync_filesystems under !ub branch? >> > &g

[Devel] [PATCH rh7 v3 2/3] ve/fs/sync: per containter sync and syncfs

2016-02-03 Thread Andrey Ryabinin
The implementation is straightforward, since we already have per container writeback. Sync just get user beancounter and launches writeback work for it. https://jira.sw.ru/browse/PSBM-39583 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c

[Devel] [PATCH rh7 v3 1/3] ve/fs/writeback: filter per-container inodes earlier

2016-02-03 Thread Andrey Ryabinin
Filter inodes before should happen befor the check for I_SYNC flag. During per-container writeback we don't wan't to requeue inodes from other containers. https://jira.sw.ru/browse/PSBM-39583 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c | 13 +++---

[Devel] [PATCH rh7 v3 3/3] ve/fs/sync: don't skip dirty metatdata on filtered sync

2016-02-03 Thread Andrey Ryabinin
Port of diff-ubc-dont-skip-dirty-metadata-on-filtered-sync patch from PCS6. Don't skip dirty metadata during per container sync[fs]. https://jira.sw.ru/browse/PSBM-39583 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c | 4 +++- 1 file changed, 3 insertions

Re: [Devel] [PATCH v2 RH7 1/2] ve/sysctl: add macro sysctl_virtual to unify sysctl's virtualization

2016-02-02 Thread Andrey Ryabinin
On 02/02/2016 05:26 PM, Pavel Tikhomirov wrote: > need in next patch for kernel.core_pattern sysctl > > https://jira.sw.ru/browse/PSBM-43596 > > v2: put syscall_virtual closer to the top of kernel/sysctl.c > Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com&

[Devel] [PATCH rh7 v2 3/3] ve/fs/sync: don't skip dirty metatdata on filtered sync

2016-02-02 Thread Andrey Ryabinin
Port of diff-ubc-dont-skip-dirty-metadata-on-filtered-sync patch from PCS6. Don't skip dirty metadata during per container sync[fs]. https://jira.sw.ru/browse/PSBM-39583 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c | 4 +++- 1 file changed, 3 insertions

Re: [Devel] [PATCH v2 RH7 2/2] ve/coredump: virtualize kernel.core_pattern sysctl

2016-02-02 Thread Andrey Ryabinin
ump to >|/root/core_test 445 UID=0 GID=0 sig=11 pipe failed > > Also docker is going to use pipe'ing in coredumps functionality: > https://github.com/docker/docker/issues/19289 > > https://jira.sw.ru/browse/PSBM-43596 > > v2: split sysctl_virtual in separate p

[Devel] [PATCH rh7 v2 2/3] ve/fs/sync: per containter sync and syncfs

2016-02-02 Thread Andrey Ryabinin
The implementation is straightforward, since we already have per container writeback. Sync just get user beancounter and launches writeback work for it. https://jira.sw.ru/browse/PSBM-39583 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c

[Devel] [PATCH rh7 v2 1/3] fs/sync: sync_inodes_one_sb doesn't need an argument

2016-02-02 Thread Andrey Ryabinin
sync_inodes_one_sb() doesn't have an argument, so passing pointer to nowait is completely useless. No functional changes here. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/sync.c b/fs/

[Devel] [PATCH rh7 1/3] fs/sync: remove dead code

2016-01-29 Thread Andrey Ryabinin
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/sync.c | 92 --- 1 file changed, 92 deletions(-) diff --git a/fs/sync.c b/fs/sync.c index 7ac77bb..cb2c7c2 100644 --- a/fs/sync.c +++ b/fs/sync.c @@ -99,98 +99,6 @@

[Devel] [PATCH rh7 3/3] ve/fs/sync: per containter sync and syncfs

2016-01-29 Thread Andrey Ryabinin
-dont-skip-dirty-metadata-on-filtered-sync patch). https://jira.sw.ru/browse/PSBM-39583 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/buffer.c | 2 +- fs/fs-writeback.c | 82 --- fs/sync.c

[Devel] [PATCH rh7 2/3] fs/sync: sync_inodes_one_sb doesn't need an argument

2016-01-29 Thread Andrey Ryabinin
sync_inodes_one_sb() doesn't have an argument, so passing pointer to nowait is completely useless. No functional changes here. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/sync.c b/fs/

Re: [Devel] [PATCH rh7] cpuset: revert changes allowing to attach to empty cpusets

2016-01-29 Thread Andrey Ryabinin
-by: Vladimir Davydov <vdavy...@virtuozzo.com> Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com> ___ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel

[Devel] [PATCH v2 rh7] config/OpenVZ: disable RH_KABI_SIZE_ALIGN_CHECKS

2016-01-26 Thread Andrey Ryabinin
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- configs/kernel-3.10.0-x86_64.config | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/kernel-3.10.0-x86_64.config b/configs/kernel-3.10.0-x86_64.config index 46345b5..3c55454 100644 --- a/configs/kernel-3.10.0-x86_64.

[Devel] [PATCH rh7] config/OpenVZ: disable RH_KABI_SIZE_ALIGN_CHECKS

2016-01-26 Thread Andrey Ryabinin
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- configs/kernel-3.10.0-x86_64.config | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/kernel-3.10.0-x86_64.config b/configs/kernel-3.10.0-x86_64.config index 46345b5..3c55454 100644 --- a/configs/kernel-3.10.0-x86_64.

[Devel] [PATCH v3 rh7] config/OpenVZ: disable RH_KABI_SIZE_ALIGN_CHECKS

2016-01-26 Thread Andrey Ryabinin
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- configs/kernel-3.10.0-x86_64.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/kernel-3.10.0-x86_64.config b/configs/kernel-3.10.0-x86_64.config index 46345b5..6330233 100644 --- a/configs/kernel-

[Devel] [PATCH rh7] fs/writeback: use redirty_tail to skip inodes.

2016-01-25 Thread Andrey Ryabinin
We call requeue_io() on inode that meant to be skipped. It's not right since requeue_io() means that we will busy retry to write that inode. redirty_tail() should be used to skip inodes. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c | 2 +- 1 file chan

Re: [Devel] [PATCH v3 rh7 2/2] mm/page-writeback: Introduce per-CT dirty memory limit.

2016-01-21 Thread Andrey Ryabinin
On 01/21/2016 01:35 PM, Vladimir Davydov wrote: >> +if (ub_dirty + ub_writeback <= ub_thresh) >> +break; >> +if (!writeback_in_progress(bdi)) >> +bdi_start_background_writeback(bdi); >> + >> +/* >> + *

Re: [Devel] [PATCH v4 rh7 2/3] mm/page-writeback: Introduce per-CT dirty memory limit.

2016-01-21 Thread Andrey Ryabinin
On 01/21/2016 02:43 PM, Andrey Ryabinin wrote: > + /* > + * We start background writeout at the lower ub_background_thresh, > + * to keep the amount of dirty memory low. > + */ > + if (!laptop_mode && ub_dirty > ub_background_thresh) Ugh... S

[Devel] [PATCH v4 rh7 1/3] fs/writeback: per-CT fs writeback

2016-01-21 Thread Andrey Ryabinin
ew 'struct user_beancounter *ub' argument which is needed for targeted per-CT writeback. This will be used in the next patch. https://jira.sw.ru/browse/PSBM-33841 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com> --- fs/fs-writ

[Devel] [PATCH v4 rh7 3/3] ub: drop unused UB_DIRTY_EXCEEDED

2016-01-21 Thread Andrey Ryabinin
Drop unused UB_DIRTY_EXCEEDED and ub_flags field as well, since this was the only flag. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- include/bc/beancounter.h | 6 -- kernel/ve/vziolimit.c| 2 -- 2 files changed, 8 deletions(-) diff --git a/include/bc/beancount

[Devel] [PATCH v4 rh7 2/3] mm/page-writeback: Introduce per-CT dirty memory limit.

2016-01-21 Thread Andrey Ryabinin
. https://jira.sw.ru/browse/PSBM-33841 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- mm/page-writeback.c | 98 - 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 4

[Devel] [PATCH v5 rh7 2/3] mm/page-writeback: Introduce per-CT dirty memory limit.

2016-01-21 Thread Andrey Ryabinin
. https://jira.sw.ru/browse/PSBM-33841 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com> --- mm/page-writeback.c | 98 - 1 file changed, 97 insertions(+), 1 deletion(-) diff --g

[Devel] [PATCH v5 rh7 3/3] ub: drop unused UB_DIRTY_EXCEEDED

2016-01-21 Thread Andrey Ryabinin
Drop unused UB_DIRTY_EXCEEDED and ub_flags field as well, since this was the only flag. Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com> --- include/bc/beancounter.h | 6 -- kernel/ve/vziolimit.c| 2 -- 2 file

[Devel] [PATCH v5 rh7 1/3] fs/writeback: per-CT fs writeback

2016-01-21 Thread Andrey Ryabinin
ew 'struct user_beancounter *ub' argument which is needed for targeted per-CT writeback. This will be used in the next patch. https://jira.sw.ru/browse/PSBM-33841 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com> --- fs/fs-writ

[Devel] [PATCH v3 rh7 2/2] mm/page-writeback: Introduce per-CT dirty memory limit.

2016-01-21 Thread Andrey Ryabinin
. https://jira.sw.ru/browse/PSBM-33841 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- mm/page-writeback.c | 99 - 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 4

[Devel] [PATCH v3 rh7 1/2] fs/writeback: per-CT fs writeback

2016-01-21 Thread Andrey Ryabinin
ew 'struct user_beancounter *ub' argument which is needed for targeted per-CT writeback. This will be used in the next patch. https://jira.sw.ru/browse/PSBM-33841 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c | 29 +++-- incl

[Devel] [PATCH v2 rh7 1/2] fs/writeback: per-CT fs writeback

2016-01-19 Thread Andrey Ryabinin
ew 'struct user_beancounter *ub' argument which is needed for targeted per-CT writeback. This will be used in the next patch. https://jira.sw.ru/browse/PSBM-33841 Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com> --- fs/fs-writeback.c | 38 --

<    4   5   6   7   8   9   10   11   >