OpenVZ Source code
  1. OpenVZ Source code

vzkernel

Public
AuthorCommitMessageCommit dateIssues
Konstantin KhorenkoKonstantin Khorenko
1b42a7a0cc4OpenVZ kernel rh7-3.10.0-957.12.2.vz7.96.21Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Konstantin KhorenkoKonstantin Khorenko
72de1ec2b8dscsi: aacraid: resurrect correct arc ctrl checks for Series-6This partially reverts ms commit 395e5df79a95 ("scsi: aacraid: Remove reference to Series-9") The patch above not anly drops Series-9 cards checks but also changes logic for Series-6 controllers which lead to controller hungs/resets under high io load. So revert original arc ctrl checks for Series-6 controllers. https://jira.sw.ru/browse/PSBM-95736 Signed-off-by: Konstantin Khorenko <khoren...PSBM-95736
Konstantin KhorenkoKonstantin Khorenko
c747f19efddOpenVZ kernel rh7-3.10.0-957.12.2.vz7.96.20Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Pavel ButsykinPavel Butsykin
ffd0e7d4024fs/fuse kio: reset write_iter for canceled msgEach message initializes its own iterator before sending message and resets it after sending. If the message is canceled by timeout in calendar_work(), but the iterator of this message isn't cleared, then sending the next message will fail. To fix this, let's reset sio->write_iter in pcs_sock_cancel_msg() if the message is currently being processed but sio->write_offset is still zero. https://...VSTOR-21044
Konstantin KhorenkoKonstantin Khorenko
f23d8937255OpenVZ kernel rh7-3.10.0-957.12.2.vz7.96.19Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Pavel ButsykinPavel Butsykin
9175828fad3fs/fuse kio: drop maps on file closeThis patch synchronizes cached maps on file closing between kernel and user-space. In the processing of FUSE_RELEASE request in userspace, all maps belonging to this inode are truncated, while in the kernel the same maps remain cached. So, after reopen they are reused and when an error happens, kernel queries user-space, but user-space doesn't have any map, so that it cannot do correct request ...VSTOR-24004
Kirill TkhaiKirill Tkhai
1e9820286b8ploop: Also decrement active_reqs before bio_endio() in ploop_complete_request()This is needed for ploop_ioctl() debug hook correct work. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Konstantin KhorenkoKonstantin Khorenko
89097774796OpenVZ kernel rh7-3.10.0-957.12.2.vz7.96.18Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Kirill TkhaiKirill Tkhai
5b4b1de1c2bploop: Decrement active_reqs before bio_endio()Otherwise, there are possible false possitive checks for active_reqs on ploop stop. https://jira.sw.ru/browse/PSBM-95654 Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>PSBM-95654
Andrey RyabininAndrey Ryabinin
77c54cbf9aemm/memcontrol: don't reparent forever if counter leaked.In case of leaked memcg->memory counter mem_cgroup_reparent_charges() may stuck forever under global cgroup_mutex making the whole system unusable. I don't see reson for 'while ((memory - kmem) > 0)' loop, IMO memory should be equal to kmem after the first iteration. And if not it's a leak, but just in case make several attempts. https://pmc.acronis.com/browse/VSTOR-24241 Signed-off-by: Andrey...VSTOR-24241
Denis PlotnikovDenis Plotnikov
366859f048ckvm/x86: add log printing on emulation failureThis is a temporary patch serving to increase the amount of data available for analysis in the cases of kvm "emulation failure" for bugs like the following: https://jira.sw.ru/browse/PSBM-95474 https://jira.sw.ru/browse/PSBM-68018 Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>2 Jira Issues
Konstantin KhorenkoKonstantin Khorenko
a2506f11a8cRevert "rh/tcp: tcp_fragment() should apply sane memory limits"This reverts commit f070ef2ac66716357066b683fb0baf55f8191a2e. This patch introduces another problem: https://www.phoronix.com/scan.php?page=news_item&px=Steam-Networking-Kernel-Woes https://jira.sw.ru/browse/PSBM-95669 there is a fix in mainstream already: b6653b3629e5 ("tcp: refine memory limit test in tcp_fragment()") https://patchwork.ozlabs.org/patch/1120222/ but it does not apply to ker...PSBM-95669
Konstantin KhorenkoKonstantin Khorenko
0025666f18cpartially revert: ms/net: add LINUX_MIB_PFMEMALLOCDROP counterLINUX_MIB_PFMEMALLOCDROP enum item has been added in the scope of RHEL7.6 kernel-3.10.0-957.21.3.el7, so need to revert its addition in our commit 1342f39a424c ("ms/net: add LINUX_MIB_PFMEMALLOCDROP counter"). Fixes: 1342f39a424c ("ms/net: add LINUX_MIB_PFMEMALLOCDROP counter") https://jira.sw.ru/browse/PSBM-95672 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-95672
Konstantin KhorenkoKonstantin Khorenko
686acf0945drh/net/tcp: fixes for CVE-2019-11477/CVE-2019-11478/CVE-2019-11479This is a combined patch for 3 security issues: * An integer overflow flaw was found in the way the Linux kernel's networking subsystem processed TCP Selective Acknowledgment (SACK) segments. While processing SACK segments, the Linux kernel's socket buffer (SKB) data structure becomes fragmented. Each fragment is about TCP maximum segment size (MSS) bytes. To efficiently process SACK blocks, t...6 Jira Issues
Kirill TkhaiKirill Tkhai
7817c6a7f9eOpenVZ kernel rh7-3.10.0-957.12.2.vz7.96.17Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Kirill TkhaiKirill Tkhai
ce8874bbad5ploop: Fix wrong argument passed to ploop_set_holes_bitmap_bit()delta must be passed there. Strange thing, but using config.OpenVZ.minimal, gcc does not warn about this on my environment. https://jira.sw.ru/browse/PSBM-95509 Fixes: 33021248ad30 "ploop: Introduce set- and clear- holes_bitmap wrappers" Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>PSBM-95509
Konstantin KhorenkoKonstantin Khorenko
89653e51d2fOpenVZ kernel rh7-3.10.0-957.12.2.vz7.96.16Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Oleg NesterovOleg Nesterov
79185c03e43memcg: optimize the "Search everything else" loop in mm_update_next_owner()for_each_process_thread() is sub-optimal. All threads share the same ->mm, we can swicth to the next process once we found a thread with ->mm != NULL and ->mm != mm. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Michal Hocko <mhocko@suse.cz> Cc: Balbir Singh <bsingharora@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc:...VSTOR-23975
Oleg NesterovOleg Nesterov
79426efde5cmemcg: mm_update_next_owner() should skip kthreads"Search through everything else" in mm_update_next_owner() can hit a kthread which adopted this "mm" via use_mm(), it should not be used as mm->owner. Add the PF_KTHREAD check. While at it, change this code to use for_each_process_thread() instead of deprecated do_each_thread/while_each_thread. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Michal Hocko <mhocko@suse.cz> Cc: Balb...VSTOR-23975
Eduardo HabkostEduardo Habkost
2a1690b4e2ams/kvm: x86: Add AMD's EX_CFG to the list of ignored MSRsSome guests OSes (including Windows 10) write to MSR 0xc001102c on some cases (possibly while trying to apply a CPU errata). Make KVM ignore reads and writes to that MSR, so the guest won't crash. The MSR is documented as "Execution Unit Configuration (EX_CFG)", at AMD's "BIOS and Kernel Developer's Guide (BKDG) for AMD Family 15h Models 00h-0Fh Processors". Cc: stable@vger.kernel.org Signed-...PSBM-95434
Kirill TkhaiKirill Tkhai
c52a19a726bploop: Add sanity check on stopCheck for (unbelievable) case, when we there are uncompleted requests on stop. https://jira.sw.ru/browse/PSBM-95247 https://jira.sw.ru/browse/PSBM-95347 Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>2 Jira Issues
Kirill TkhaiKirill Tkhai
9e79e31468fploop: Ignore clusters above holes_bitmapOn grow we may assign cluster above holes_bitmap in case of old holes_bitmap is not enough to fit intensive io. Handle this. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Kirill TkhaiKirill Tkhai
33021248ad3ploop: Introduce set- and clear- holes_bitmap wrappersIntroduce helpers doing sanity check and use them instead of direct set_bit() and clear_bit(). Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Kirill TkhaiKirill Tkhai
68adc3cf389ploop: Do not warn when BAT is wider than disk sizeBAT area can address wider region, than disk size. This may be a result of shrinking large disk to a small size, when we just change disk size, but the first data block offset and nr bat entries remain the same. https://jira.sw.ru/browse/PSBM-95293 Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>PSBM-95293
Konstantin KhorenkoKonstantin Khorenko
650beaca141OpenVZ kernel rh7-3.10.0-957.12.2.vz7.96.15Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
Konstantin KhorenkoKonstantin Khorenko
9c05bb014c3net/netfilter/xt_wdog_tmo.c: author email updatedhttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
e6c970b912dnet/ipv4/udp_diag.c: author email updatedhttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
ec2c47d0595tools/testing/selftests/memfd/memfd_test.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
88293d11b7ctools/testing/selftests/memfd/fuse_test.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
fd36a5b6633tools/testing/selftests/memfd/fuse_mnt.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
3be24d418d4tools/testing/selftests/memfd/Makefile: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
01f4b0d2122net/netfilter/xt_wdog_tmo.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
d97373959b8net/ipv6/netfilter/ip6_vzprivnet.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
c9739b07cd3net/ipv4/udp_memcontrol.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
24cd6c33f8bnet/ipv4/netfilter/ip_vzprivnet.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
28524292d1fmm/tswap.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
6ba3fbe741amm/tcache.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
1791cb5c73fmm/page_idle.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
fad90dc1585mm/oom_group.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
a470ca3d111mm/iov-iter.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
46804b4ce85lib/kmapset.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
b6f794be962kernel/ve/vzwdog.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
734f7b72c26kernel/ve/vzstat_core.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
ee5814f2c59kernel/ve/vzstat.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
eb4560a3902kernel/ve/vznetstat/vznetstat.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
b8369614e73kernel/ve/vznetstat/ip_vznetstat.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
13e06dfe89ckernel/ve/vznetstat/ip6_vznetstat.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
1353ed7243dkernel/ve/vznetstat/Makefile: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
cbae3488b6ckernel/ve/vzlist.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979
Konstantin KhorenkoKonstantin Khorenko
b4822908ea4kernel/ve/vziolimit.c: copyright updatehttps://jira.sw.ru/browse/PSBM-94979 Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>PSBM-94979