shrink_slab_memcg() may iterate for a long time without resched if we
have many memcg with small amount of objects. Add cond_resched() to
avoid potential softlockup.
https://jira.sw.ru/browse/PSBM-125095
Signed-off-by: Andrey Ryabinin
---
mm/vmscan.c | 2 ++
1 file changed, 2 insertions
cherry picked from commit e3336cab2579012b1e72b5265adf98e2d6e244ad)
Signed-off-by: Andrey Ryabinin
---
mm/vmscan.c | 8
1 file changed, 8 insertions(+)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 85622f235e78..080500f4e366 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2684,6 +2684,14 @@ stati
an additional check - just in case someone get secondary
ploop image with 'errors=panic' mount option saved in the image
and mounts it from inside a CT.
Signed-off-by: Andrey Ryabinin
---
fs/ext4/super.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git
;.
In order to avoid such ambiguity we should pefrorm 'stabilize write'.
1) Read and rewrite latest commit id block
2) Invalidate next block in
order to guarantee that journal head becomes stable.
Signed-off-by: Dmitry Monakhov
Signed-off-by: Andrey Ryabinin
---
fs/jbd2/recovery.c | 77
ct ovl_entry'.
So move lowerpaths there and use oe->numlower as array size.
Fixes: 17fc61697f73 ("overlayfs: add dynamic path resolving in mount options")
Fixes: 2191d729083d ("overlayfs: add mnt_id paths options")
https://jira.sw.ru/browse/PSBM-123508
Signed-off-by: A
fs: add mnt_id paths options")
https://jira.sw.ru/browse/PSBM-123508
Signed-off-by: Andrey Ryabinin
---
fs/overlayfs/overlayfs.h | 4 ++--
fs/overlayfs/ovl_entry.h | 1 -
fs/overlayfs/super.c | 30 ++
fs/overlayfs/util.c | 13 +
4 fil
browse/PSBM-123524
(cherry picked from commit f66ee0410b1c3481ee75e5db9b34547b4d582465)
Signed-off-by: Andrey Ryabinin
---
include/linux/netfilter/ipset/ip_set.h | 11 +-
net/netfilter/ipset/ip_set_core.c | 34 +-
net/netfilter/ipset/ip_set_hash_gen.h | 633 +
3
Link: https://lkml.kernel.org/r/20201019134237.ga18...@redhat.com
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-123525
(cherry picked from commit 7b3c36fc4c231ca532120bbc0df67a12f09c1d96)
Signed-off-by: Andrey Ryabinin
---
kernel/signal.c | 19 ++-
1 file changed,
so_fault()
need to perform get_page() on individual sub-pages and alloc_pages()
doesn't initalize sub-pages.
https://jira.sw.ru/browse/PSBM-123551
Signed-off-by: Andrey Ryabinin
---
kernel/ve/ve.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/ve/ve.c b/
Fix rebase of commit 3f10e0c1a0df12a2a503d0d9a3ec7b4f3ac3a467
Author: Andrey Ryabinin
Date: Mon Oct 5 13:18:40 2020 +0300
mm, memcg: add oom counter to memory.stat memcgroup file
https://jira.sw.ru/browse/PSBM-123537
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c
Use down_read_nested to avoid lockdep complain.
Signed-off-by: Andrey Ryabinin
---
mm/rmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/rmap.c b/mm/rmap.c
index 523957450d20..90cf61e209ac 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1724,7 +1724,7 @@ static int
Use down_read_nested to avoid lockdep complain.
Signed-off-by: Andrey Ryabinin
---
mm/rmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/rmap.c b/mm/rmap.c
index 523957450d20..90cf61e209ac 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1724,7 +1724,7 @@ static int
Cc: Oleg Nesterov
Cc: Peter Zijlstra (Intel)
Cc: Rik van Riel
Cc: Srikar Dronamraju
Acked-by: Mel Gorman
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-122663
(cherry picked from commit c8475d144abb1e62958cc5ec281d2a9e161c1946)
Signed-off-by: Andre
wse/PSBM-122663
(cherry picked from commit 1acf2e040721564d579297646862b8ea3dd4511b)
Signed-off-by: Andrey Ryabinin
---
mm/nommu.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/mm/nommu.c b/mm/nommu.c
index f994621e52f0..290fe3031147 100644
--- a/mm/nommu.c
+
-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-122663
(cherry picked from commit 4a23717a236b2ab31efb1651f586126789fc997f)
Signed-off-by: Andrey Ryabinin
---
kernel/events/uprobes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/events/uprobes.c b/kernel/events
r Zijlstra (Intel)
Cc: Rik van Riel
Cc: Srikar Dronamraju
Acked-by: Mel Gorman
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-122663
(cherry picked from commit d28eb9c861f41aa2af4cfcc5eeeddff42b13d31e)
Signed-off-by: Andrey Ryabinin
---
mm/memory-fai
kins
Cc: Oleg Nesterov
Acked-by: Peter Zijlstra (Intel)
Cc: Srikar Dronamraju
Acked-by: Mel Gorman
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-122663
(cherry picked from commit 8b28f621bea6f84d44adf7e804b73aff1e09105b)
Signed-off-by: Andrey Ryabi
Acked-by: Hugh Dickins
Cc: Oleg Nesterov
Acked-by: Peter Zijlstra (Intel)
Cc: Srikar Dronamraju
Acked-by: Mel Gorman
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-122663
(cherry picked from commit 3dec0ba0be6a532cac949e02b853021bf6d57dad)
Signed
-by: Peter Zijlstra (Intel)
Cc: Srikar Dronamraju
Acked-by: Mel Gorman
Signed-off-by: Stephen Rothwell
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-122663
(cherry picked from commit c8c06efa8b552608493b7066c234cfa82c47fcea)
Signed-off-by: Andre
Cc: Srikar Dronamraju
Acked-by: Mel Gorman
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-122663
(cherry picked from commit 83cde9e8ba95d180eaefefe834958fbf7008cf39)
Signed-off-by: Andrey Ryabinin
---
fs/dax.c| 4 ++--
fs/hugetlbfs/inode
M-122663
Signed-off-by: Andrey Ryabinin
---
mm/vmscan.c | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 85622f235e78..240435eb6d84 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2653,15 +2653,9 @@ static void shrink_zone(struct zon
icked from commit cd961038381f392b364a7c4a040f4576ca415b1a)
[Note: we don't have commit 907ec5fca3dc, but as changelog says
this could trigger before it. And we have all other symptoms - reserved
page from NUMA node 1 with zeroed struct page, so page_zone() gives us
wrong zone, hence BUG_ON()].
nally there, see
https://jira.sw.ru/browse/PSBM-93884 but moved in a process of rebase.
https://jira.sw.ru/browse/PSBM-122653
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index e36ad59
nally there, see
https://jira.sw.ru/browse/PSBM-93884 but moved in a process of rebase.
https://jira.sw.ru/browse/PSBM-122655
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index e36ad59
ot;rage" >= 0.
https://jira.sw.ru/browse/PSBM-17930
Signed-off-by: Vladimir Davydov
[aryabinin: vz8 rebase]
Signed-off-by: Andrey Ryabinin
---
include/linux/memcontrol.h | 6 +++
include/linux/oom.h| 4 ++
mm/oom_kill.c | 97 ++
ds of tasks so that the next oom kill is
likely to select an exiting task. Not triggering berserker in this case
will result in oom stalls.
Signed-off-by: Vladimir Davydov
[aryabinin: rh8 rebase]
Signed-off-by: Andrey Ryabinin
---
mm/oom_kill.c | 9 +
1 file changed, 5 insertions(+), 4 del
correct behaviour.
Signed-off-by: Andrey Ryabinin
---
fs/proc/base.c | 8 +++-
include/linux/memcontrol.h | 11 +++
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 85fee7396e90..cb417426dd92 100644
--- a/fs/proc/base.c
+++ b
c| 6 ++-
> kernel/time/time.c | 1 +
> kernel/ve/ve.c | 18 +
> kernel/ve/vecalls.c | 66 +
> 8 files changed, 109 insertions(+), 12 deletions(-)
>
Reviewed-by: Andrey Ryabinin
__
-by: Kirill Tkhai
Reviewed-by: Andrey Ryabinin
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
ones does, but I did find out that visibility("hidden")
attribute on 've_start_time' cures the problem.
https://jira.sw.ru/browse/PSBM-121668
Signed-off-by: Andrey Ryabinin
---
arch/x86/entry/vdso/vclock_gettime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-
mitry Monakhov
[aryabinin rh8 rebase]
Signed-off-by: Andrey Ryabinin
---
fs/ext4/ext4.h | 2 ++
fs/ext4/super.c | 10 ++
2 files changed, 12 insertions(+)
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 228492c9518f..bbdd7efc8447 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@
andle this situation and inform user-space about this.
*Implementation:
Add uevent infrastructure similar to dm uevent
FS_ACTION = {MOUNT|UMOUNT|REMOUNT|ERROR|FREEZE|UNFREEZE}
FS_UUID
FS_NAME
FS_TYPE
Signed-off-by: Dmitry Monakhov
[aryabinin: add error event, rh8 rebase]
Signed-off-by: A
em()
on 32-bit.
https://jira.sw.ru/browse/PSBM-121856
Signed-off-by: Andrey Ryabinin
---
arch/x86/entry/vdso/vclock_gettime.c | 18 --
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/arch/x86/entry/vdso/vclock_gettime.c
b/arch/x86/entry/vdso/vclock_gettime.c
inde
BM-121823
Signed-off-by: Andrey Ryabinin
---
Changes since v1:
- none
Changes since v2:
- add spinlock, use temporary ve_flags in show_cpuinfo()
arch/x86/kernel/cpu/proc.c | 31 ++-
1 file changed, 22 insertions(+), 9 deletions(-)
diff --git a/arch/x86/kerne
ontainers.
https://jira.sw.ru/browse/PSBM-121823
Signed-off-by: Andrey Ryabinin
Reviewed-by: Kirill Tkhai
---
Changes since v1:
- git add include/linux/cpuid_override.h
Changes since v2:
- add review tag
arch/x86/kernel/cpuid_fault.c | 21 ++---
inclu
On 11/3/20 2:28 PM, Kirill Tkhai wrote:
> On 02.11.2020 20:13, Andrey Ryabinin wrote:
>> If several threads read /proc/cpuinfo some can see in 'flags'
>> values from c->x86_capability, before __do_cpuid_fault() called
>> and masks applied. Fix this by forming
ontainers.
https://jira.sw.ru/browse/PSBM-121823
Signed-off-by: Andrey Ryabinin
---
Changes since v1:
- git add include/linux/cpuid_override.h
arch/x86/kernel/cpuid_fault.c | 21 ++---
include/linux/cpuid_override.h | 30 ++
kernel/ve/ve.c
BM-121823
Signed-off-by: Andrey Ryabinin
---
Changes since v1:
- none
arch/x86/kernel/cpu/proc.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c
index 4fe1577d5e6f..4cc2951e34fb 100644
--- a/arch/x86/
ontainers.
https://jira.sw.ru/browse/PSBM-121823
Signed-off-by: Andrey Ryabinin
---
arch/x86/kernel/cpuid_fault.c | 21 ++---
kernel/ve/ve.c| 5 -
2 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/arch/x86/kernel/cpuid_fault.c b/arch/x86/kernel/cp
BM-121823
Signed-off-by: Andrey Ryabinin
---
arch/x86/kernel/cpu/proc.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c
index 4fe1577d5e6f..4cc2951e34fb 100644
--- a/arch/x86/kernel/cpu/proc.c
+++ b/arc
t;)
> a58fb58bff1c ("Use ve init task's css instead of opening cgroup via vfs")
>
> Signed-off-by: Konstantin Khorenko
> ---
Reviewed-by: Andrey Ryabinin
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
4d1d8f383 ("ve/time: Customize VE uptime")
>
> TODO: to separate FIXME hunks from a3c4d1d8f383 ("ve/time: Customize VE
> uptime") and merge them into this commit
>
> Signed-off-by: Konstantin Khorenko
> ---
Reviewed-by: Andrey Ryabinin
__
hed: Export per task_group statistics_work")
> 75fc174adc36 ("sched: Port cpustat related patches")
> a58fb58bff1c ("Use ve init task's css instead of opening cgroup via vfs")
>
> Signed-off-by: Konstantin Khorenko
Reviewed-by: Andrey Ryabinin
___
ting
>
> fs/proc/stat.c | 10 +
> include/linux/kernel_stat.h | 37
> include/linux/ve.h | 8 +
> kernel/cgroup/cgroup.c | 6 +-
> kernel/sched/core.c | 17 +-
> kernel/sched/cpuacct.c | 377 +++
bf64adb74cd62c4deff58e181bd63d62ac)
> Signed-off-by: Konstantin Khorenko
> ---
Reviewed-by: Andrey Ryabinin
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
ed right before specific cpu is being prepared
to show). This should be rather easy.
[aryabinin: Don't see what it buys us, so I didn't try to implement it]
Signed-off-by: Kirill Tkhai
https://jira.sw.ru/browse/PSBM-121823
[aryabinin:vz8 rebase]
Signed-off-by: Andrey Ryabinin
---
arch/x
TIF_NOCPUID to
decide whether we need to enable/disable cpuid faults or not.
https://jira.sw.ru/browse/PSBM-121823
Signed-off-by: Andrey Ryabinin
---
arch/x86/include/asm/thread_info.h | 4 +++-
arch/x86/kernel/cpuid_fault.c | 3 ++-
arch/x86/kernel/process.c | 13 +
arch
d-off-by: Vladimir Davydov
Acked-by: Cyrill Gorcunov
=
https://jira.sw.ru/browse/PSBM-33638
Signed-off-by: Vladimir Davydov
Rebase:
Signed-off-by: Kirill Tkhai
https://jira.sw.ru/browse/PSBM-121823
[aryabinin: vz8 reb
_namespace.")
Signed-off-by: Andrey Ryabinin
---
include/linux/sched/user.h | 1 +
include/linux/user_namespace.h | 4
kernel/user.c | 22 +-
kernel/user_namespace.c| 13 +
4 files changed, 31 insertions(+), 9 deletions(-)
diff
mount options, ignoring others.
mFixes: bc4143b ("ve/fs/devmnt: process mount options")
Found during implementation of
https://jira.sw.ru/browse/PSBM-40075
Signed-off-by: Konstantin Khorenko
Reviewed-by: Kirill Tkhai
https://jira.sw.ru/browse/PSBM-108196
Signed-off-by: Andrey Ryabin
ebase: ktkhai@: Merged "ve: Strip unset options in ve.mount_opts"
[aryabinin: vz8 rebase]
https://jira.sw.ru/browse/PSBM-108196
Signed-off-by: Andrey Ryabinin
---
include/linux/ve.h | 11 +++
kernel/ve/ve.c | 175 +
2 files changed, 186 inserti
Similarly to the 64-bit vdso, make 32-bit vdso mapping per-ve.
This will allow per container modification of the linux version
xin .note section of vdso and monotonic time.
https://jira.sw.ru/browse/PSBM-121668
Signed-off-by: Andrey Ryabinin
---
arch/x86/entry/vdso/vma.c| 4 ++--
arch/x86
On the write to ve.os_release file patch the linux_version_code
in the .note section of vdso.
https://jira.sw.ru/browse/PSBM-121668
Signed-off-by: Andrey Ryabinin
---
arch/x86/entry/vdso/vdso-note.S | 2 ++
arch/x86/entry/vdso/vdso2c.c | 1 +
arch/x86/entry/vdso/vdso32/note.S | 2
Make vdso mapping per-ve. This will allow per container modification
of the linux version in .note section of vdso and monotonic time.
https://jira.sw.ru/browse/PSBM-121668
Signed-off-by: Andrey Ryabinin
---
arch/x86/entry/vdso/vma.c| 3 ++-
arch/x86/kernel/process_64.c | 2 +-
include
Make possible to read virtualized container's CLOCK_MONOTONIC time
via __vclock_getttime(). Record containers start time in per-ve
vdso and substruct it from the host's time on clock read.
https://jira.sw.ru/browse/PSBM-121668
Signed-off-by: Andrey Ryabinin
---
arch/x86/
On 10/19/20 7:32 PM, Konstantin Khorenko wrote:
> From: Andrey Ryabinin
>
> Move swapped in anon pages directly to active list. This should
> help us to prevent anon thrashing. Recently swapped in pages
> has more chances to stay in memory.
>
> https://pmc.acronis.c
69df36035ab6b83eb)
> Signed-off-by: Konstantin Khorenko
Reviewed-by: Andrey Ryabinin
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
in LaHaise
Signed-off-by: Benjamin LaHaise
https://jira.sw.ru/browse/PSBM-121197
(cherry picked from commit 73a7075e3f6ec63dc359064eea6fd84f406cf2a5)
Signed-off-by: Andrey Ryabinin
---
drivers/staging/android/logger.c | 2 +-
drivers/usb/gadget/inode.c | 6 +--
Currently we use per-cpu stocks to do precharges of the ->memory and ->memsw
counters. Do this for the ->kmem and ->cache as well to decrease contention
on these counters as well.
https://jira.sw.ru/browse/PSBM-101300
Signed-off-by: Andrey Ryabinin
---
mm/memco
se/PSBM-120968
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6587cc2ef019..e36ad592b3c7 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4721,11 +4721,7 @@ int mem_cgroup_eno
l_css+0x8f/0x120
cgroup_destroy_locked+0x246/0x5e0
cgroup_rmdir+0x2f/0x2c0
kernfs_iop_rmdir+0x131/0x1b0
vfs_rmdir+0x142/0x3c0
do_rmdir+0x2b2/0x340
do_syscall_64+0xa5/0x4d0
entry_SYSCALL_64_after_hwframe+0x6a/0xdf
https://jira.sw.ru/browse/PSBM-120670
Signed-off-by: Andrey Ryabin
x167/0x580 [ext4]
evict+0xd2/0x1a0
do_unlinkat+0x250/0x2e0
do_syscall_64+0x5b/0x1a0
entry_SYSCALL_64_after_hwframe+0x65/0xca
https://jira.sw.ru/browse/PSBM-120653
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/memcontrol.c b
On 10/9/20 10:22 AM, Vasily Averin wrote:
> Andrey,
> could you please clarify, is it required for vz8 too?
>
vz8 don't need this. This part was removed by commit 0a0337e0d1 ("mm, oom:
rework oom detection")
___
Devel mailing list
Devel@openvz.org
On 10/9/20 10:14 AM, Vasily Averin wrote:
> vz8 is affected too, please cherry-pick
> vz7 commit 79a5642e9d9a6bdbb56d9e0ee990fd96b7c8625c
>
vz8 is not affected
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
__add_to_page_cache_locked() after mem_cgroup_try_charge_cache()
uses mem_cgroup_cancel_charge() in one of the error paths.
This may lead to leaking a few memcg->cache charges.
Use mem_cgroup_cancel_cache_charge() to fix this.
https://jira.sw.ru/browse/PSBM-121046
Signed-off-by: Andrey Ryabi
On 10/6/20 11:17 AM, Konstantin Khorenko wrote:
> On 10/05/2020 04:42 PM, Andrey Ryabinin wrote:
>> Userspace may ask tun device to send packet with ridiculously
>> big header and trigger this:
>>
>> [ cut here ]
>> WARNING: CPU: 1 P
.ru/browse/PSBM-103639
Signed-off-by: Andrey Ryabinin
---
drivers/net/tun.c | 4 ++--
include/net/sock.h | 7 +++
net/core/sock.c| 9 +
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index e95a89ba48b7..c0879c6a9703 100644
--
te
in that case.
https://jira.sw.ru/browse/PSBM-104900
Signed-off-by: Andrey Ryabinin
---
mm/vmscan.c | 24
1 file changed, 24 deletions(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 13ae9bd1e92e..85622f235e78 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2952,26 +2
he same.
https://jira.sw.ru/browse/PSBM-120800
Signed-off-by: Andrey Ryabinin
---
kernel/sched/fair.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index fc87dee4fd0e..23a2f2452474 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sche
oom 1
total_oom 1
# echo -1 > /sys/fs/cgroup/memory/test/memory.memsw.limit_in_bytes
# echo -1 > /sys/fs/cgroup/memory/test/memory.limit_in_bytes
# ./vm-scalability/usemem -O 1000G
# grep oom /sys/fs/cgroup/memory/memory.stat
oom 1
total_oom 2
https://jira.sw.ru/browse/PSB
https://jira.sw.ru/browse/PSBM-106384
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index c30150b8732d..37d4df653f39 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2213,14 +2213,18 @@ s
/browse/PSBM-94761
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 42 ++
1 file changed, 18 insertions(+), 24 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 68242a72be4d..c30150b8732d 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
50
>do_page_fault+0x38/0x290
>do_async_page_fault+0x5b/0xe0
>async_page_fault+0x1e/0x30
>
> Let us restore rcu_read_lock().
>
> https://jira.sw.ru/browse/PSBM-120802
> Signed-off-by: Evgenii Shatokhin
Reviewed-by: Andrey Ryabinin
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
fter update.
https://jira.sw.ru/browse/PSBM-108013
Reported-by: Kirill Tkhai
Signed-off-by: Andrey Ryabinin
---
kernel/sched/fair.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index e6dc21d5fa03..fc87dee4fd0e 100644
--- a/kernel/sched/fair.c
+++ b/
Add update_rq_clock() for 'target_rq' to avoid WARN() coming
from attach_task(). Also add update_rq_clock(env.src_rq); in
load_balance() for detach_task().
https://jira.sw.ru/browse/PSBM-108013
Reported-by: Kirill Tkhai
Signed-off-by: Andrey Ryabinin
---
kernel/sched/fair.c | 2
On 9/29/20 11:24 AM, Kirill Tkhai wrote:
> On 28.09.2020 15:03, Andrey Ryabinin wrote:
>> We've got a hard lockup which seems to be caused by mgag200
>> console printk code calling to schedule_work from scheduler
>> with rq->lock held:
>> #5 [b79e034239a
n load_balance() before move_task_groups() call.
It seems to be another place missing this call.
https://jira.sw.ru/browse/PSBM-108013
Signed-off-by: Andrey Ryabinin
---
kernel/sched/fair.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
inde
hat we missing necessary update_rq_clock() call.
Add one to cpulimit_balance_cpu_stop() to fix the warning.
Also add one in load_balance() before move_task_groups() call.
It seems to be another place missing this call.
https://jira.sw.ru/browse/PSBM-108013
Signed-off-by: Andrey Ryabinin
---
kerne
ead+0xd1/0xe0
ret_from_fork_nospec_begin+0x7/0x21
Add the necessary check to fix this.
https://jira.sw.ru/browse/PSBM-108198
Fixes: 499126f3b029 ("keys, user: Fix high order allocation in
user_instantiate()")
Signed-off-by: Andrey Ryabinin
---
security/keys/user_defined.c | 6 --
1
oom 1
total_oom 1
# echo -1 > /sys/fs/cgroup/memory/test/memory.memsw.limit_in_bytes
# echo -1 > /sys/fs/cgroup/memory/test/memory.limit_in_bytes
# ./vm-scalability/usemem -O 1000G
# grep oom /sys/fs/cgroup/memory/memory.stat
oom 1
total_oom 2
https://jira.sw.ru/browse/PSB
only
during an OOM condition on bcache_register.
Signed-off-by: Eric Wheeler
Cc: sta...@vger.kernel.org
https://jira.sw.ru/browse/PSBM-106785
(cherry picked from commit f8b11260a445169989d01df75d35af0f56178f95)
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/super.c | 3 +++
1 file chang
: Jens Axboe
https://jira.sw.ru/browse/PSBM-106785
(cherry picked from commit 2ecf0cdb2b437402110ab57546e02abfa68a716b)
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/super.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache
/jira.sw.ru/browse/PSBM-106785
(cherry picked from commit ef71ec2d92a08eb27e9d036e3d48835b6597)
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/bset.c | 26 ++
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/b
27;bio_aux' to 'dirty_io' struct
and initialize it along with the 'bio' in dirty_init() to fix this.
https://jira.sw.ru/browse/PSBM-106785
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/writeback.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/md/b
27;bio_aux' to 'dirty_io' struct
and initialize it along with the 'bio' in dirty_init() to fix this.
https://jira.sw.ru/browse/PSBM-106785
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/writeback.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/md/b
220
system_call_fastpath+0x25/0x2a
Use kvmalloc() to avoid potential -ENOMEM due to fragmentation.
https://jira.sw.ru/browse/PSBM-107794
Signed-off-by: Andrey Ryabinin
---
Changes since v1:
- Add #PSBM-107794 to subject
security/keys/user_defined.c | 11 +++
1 file changed, 7 insertions(+)
220
system_call_fastpath+0x25/0x2a
Use kvmalloc() to avoid potential -ENOMEM due to fragmentation.
https://jira.sw.ru/browse/PSBM-107794
Signed-off-by: Andrey Ryabinin
---
security/keys/user_defined.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/security/k
only
during an OOM condition on bcache_register.
Signed-off-by: Eric Wheeler
Cc: sta...@vger.kernel.org
https://jira.sw.ru/browse/PSBM-106785
(cherry picked from commit f8b11260a445169989d01df75d35af0f56178f95)
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/super.c | 3 +++
1 file chang
: Jens Axboe
https://jira.sw.ru/browse/PSBM-106785
(cherry picked from commit 2ecf0cdb2b437402110ab57546e02abfa68a716b)
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/super.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache
/jira.sw.ru/browse/PSBM-106785
(cherry picked from commit ef71ec2d92a08eb27e9d036e3d48835b6597)
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/bset.c | 26 ++
1 file changed, 22 insertions(+), 4 deletions(-)
diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/b
27;bio_aux' to 'dirty_io' struct
and initialize it along with the 'bio' in dirty_init() to fix this.
https://jira.sw.ru/browse/PSBM-106785
Signed-off-by: Andrey Ryabinin
---
drivers/md/bcache/writeback.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/md/b
er root
cgroup.")
Signed-off-by: Andrey Ryabinin
---
kernel/cgroup.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 55713a0071ce..5f3111805eba 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4719,6 +4719,7 @@ void cgroup_unmark_ve_roots(
ast store to
sub_info->retval.
Signed-off-by: Martin Schwidefsky
Reviewed-by: Oleg Nesterov
Cc: Tetsuo Handa
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-107061
(cherry-picked from commit 0baf2a4dbf75abb7c186fd6c8d55d27aaa354a29)
Signed-off-by:
from shrinker.
>
> https://jira.sw.ru/browse/PSBM-99181
>
> Co-authored-by: Andrey Ryabinin
> Signed-off-by: Valeriy Vdovin
>
> Changes:
> v2: Added missing 'rwsem_is_contented' check
> ---
Reviewed-by: Andrey Ryabinin
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
On 8/20/20 11:32 AM, Valeriy Vdovin wrote:
> @@ -565,14 +588,16 @@ static unsigned long shrink_slab_memcg(gfp_t gfp_mask,
> int nid,
>* memcg_expand_one_shrinker_map if new shrinkers
>* were registred in the meanwhile.
>*/
> - if (!do
s://jira.sw.ru/browse/PSBM-106391
(cherry-picked from commit ca4463bf8438b403596edd0ec961ca0d4fbe0220)
Signed-off-by: Andrey Ryabinin
---
drivers/tty/vt/vt.c | 23 ++-
drivers/tty/vt/vt_ioctl.c | 12
2 files changed, 26 insertions(+), 9 deletions(-)
diff --git a/drivers/tty/vt/vt.c b
On 7/30/20 6:52 PM, Evgenii Shatokhin wrote:
> Hi,
>
> On 30.07.2020 18:02, Andrey Ryabinin wrote:
>> Exceeding cache above cache.limit_in_bytes schedules high_work_func()
>> which tries to reclaim 32 pages. If cache generated fast enough or it allows
>> cg
https://jira.sw.ru/browse/PSBM-106384
Signed-off-by: Andrey Ryabinin
---
- Changes since v1: add bug link to changelog
- Changes since v2: Fix cache_overused check (We should check if it's
positive).
Made this stupid bug during cleanup, patch was tested without bogus cleanup,
so it
https://jira.sw.ru/browse/PSBM-106384
Signed-off-by: Andrey Ryabinin
---
Changes since v1: add bug link to changelog
Changes since v2: Fix cache_overused check (We should check if it's positive).
Made this stupid bug during cleanup, patch was tested without bogus cleanup,
so it shoud
https://jira.sw.ru/browse/PSBM-106384
Signed-off-by: Andrey Ryabinin
---
Changes since v1: add bug link to changelog
mm/memcontrol.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 3cf200f506c3..e5adb0e81cbb 100644
--- a/mm/memcontrol.c
1 - 100 of 1031 matches
Mail list logo