[Devel] [PATCH RHEL COMMIT] mm/memcg: enable memory.low for cgroup v1

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 6d864ffb087505e5a52794719f7d543bd13344f8 Author: Vasily Averin Date: Tue Sep 28 14:05:03 2021 +0300 mm/memcg: enable memory.low for cgroup v1

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for VLAN group array

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 971d43702125904f2cd9145b62422b840689b504 Author: Vasily Averin Date: Tue Sep 28 14:05:12 2021 +0300 ms/memcg: enable accounting for VLAN group

[Devel] [PATCH RHEL COMMIT] mm/memcg: enable memory.high for cgroup v1.

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit ec8209c1703def2334c300626d9430c1ad0d1df9 Author: Vasily Averin Date: Tue Sep 28 14:05:09 2021 +0300 mm/memcg: enable memory.high for cgroup v1.

[Devel] [PATCH RHEL COMMIT] mm/vmalloc: add v[mz]alloc_account helpers

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 6253bfcdca0256c1e9902b8fe36ac06799832cf3 Author: Vasily Averin Date: Tue Sep 28 14:05:10 2021 +0300 mm/vmalloc: add v[mz]alloc_account helpers

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for net_device and Tx/Rx queues

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit d08a8a974b02470cc38a9a13e21eca5f37c55a95 Author: Vasily Averin Date: Tue Sep 28 14:05:10 2021 +0300 ms/memcg: enable accounting for net_device

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for inet_bin_bucket cache

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 6428e0e47bdb166f8837ade7aef62452c1b364be Author: Vasily Averin Date: Tue Sep 28 14:05:12 2021 +0300 ms/memcg: enable accounting for inet_bin_bu

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for IP address and routing-related objects

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 12401efc77032f1602eade58c2894458d7e02fa5 Author: Vasily Averin Date: Tue Sep 28 14:05:11 2021 +0300 ms/memcg: enable accounting for IP address

[Devel] [PATCH RHEL COMMIT] ms/memcg: ipv6/sit: account and don't WARN on ip_tunnel_prl structs allocation

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 358d89cbd1ba4c4f8b684ff2bf8dc88e6ce93454 Author: Vasily Averin Date: Tue Sep 28 14:16:12 2021 +0300 ms/memcg: ipv6/sit: account and don't WARN

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for new namesapces and struct nsproxy

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 22b2afd0163f02de88a6ea99f38ca849d82217b0 Author: Vasily Averin Date: Tue Sep 28 14:16:22 2021 +0300 ms/memcg: enable accounting for new namesap

[Devel] [PATCH RHEL COMMIT] ms/ipc: remove memcg accounting for sops objects in do_semtimedop()

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit d857b183f29858b83ca26379759745bd383341f6 Author: Vasily Averin Date: Tue Sep 28 14:16:26 2021 +0300 ms/ipc: remove memcg accounting for sops ob

[Devel] [PATCH RHEL COMMIT] netfilter/x_tables: account entry offsets allocations

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 77ec2bfa8753b9767cd852ae87109a8f6adc955d Author: Vasily Averin Date: Tue Sep 28 14:16:28 2021 +0300 netfilter/x_tables: account entry offsets a

[Devel] [PATCH RHEL COMMIT] memcg: Enable accounting for nft objects

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 5fbbaed47d4cf9c08974c58fd0966cee9f721668 Author: Vasily Averin Date: Tue Sep 28 14:16:26 2021 +0300 memcg: Enable accounting for nft objects

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for pollfd and select bits arrays

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 68412bedf57ec356f8939728a7b9d3eab1528fa0 Author: Vasily Averin Date: Tue Sep 28 14:16:20 2021 +0300 ms/memcg: enable accounting for pollfd and

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting of ipc resources

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 899e3fad3c7990c02edf637cfe882b055b380f7b Author: Vasily Averin Date: Tue Sep 28 14:16:23 2021 +0300 ms/memcg: enable accounting of ipc resource

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for ldt_struct objects

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit b080f22dffa9d15451e48981a5a2d7c0fb8cc320 Author: Vasily Averin Date: Tue Sep 28 14:16:25 2021 +0300 ms/memcg: enable accounting for ldt_struct

[Devel] [PATCH RHEL COMMIT] memcg: charge kmem allocations accounted to UBC in PCS6 to memcg

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 0b105df3aace5906acc4a03c66a3f361b30fa6ab Author: Vasily Averin Date: Tue Sep 28 14:16:27 2021 +0300 memcg: charge kmem allocations accounted to

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for mnt_cache entries

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 17dd5c77260294d31e3c162b4a57da2f2525bc5c Author: Vasily Averin Date: Tue Sep 28 14:16:19 2021 +0300 ms/memcg: enable accounting for mnt_cache e

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for pids in nested pid namespaces

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit f461c2bb368d912849ef81f260c775483bb9f0f1 Author: Vasily Averin Date: Tue Sep 28 14:16:19 2021 +0300 ms/memcg: enable accounting for pids in nes

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for posix_timers_cache slab

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit aa804886198b480250ef078b6a9906db3cc10453 Author: Vasily Averin Date: Tue Sep 28 14:16:24 2021 +0300 ms/memcg: enable accounting for posix_timer

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for file lock caches

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 6433903745bda56a15fc711dc0d8961122467f3d Author: Vasily Averin Date: Tue Sep 28 14:16:21 2021 +0300 ms/memcg: enable accounting for file lock c

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for fasync_cache

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 61a8361a8f2bfc3212b4dbf69987899fcf628544 Author: Vasily Averin Date: Tue Sep 28 14:16:22 2021 +0300 ms/memcg: enable accounting for fasync_cach

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for signals

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 9202e58126324e2c46553f5b03fb0f2a3738e4a1 Author: Vasily Averin Date: Tue Sep 28 14:16:24 2021 +0300 ms/memcg: enable accounting for signals

[Devel] [PATCH RHEL COMMIT] ms/memcg: enable accounting for scm_fp_list objects

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 9a4a46b61189ffad4fa12f7a70093d297291540c Author: Vasily Averin Date: Tue Sep 28 14:16:18 2021 +0300 ms/memcg: enable accounting for scm_fp_list

[Devel] [PATCH RHEL COMMIT] ve/umh: enable user mode helper in container

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit cd8ef132c1d483c3ce0d1da9eac036e10a8f80ad Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:38 2021 +0300 ve/umh: enable user mode helper in

[Devel] [PATCH RHEL COMMIT] sunrpc: pending tasks kill helper added

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 8c8eb5292bae57a202cfe6b3240fe1e885585b3a Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:40 2021 +0300 sunrpc: pending tasks kill helper a

[Devel] [PATCH RHEL COMMIT] sunrpc: do not place task to sleep if has to be killed

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 217298fd26cc01c1302b6569255f10b1bcca93bc Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:41 2021 +0300 sunrpc: do not place task to sleep

[Devel] [PATCH RHEL COMMIT] ve/kthreadd: emulate kthreadd by kworker thread, attached to CT

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit affacbc14c10da357be5130278d05caffea4f8c7 Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:33 2021 +0300 ve/kthreadd: emulate kthreadd by kw

[Devel] [PATCH RHEL COMMIT] ve/kthreadd: create kthreadd in a containers pid ns

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 74116ac9747f54416882cd312b68ae3fbd63bd6b Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:34 2021 +0300 ve/kthreadd: create kthreadd in a c

[Devel] [PATCH RHEL COMMIT] sunrpc: add "kill-tasks" proc entry

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit dc2fabbe5eff60a6b04031b54183348064f6d4ad Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:39 2021 +0300 sunrpc: add "kill-tasks" proc entry

[Devel] [PATCH RHEL COMMIT] ve/kthreadd: add per-ve kthreads creation interface

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 016e0ef689badaaa0efc95463900cfd31b9d6798 Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:33 2021 +0300 ve/kthreadd: add per-ve kthreads cr

[Devel] [PATCH RHEL COMMIT] ve/umh: init work separately from other subprocess_info parameters

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 333e643058eedc3623187b24bd9b31f5e3a3ea8b Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:35 2021 +0300 ve/umh: init work separately from o

[Devel] [PATCH RHEL COMMIT] ve/umh: make queue function one of the subprocess_info parameters

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit c887a0e67201401d5c520e17e109718c85eb1120 Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:35 2021 +0300 ve/umh: make queue function one of

[Devel] [PATCH RHEL COMMIT] ve/umh: introduce per-container user mode helper macroses and functions

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 71ebf11e6f409a5ae72a7d2c8eedb7c55147203b Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:37 2021 +0300 ve/umh: introduce per-container use

[Devel] [PATCH RHEL COMMIT] sunrpc: bring back SUNRPC task abort logic

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 3bd6c11dba74c84296e94095a2e8fc0712a839c8 Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:39 2021 +0300 sunrpc: bring back SUNRPC task abor

[Devel] [PATCH RHEL COMMIT] ve/umh: create kernel thread for each synchronious UMH request

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit e64d20c95b5eb314d35e1127f316dbc4b18914d4 Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:37 2021 +0300 ve/umh: create kernel thread for ea

[Devel] [PATCH RHEL COMMIT] ve/umh: add per-container usermodehelper thread

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 07a024cc540630c67156b0db494a7cd2bc0dbda6 Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:36 2021 +0300 ve/umh: add per-container usermodeh

[Devel] [PATCH RHEL COMMIT] ve/fs/nfs: NFS containerization

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit a2556e5bc62060a6d3b9520a1233f2271074564a Author: Stanislav Kinsburskiy Date: Tue Sep 28 14:42:41 2021 +0300 ve/fs/nfs: NFS containerization

[Devel] [PATCH RHEL COMMIT] push_backup: Do not take write lock on statistics

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 708371387ca23d7380d850ea987c4c0a894b46a2 Author: Kirill Tkhai Date: Tue Sep 28 15:00:59 2021 +0300 push_backup: Do not take write lock on stati

[Devel] [PATCH RH9 10/16] sysctl: Change sysctl::show_unhandled_signals default

2021-09-28 Thread Pavel Tikhomirov
From: Kirill Tkhai Extracted from "Initial patch". Signed-off-by: Kirill Tkhai Otherwise we provide a Container owner a possibility to fill host logs with spam. (cherry picked from commit 852eb933400bb238bf03e7f58f2f0f79f74ead5f) Signed-off-by: Konstantin Khorenko (cherry picked from vz8 co

[Devel] [PATCH RH9 08/16] ve/sysctl/net: allow "net.unix.max_dgram_qlen" sysctl in CT init userns

2021-09-28 Thread Pavel Tikhomirov
The sysctl is virtualized and we had it available in VZ6 CT, also skbs in unix socket's queue are accounted in memcg as GFP_KERNEL_ACCOUNT. With default sysctl value (10), messages from systemd journald could miss syslog log. https://jira.sw.ru/browse/PSBM-54530 Signed-off-by: Pavel Tikhomirov

[Devel] [PATCH RH9 04/16] ve/sysctl/ipc: mark as virtualized

2021-09-28 Thread Pavel Tikhomirov
From: Konstantin Khorenko These sysctls arealready virtualized, thus we can permit writes from a container. Signed-off-by: Konstantin Khlebnikov +++ VE/SYSCTL: fixup virtualized sysctls switch sysctls to new api Signed-off-by: Konstantin Khlebnikov Signed-off-by: Cyrill Gorcunov (cherry

[Devel] [PATCH RH9 01/16] ve/sysctl: write permission restriction

2021-09-28 Thread Pavel Tikhomirov
From: Konstantin Khlebnikov This patch patch adds lightweight virualization for sysctl entries: with S_ISVTXwithout S_ISVTX init_pid_ns read-write read-write container read-write read-only https://jira.sw.ru/browse/PSBM-18022 Signed-off-by: Konstantin Kh

[Devel] [PATCH RH9 09/16] ve/sysctl/net: allow net.ipv4.vs.* in CT init userns

2021-09-28 Thread Pavel Tikhomirov
Patchset description: net/ipvs: allow IPVS in CT Allowing IPVS to CT root may be unsafe, we still need to check it, it is about 20k lines of code. If ip_vs module is not loaded on host ipvs will not work in CT as all other modules depend on it. So in default situation this changes nothing. We nee

[Devel] [PATCH RH9 15/16] ve: Replace 0 ppid with 1 (workaround for bad utils)

2021-09-28 Thread Pavel Tikhomirov
From: Kirill Tkhai Extracted from "Initial patch". Signed-off-by: Kirill Tkhai (cherry picked from vz7 commit 762f3e6a33f389a9bf8cfbd05278ce587520ca94) Signed-off-by: Konstantin Khorenko vz8 rebase notes: * use proper pidns in sys_getppid() - not children's one as in original vz7 patch (c

[Devel] [PATCH RH9 00/16] part-6: sysctls and proc virtualization

2021-09-28 Thread Pavel Tikhomirov
Note: two ve/time patches would go separately, everything else is here. https://jira.sw.ru/browse/PSBM-133988 Andrew Vagin (1): ve/sysctl/pidns: allow to change sysctl "ns_last_pid" from containers Kirill Tkhai (4): sysctl: Change sysctl::show_unhandled_signals default ve/proc: Show vcpu i

[Devel] [PATCH RH9 11/16] ve/proc: restricted proc-entries scope

2021-09-28 Thread Pavel Tikhomirov
From: Stanislav Kinsburskiy This patch adds lightweight proc virtualization: entries with S_ISVTX bit are visible from all instances, entries without S_ISVTX are visible only via proc mounted from init-pid-namespace. https://jira.sw.ru/browse/PSBM-18019 Plus fixes for : https://jira.sw.ru/brows

[Devel] [PATCH RH9 14/16] ve/proc: print VE id and virtual pid in process status

2021-09-28 Thread Pavel Tikhomirov
From: Stanislav Kinsburskiy Signed-off-by: Stanislav Kinsburskiy (cherry picked from vz8 commit 0ee34d1e220c125e2fae8496e358ff36c99921ba) Signed-off-by: Pavel Tikhomirov --- fs/proc/array.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/fs/proc/array

[Devel] [PATCH RH9 13/16] ve: Virtualize /proc/swaps to watch from inside CT

2021-09-28 Thread Pavel Tikhomirov
From: Kirill Tkhai Customize /proc/swaps when showing from !ve_is_super. Extracted from "Initial patch". Signed-off-by: Kirill Tkhai (cherry picked from vz7 commit 88c087f1fdb4b0f7934804269df36035ab6b83eb) Signed-off-by: Konstantin Khorenko Reviewed-by: Andrey Ryabinin vz8 rebase changes: *

[Devel] [PATCH RH9 06/16] ve/sysctl: allow to write kernel/hostname and kernel/domainname entries in container

2021-09-28 Thread Pavel Tikhomirov
From: Stanislav Kinsburskiy We need to adjust these values during restore procedure. The modification of these entries doesn't affect other containers because they are per-namespace. https://jira.sw.ru/browse/PSBM-20102 https://jira.sw.ru/browse/PSBM-20102 Signed-off-by: Cyrill Gorcunov Signe

[Devel] [PATCH RH9 03/16] sysctl: make hotplug, printk and mmap_min_addr accessible inside a CT

2021-09-28 Thread Pavel Tikhomirov
From: Konstantin Khorenko (cherry picked from commit 22b9103caf1bb101768963fb9f66c5fe0def5ee3) Signed-off-by: Konstantin Khorenko (cherry picked from vz8 commit ecce1f4ba959a818b29403c38eeb39eae184aff9) Signed-off-by: Pavel Tikhomirov --- kernel/sysctl.c | 6 +++--- 1 file changed, 3 insertio

[Devel] [PATCH RH9 16/16] ve/proc: virtualize /proc/meminfo in a Container

2021-09-28 Thread Pavel Tikhomirov
From: Konstantin Khorenko Show virtualized data in /proc/meminfo inside a Container. Counters are taken from CT root memory cgroup. Host users see non-virtualized data, tasks in ve cgroup see virtualized data. The patch is a port of following patches: - a84b6c9882dd ("ub: Split meminfo_proc_sho

[Devel] [PATCH RH9 07/16] introduce ve_net_hide_sysctl helper

2021-09-28 Thread Pavel Tikhomirov
From: Stanislav Kinsburskiy This will be used to check if we need to hide per-net sysctls. Signed-off-by: Pavel Tikhomirov +++ ve/sysctl/nf_conntrack: allow expose of priviledged sysctl inside containers Series: This series brings to vz7 all the nf_conntrack sysctl's, which are available in v

[Devel] [PATCH RH9 02/16] ve/sysctl: implement virtualized methods

2021-09-28 Thread Pavel Tikhomirov
From: Stanislav Kinsburskiy add new helpers for sysctl virtualization: proc_dointvec_virtual() (it maps data pointer from ve0 to current exec env, will be extedned to work with other nemspaces/cgroups) proc_dointvec_immutable() (ignores writes from container) proc_dostrin

[Devel] [PATCH RH9 12/16] ve/proc: Show vcpu in do_task_stat()

2021-09-28 Thread Pavel Tikhomirov
From: Kirill Tkhai Extracted from "Initial patch". Signed-off-by: Kirill Tkhai (cherry picked from commit 78002f240e10fec47aaa4a727b5fdebba3a3e27a) Signed-off-by: Konstantin Khorenko +++ ve/proc: fix wrong output in do_task_stat() Remove printing task_cpu, this part was lost in rebase. Befo

[Devel] [PATCH RH9 05/16] ve/sysctl/pidns: allow to change sysctl "ns_last_pid" from containers

2021-09-28 Thread Pavel Tikhomirov
From: Andrew Vagin ns_last_pid belongs to pidns, so it's safe. Signed-off-by: Andrew Vagin (cherry picked from commit 7a98fd7389e05adeed6b1dba2766066b06db8992) Signed-off-by: Konstantin Khorenko (cherry picked from vz8 commit 290b207fd39e94781e99dd3f8d2fbe35e64be81f) Signed-off-by: Pavel Tik

[Devel] [PATCH RH9] vmalloc: drop __vmalloc_node_flags calls from v[mz]alloc_account

2021-09-28 Thread Vasily Averin
__vmalloc_node_flags() was dropped in upstream Fixes: 6253bfcdca02 ("mm/vmalloc: add v[mz]alloc_account helpers") Signed-off-by: Vasily Averin --- mm/vmalloc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index fe575cdba254..e06162043885

[Devel] [PATCH RHEL COMMIT] vmalloc: drop __vmalloc_node_flags calls from v[mz]alloc_account

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 33326b2398ea922a69dd9fc564d4361cf3520aa8 Author: Vasily Averin Date: Tue Sep 28 15:50:28 2021 +0300 vmalloc: drop __vmalloc_node_flags calls fr

[Devel] [PATCH RHEL COMMIT] ve/net: Fix warning about possible fall through in switch

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 54f863fb0712af49639ab59722456fd89326017f Author: Konstantin Khorenko Date: Tue Sep 28 15:28:23 2021 +0300 ve/net: Fix warning about possible fa

[Devel] [PATCH RHEL COMMIT] trace/osnoise: Fix compiler complain about using "main" local variable

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 2074582a60a3db758c4ecd6376246287c4bd63f4 Author: Konstantin Khorenko Date: Tue Sep 28 15:41:56 2021 +0300 trace/osnoise: Fix compiler complain

[Devel] [PATCH RHEL COMMIT] ve/net: Fix possible fall through when cheking capability for ETHTOOL_SEEPROM

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 3a5dbfdc99afc27737c8b1652bc90b7badc289c0 Author: Konstantin Khorenko Date: Tue Sep 28 15:37:56 2021 +0300 ve/net: Fix possible fall through whe

[Devel] [PATCH RH9] push_backup: Take rwsem killable

2021-09-28 Thread Kirill Tkhai
... to have possibility to kill process. Signed-off-by: Kirill Tkhai --- drivers/md/dm-push-backup.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-push-backup.c b/drivers/md/dm-push-backup.c index 75f080fe34cf..6d7b1859298a 100644 --- a/drivers/md/dm-

[Devel] [PATCH RH9] push_backup: Do not take write lock on ENOTTY

2021-09-28 Thread Kirill Tkhai
Userspace may pass wrong command. Do not take write lock then. Signed-off-by: Kirill Tkhai --- drivers/md/dm-push-backup.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/md/dm-push-backup.c b/drivers/md/dm-push-backup.c index 6d7b1859298a.

[Devel] [PATCH RHEL COMMIT] push_backup: Take rwsem killable

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 9ca77fcc0d75ade56de75e1e66f7a7712f1351a1 Author: Kirill Tkhai Date: Tue Sep 28 19:17:29 2021 +0300 push_backup: Take rwsem killable ..

[Devel] [PATCH RHEL COMMIT] push_backup: Do not take write lock on ENOTTY

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 7e108c9027dd32bbc09d63d054f36491ef2932a6 Author: Kirill Tkhai Date: Tue Sep 28 19:17:30 2021 +0300 push_backup: Do not take write lock on ENOTT

[Devel] [PATCH RHEL8 COMMIT] push_backup: Take rwsem killable

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh8-4.18.0-305.3.1.vz8.7.14 --> commit c90c31e9c2cc17d3d58541032096d277b7b73197 Author: Kirill Tkhai Date: Tue Sep 28 19:19:43 2021 +0300 push_backup: Ta

[Devel] [PATCH RHEL8 COMMIT] push_backup: Do not take write lock on statistics

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh8-4.18.0-305.3.1.vz8.7.14 --> commit 34467c01297ff35cf8a613706bd1529c3a0fc8e1 Author: Kirill Tkhai Date: Tue Sep 28 19:19:43 2021 +0300 push_backup: Do

[Devel] [PATCH RHEL8 COMMIT] push_backup: Do not take write lock on ENOTTY

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh8-4.18.0-305.3.1.vz8.7.14 --> commit 5597efaaaf27077cfd09779a36e17acee064c653 Author: Kirill Tkhai Date: Tue Sep 28 19:19:44 2021 +0300 push_backup: Do

[Devel] [PATCH RHEL8 COMMIT] Revert "sysctl: make "tcp_syncookies" sysctl available inside a CT"

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh8-4.18.0-305.3.1.vz8.7.14 --> commit d6e9d7a101b894b5448c658c7303cc115df8181f Author: Pavel Tikhomirov Date: Tue Sep 28 19:23:57 2021 +0300 Revert "sys

[Devel] [PATCH RHEL COMMIT] ve: Replace 0 ppid with 1 (workaround for bad utils)

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 83a59be566957a5f6ba1aed191740d5335ccb333 Author: Kirill Tkhai Date: Tue Sep 28 19:31:12 2021 +0300 ve: Replace 0 ppid with 1 (workaround for ba

[Devel] [PATCH RHEL COMMIT] ve/sysctl/pidns: allow to change sysctl "ns_last_pid" from containers

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit dbdf9baf6b79c5c7277951ebbab13ea7be040fa7 Author: Andrew Vagin Date: Tue Sep 28 19:31:06 2021 +0300 ve/sysctl/pidns: allow to change sysctl "ns_

[Devel] [PATCH RHEL COMMIT] ve/sysctl: implement virtualized methods

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 69d17ec326693ee2a322637a3d6d1d9a46a9a592 Author: Stanislav Kinsburskiy Date: Tue Sep 28 19:31:04 2021 +0300 ve/sysctl: implement virtualized me

[Devel] [PATCH RHEL COMMIT] ve: Virtualize /proc/swaps to watch from inside CT

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit a330bb29df2e6753f7253b3fff51715705646607 Author: Kirill Tkhai Date: Tue Sep 28 19:31:11 2021 +0300 ve: Virtualize /proc/swaps to watch from ins

[Devel] [PATCH RHEL COMMIT] sysctl: make hotplug, printk and mmap_min_addr accessible inside a CT

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 9e6cb2ce57fa717cc2eab7f33e4d52ac9a211b27 Author: Konstantin Khorenko Date: Tue Sep 28 19:31:05 2021 +0300 sysctl: make hotplug, printk and mmap

[Devel] [PATCH RHEL COMMIT] ve/sysctl/net: allow "net.unix.max_dgram_qlen" sysctl in CT init userns

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit ed25277373217667fc90107105c9b5bed075546c Author: Pavel Tikhomirov Date: Tue Sep 28 19:31:08 2021 +0300 ve/sysctl/net: allow "net.unix.max_dgram

[Devel] [PATCH RHEL COMMIT] ve/proc: print VE id and virtual pid in process status

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 66ed840faa379b65da372d1e50e0b4079b221297 Author: Stanislav Kinsburskiy Date: Tue Sep 28 19:31:12 2021 +0300 ve/proc: print VE id and virtual pi

[Devel] [PATCH RHEL COMMIT] ve/sysctl: allow to write kernel/hostname and kernel/domainname entries in container

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 3a0028694c65f8479b2329ceb7eeb80d12bc8b1d Author: Stanislav Kinsburskiy Date: Tue Sep 28 19:31:06 2021 +0300 ve/sysctl: allow to write kernel/ho

[Devel] [PATCH RHEL COMMIT] ve/proc: restricted proc-entries scope

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 63921fe7646956ba1652ea346784f74febb0d5cb Author: Stanislav Kinsburskiy Date: Tue Sep 28 19:31:10 2021 +0300 ve/proc: restricted proc-entries sc

[Devel] [PATCH RHEL COMMIT] ve/sysctl: write permission restriction

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit d1ecd8e642e431d3c91d27fb5bc2c6e350bbf74f Author: Konstantin Khlebnikov Date: Tue Sep 28 19:31:01 2021 +0300 ve/sysctl: write permission restric

[Devel] [PATCH RHEL COMMIT] sysctl: Change sysctl::show_unhandled_signals default

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit ac781de3aec94bb155d69b14b664372a2d6f17c8 Author: Kirill Tkhai Date: Tue Sep 28 19:31:09 2021 +0300 sysctl: Change sysctl::show_unhandled_signal

[Devel] [PATCH RHEL COMMIT] ve/proc: Show vcpu in do_task_stat()

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 0a7c9344fe47d6b7fe8d22722ccfe8823d16ddf4 Author: Kirill Tkhai Date: Tue Sep 28 19:31:10 2021 +0300 ve/proc: Show vcpu in do_task_stat()

[Devel] [PATCH RHEL COMMIT] ve/sysctl/ipc: mark as virtualized

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit d805c9d0d617e6fb8213a278c84aeb9f6f896ca0 Author: Konstantin Khorenko Date: Tue Sep 28 19:31:05 2021 +0300 ve/sysctl/ipc: mark as virtualized

[Devel] [PATCH RHEL COMMIT] ve/sysctl/net: allow net.ipv4.vs.* in CT init userns

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 7fdd3a7b529513bb93cd5fc65f42e4992ed816f2 Author: Pavel Tikhomirov Date: Tue Sep 28 19:31:08 2021 +0300 ve/sysctl/net: allow net.ipv4.vs.* in CT

[Devel] [PATCH RHEL COMMIT] introduce ve_net_hide_sysctl helper

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit a2d5c86be579cc70263b05583fd1c0b4c4179ab7 Author: Stanislav Kinsburskiy Date: Tue Sep 28 19:31:07 2021 +0300 introduce ve_net_hide_sysctl helper

[Devel] [PATCH RH8] cbt: Fix off-by-one in map_required_size()

2021-09-28 Thread Kirill Tkhai
Instead of: return DIV_ROUND_UP(bit, 8) + page * PAGE_SIZE; we have to have: return DIV_ROUND_UP(bit, 8) + (page - 1) * PAGE_SIZE; But instead of that we fix @page to be enumerated from 0 in standard C way. Signed-off-by: Kirill Tkhai --- block/blk-cbt.c |9 - 1 file changed, 4 i

[Devel] [PATCH RHEL COMMIT] ve/proc: virtualize /proc/meminfo in a Container

2021-09-28 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after ark-5.14 --> commit 4a98c3e4014015330e3a4da8aa2a90c51e261101 Author: Konstantin Khorenko Date: Tue Sep 28 19:45:34 2021 +0300 ve/proc: virtualize /proc/meminfo in

[Devel] [PATCH RH9 11/30] ext4: replace ext4_kvmalloc() with kvmalloc()

2021-09-28 Thread Andrey Zhadchenko
From: Oleg Babin ext4_kvmalloc() is used to allocate the table of group descritors blocks. It is called in GFP_NOFS context which is not vmalloc() compatible so it cannot be directly replaced with kvmalloc(). In order to use kvmalloc() with GFP_KERNEL flag the memory allocation is moved from add

[Devel] [PATCH RH9 23/30] bnx2: Use kvzalloc() to allocate certain internal data

2021-09-28 Thread Andrey Zhadchenko
From: Jan Dakinevich These structures are not disigned for DMA'ing and don't require physically contiguous memory. https://jira.sw.ru/browse/HCI-140 Signed-off-by: Jan Dakinevich Acked-by: Denis V. Lunev (cherry-picked from vz7 commit 66e75bd04dab ("bnx2: use kvzalloc() to allocate certain i

[Devel] [PATCH RH9 00/30] port part 13

2021-09-28 Thread Andrey Zhadchenko
Andrey Ryabinin (4): mm: add warning about high order allocations keys, user: Fix high order allocation in user_instantiate() #PSBM-107794 net: silence high-order allocation warning from UDP with big headers. mm/mempool: Use kvmalloc to allocate array of element pointers Andrey Zhadche

[Devel] [PATCH RH9 10/30] sctp: suppress warnings on high order memory allocation on packet transmit

2021-09-28 Thread Andrey Zhadchenko
From: Konstantin Khorenko sctp is not widely used, let's just shut up the warning in sctp_packet_transmit(). https://jira.sw.ru/browse/PSBM-99098 Signed-off-by: Konstantin Khorenko (cherry-picked from vz7 commit cf47e9fee330 ("sctp: suppress warnings on high order memory allocation on packet

[Devel] [PATCH RH9 06/30] include/linux/sockptr: introduce vmemdup_sockptr helper

2021-09-28 Thread Andrey Zhadchenko
This helper is needed for next patch https://jira.sw.ru/browse/PSBM-133996 Signed-off-by: Andrey Zhadchenko --- include/linux/sockptr.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/sockptr.h b/include/linux/sockptr.h index ea19341..3538721 100644 --- a/includ

[Devel] [PATCH RH9 24/30] mm: introduce kvmalloc_check() for safe calls to kvmalloc()

2021-09-28 Thread Andrey Zhadchenko
From: Konstantin Khorenko Sometimes a function which allocates high order pages is called with different flags while kvmalloc() should be called with at least GFP_KERNEL. kvmalloc_check() function uses kvmalloc() when possible depending on flags provided. https://jira.sw.ru/browse/PSBM-82593 S

[Devel] [PATCH RH9 26/30] tty: use kvmalloc for screenbuffer allocation

2021-09-28 Thread Andrey Zhadchenko
From: Oleg Babin Console driver allocates a screenbuffer with kmalloc(). The size of the buffer can be up to 32768 bytes which is the 3rd memory order. Use kvmalloc() for screenbuffer allocation to fallback to vmalloc() in case of high order page is not available at the moment. https://jira.sw.

[Devel] [PATCH RH9 28/30] fs/pipe: Use kvcalloc for pipe buffers

2021-09-28 Thread Andrey Zhadchenko
From: Cyrill Gorcunov To restore big slabs of memory (more than 1G) via pipes we need pipes to be able to carry such sizes, for this sake Andrey propose to use kvcalloc calls. Looking into the code I didn't find a reason why we can't do so, thus here is a patch. https://jira.sw.ru/browse/PSBM-69

[Devel] [PATCH RH9 18/30] modules: use kvmalloc when creating sysfs attributes for ELF sections

2021-09-28 Thread Andrey Zhadchenko
From: Evgenii Shatokhin A kernel module containing a ReadyKernel patch could have lots of ELF sections: one per each new or patched function, one per each new static or global variable, etc. The kernel creates a sysfs file /sys/module//sections/ for each loaded section when the patch module is b

[Devel] [PATCH RH9 21/30] IB/core: Use kvzalloc to allocate ib_device

2021-09-28 Thread Andrey Zhadchenko
From: Jan Dakinevich The allocator ib_alloc_device() is used to allocate both ib_device and device specific instance. This allocations sometimes quite big and takes tens KiB, causing high page orders. Meanwhile, the memory is not intended for DMA and doesn't require to be physically contiguous.

[Devel] [PATCH RH9 05/30] x86/kvm/vmx: Suppress warning on high-order allocation

2021-09-28 Thread Andrey Zhadchenko
From: Jan Dakinevich For L1TF mitigation vmx allocates 16 pages (4th order) and use them to move out the content of L1D cache. An attempt to use physically non-contiguous memory could break the algorithm. https://jira.sw.ru/browse/HCI-133 Signed-off-by: Jan Dakinevich (cherry-picked from vz7

[Devel] [PATCH RH9 20/30] mm/mempool: Use kvmalloc to allocate array of element pointers

2021-09-28 Thread Andrey Zhadchenko
From: Andrey Ryabinin The minimal number of mempool elements passed to mempool_create()/mempool_resize() could be large enough to trigger high order allocation in kmalloc_node(). High order allocations are costly and/or may fail if memory is fragmented. Since we don't need the array of element po

[Devel] [PATCH RH9 19/30] net/vhost: Replace kmalloc with kvmalloc for order>=3

2021-09-28 Thread Andrey Zhadchenko
From: Oleg Babin Currently we allocate 8 pages of memory in vhost_net_set_ubuf_info() function and we do not need them to be physically contiguous, so it is feasible to replace a call to kmalloc() with a call to kvmalloc(). UIO_MAXIOV = 1024 struct ubuf_info { void (*callback)(struct ubu

[Devel] [PATCH RH9 08/30] sctp: suppress warnings on high order memory allocation on sctp chunk creation

2021-09-28 Thread Andrey Zhadchenko
From: Konstantin Khorenko _sctp_make_chunk() could allocate skbs up to 65K in size (4th order page), so we get complains about high order page allocations from our detection mechanizm while running sctp testsuite. It's not evident that substituting alloc_skb() with alloc_skb_with_frags() speeds

[Devel] [PATCH RH9 03/30] net/mlx5: suppress high order allocation

2021-09-28 Thread Andrey Zhadchenko
From: Vasily Averin v2: added lost kvfree() WARNING: CPU: 0 PID: 9668 at mm/page_alloc.c:3548 __alloc_pages_nodemask+0x1b1/0x600 order 4 >= 3, gfp 0xc0d0 CPU: 0 PID: 9668 Comm: ip ve: 0 Not tainted 3.10.0-1127.8.2.vz7.158.3 #1 158.3 Call Trace: [] dump_stack+0x19/0x1b [] __warn+0xd8/0x100 []

  1   2   >